Hi Guys,
Complete noob to the powerapps stuff but our usual guy is busy with other projects at the moment so Im taking some stuff over.
Currently have an inventory app with a gallery,
I then call all the variables as so, when pressing the arrow on the gallery
Set(varShelf, "Shelf : " & ThisItem.Shelf & ThisItem.Level)
&
Set(varLevel, ThisItem.Level)
&
Set(varPart, ThisItem.Part)
&
Set(varNotes, "Notes : " & ThisItem.Notes)
&
Refresh('Production Stock')
I then have on the second half of the splitscreen, all of these variables called to make a expanded info kind of section
we often add notes to these inventory items so I have added an "edit notes" button
When I hit the plus, it runs this
SubmitForm(EditNoteForm) & Refresh('Production Stock') & Set(popup, false)
However, it doesnt refresh the "varNotes" variable.
When I put "Refresh(varNotes)" it errors,
Or
When I put "Set(varNotes, 'NoteEdit')"
Im hoping someone has a way I can refresh the variable so it updates my "varNotes" live?
Willing to answer questions
Thanks
Ryan
Solved! Go to Solution.
Do you want to send this data somewhere or just set the variable?
If you just want to set the value in the variable try
Set(Test,TextInput1.Text)
Amazing!
Was just missing that .text off the end, now it works 🙂
its simply to set the value as Ive already called it in a TextLabel
Thank you so much
Kind regards
Ryan
This is the error, I see the how to fix, I havent used a context variable or set a type, nor know how to yet
Kind regards
Ryan
The variable VarNotes probably have a value somewhere in the app, the new value has to be of the same "Kind" so if it was previously text, the updated version also needs to be text.
This is where the variable is created, pulled from the gallery and turned into a variable
Just trying to edit the variable unless theres a way of calling the gallery value "ThisItem.Notes" and replacing it with the edited note?
Ive no clue clearly
Kind regards
Ryan
Alright so it appears to be a text variable, and what is the value you are trying to update it with? Is it the value of the textbox?
Yeah exactly that, just update it with whats inputted into the textbox
Do you want to send this data somewhere or just set the variable?
If you just want to set the value in the variable try
Set(Test,TextInput1.Text)
Amazing!
Was just missing that .text off the end, now it works 🙂
its simply to set the value as Ive already called it in a TextLabel
Thank you so much
Kind regards
Ryan
Glad I could help.
If this solved your issue please mark your post as solved.
Also, if you appreciated my answer, dont forget to thumb it up 😃
User | Count |
---|---|
261 | |
110 | |
98 | |
56 | |
40 |