Getting ID from CrossSiteLookup on Displayform
Posted: 12 Jul 2018
Dear Nikita,
I have a SPO-List called "products" with a lot of columns (>70) and a CrossSiteLookup called "productgroupe".
Originally I created one Form for Edit,New and Dispaly and using Tabs to show/hide the attribute according the productgroupe!
..but over 70 attributes/colums its a problem for SPO (timeout for XLST !!)...
..so now I´m using for each productgroup a formset.
But for example on the Edit-Form I get the ID for the underlaying productgroup with :
var productGroup = fd.field('Productgroupe').value();
The field: "Productgroup" is a CrossSiteLookup!
But on the Displayform I get the Title of the underlaying productgroup !!
How do I get the ID from then CrossSiteLookup called 'Productgroupe' on the Displayform to redirect to the according productgroup-Displayform?
I don´t want to hardcode the productgroup-Titles because of possibel future change!
thx for helping me.
I have a SPO-List called "products" with a lot of columns (>70) and a CrossSiteLookup called "productgroupe".
Originally I created one Form for Edit,New and Dispaly and using Tabs to show/hide the attribute according the productgroupe!
..but over 70 attributes/colums its a problem for SPO (timeout for XLST !!)...
..so now I´m using for each productgroup a formset.
But for example on the Edit-Form I get the ID for the underlaying productgroup with :
var productGroup = fd.field('Productgroupe').value();
The field: "Productgroup" is a CrossSiteLookup!
But on the Displayform I get the Title of the underlaying productgroup !!
How do I get the ID from then CrossSiteLookup called 'Productgroupe' on the Displayform to redirect to the according productgroup-Displayform?
I don´t want to hardcode the productgroup-Titles because of possibel future change!
thx for helping me.