Page 1 of 1

Related-items Get Column Value

Posted: 27 Aug 2018
by ksertkaya
Hello,

I want to get value from column which in child table. This is Crossite Lookup. I can't get value from these column.

Forms Designer Version 3.1.4

SCRIPT5007: Unable to get property 'Row' of undefined or null reference

Code: Select all

alert(fd.relatedItems(0).data('ctx').ListData.Row[0].AdSoyad[0].lookupValue);
alert(fd.relatedItems(0).data('ctx').ListData.Row[0].Ad_x0020_Soyad_x003a_departman[0].lookupValue);
Screenshot_54.png
Screenshot_54.png (26.34 KiB) Viewed 2091 times
Screenshot_55.png
Screenshot_55.png (13.13 KiB) Viewed 2091 times
Screenshot_56.png
Screenshot_56.png (16.09 KiB) Viewed 2091 times

Re: Related-items Get Column Value

Posted: 27 Aug 2018
by AlexZver
Hi ksertkaya,

You can change the render side from Server to Client.
Скриншот 2018-08-27 20.57.12.png
Скриншот 2018-08-27 20.57.12.png (126.91 KiB) Viewed 2082 times

Re: Related-items Get Column Value

Posted: 28 Aug 2018
by ksertkaya
Ahh thank you :)

Now this works :

Code: Select all

alert(fd.relatedItems(0).data('ctx').ListData.Row[0].AdSoyad[0].lookupValue);
but alert shows undefined

Code: Select all

alert(fd.relatedItems(0).data('ctx').ListData.Row[0].Ad_x0020_Soyad_x003a_departman[0].lookupValue);]

Re: Related-items Get Column Value

Posted: 28 Aug 2018
by AlexZver
Try fd.relatedItems(0).data('ctx').ListData.Row[0].Ad_x0020_Soyad_x003a_departman

Re: Related-items Get Column Value

Posted: 10 Sep 2018
by ksertkaya
Thanks a lot :)