Given a sharepoint list customized with PowerApps the "new" form should have a textfield and button on the top to load the values of an existing list item into the new form. The user should be able to change the values afterwards.
Textfield-Name: QLRev
Button OnSelect formular: UpdateContext({RevItem:LookUp('MyList';'Number' = QLRev.Text)})
How can I now apply the values from the variable "RevItem" to the form fields?
Hi @GregorBecker ,
Make the Default of the control (I assume a Text Box)
If(
YourFormName.Mode=FormMode.New,
RevItem,
Parent.Default
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
@WarrenBelz I changed the value as you mentioned and now loading a reference is working. But the default values of the list now doesn't show when opening the new form and not loading a reference.
I tried to Prefill RevItem with Lists Defaults which doesn't work:
App OnSTart Function: Set(RevItem; Defaults('MyList'))
Hi @GregorBecker ,
You now have two completely different (which I must emphasise) RevItem variables - one Global from your Set command and the second Context ( Original) item.
I am not sure what you are trying to do with the first one, but my response was in relation to the second original item There is no need to set a variable to the Defaults of a list as a form does this automatically.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @GregorBecker ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
183 | |
51 | |
47 | |
32 | |
32 |
User | Count |
---|---|
266 | |
91 | |
78 | |
68 | |
67 |