Hi,
I have a big form with multiple controls, and a section within the form required addition of n number of vehicle models. I tried using a multi-lookup column in share point for the backend and a separate list to insert the models as rows. From UI, within the form, I added custom card, and added a gallery within the card. I set the source of this gallery to a collection, that is loaded on screen visible property from the sharepoint multi-lookup column. This is how the first two rows in the gallery get added. I then click on AddLin button that adds a new empty row to the collection and thus displays a new row in the gallery. Now my task it to update the backend with the new model from the textbox box at the bottom of the gallery. My ForAll on Gallery.Items iterates 3 times, and gets the text of the first two rows(that came from sharepoint list) but does not get the text of the newly added row. The text property of this third row from gallery shows blank.
To explore this further I pulled out a copy of the gallery, 'AddItem' and 'insert' buttons, out of the form. From the image, the section on the left is outside the form and the section on the right is within the form. On insert button click on both of these sections the left one outside the form works and inserts the text from all three text boxes to a collection, but the insert button click from right section which is within the form inserts text from first two textboxes and a blank value for the third. I also tried adding a separate textbox outside the gallery, but within the custom card to check if it has to do something with the custom card. But I am able to get the text from this different textbox that shows the text 'tyuio'. Could someone kindly explain what could be wrong here and how to fix this?
Thanks,
Haripriya

Report
All responses (
Answers (