Page 1 of 1

Related Item Values

Posted: 18 Aug 2016
by Cloud.Ed
How would I get the value of multiple related items in the related items control? If we wanted to get every value from cloumn 3 and concatinate them into a single string for instance? The related item contron is set to render in client, quick edit only.


Thank yoiu.

Re: Related Item Values

Posted: 19 Aug 2016
by Dmitry Kozlov
Hi,

You can retrieve values from the related items control following way:

Code: Select all

var rows = fd.relatedItems(0).data('ctx').ListData.Row;
for (var i = 0; i < rows.length; i++) {
    alert(rows[i].Title);
}
Where 'Title' is the internal name of the required field.