In my OnSuccess of a form I have Set(CurrentRec, formData.LastSubmit). Then in a gallery on the previous page I have a label with CurrentRec.Submit, the problem is all of the textboxes have the same value. How can I make it so the textbox is only showing the column value for each specific record. I tried to use ThisItem but no luck
Solved! Go to Solution.
Hi @powerapps890 ,
From your description, I know that:
1. Your Form and Gallery are connect to different DataSource. But they both have same column Title.
2. You want to show a label text from second DataSource inside the gallery when the records have same Title or ID.
Somethings like for example, I have two SP lists called "list9" and "list10". "list9" is the DataSource of my form, and "list10" is the DataSource of my gallery, I want to show list9.mode in my gallery when records have same Title:
If my understanding is correct, I suggest you use Lookup to find the matched value. Set the Text property of your label inside Gallery to formula like this:
LookUp(DataSource2,Title=ThisItem.Title).Submit
Best regards,
Allen
Your CurrentRec variable is going to be a single record. Your Gallery represents a table of records.
What is it that you are trying to accomplish?
Well each item in the form has an ID attached to it. The gallery and form datasources are different but they both have the same column title. So using the title or ID I was hoping to do some kind of match so the label would display the datacard value or column of the form. @RandyHayes
Hi @powerapps890 ,
From your description, I know that:
1. Your Form and Gallery are connect to different DataSource. But they both have same column Title.
2. You want to show a label text from second DataSource inside the gallery when the records have same Title or ID.
Somethings like for example, I have two SP lists called "list9" and "list10". "list9" is the DataSource of my form, and "list10" is the DataSource of my gallery, I want to show list9.mode in my gallery when records have same Title:
If my understanding is correct, I suggest you use Lookup to find the matched value. Set the Text property of your label inside Gallery to formula like this:
LookUp(DataSource2,Title=ThisItem.Title).Submit
Best regards,
Allen
User | Count |
---|---|
259 | |
110 | |
97 | |
52 | |
39 |