cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dc0901
Frequent Visitor

Lookup Form Record

I am submitting data via a form from one screen in my app and then trying to retrieve the data in a display form on another screen within the same app. When I type in a number that I created, I am able to pull the associated project name to that number. But what I actually want to do is pull all the data from the form so that it displays and I can't seem to make this work. Here is what I have that is working but how do I apply this same formula to the whole form?

 

The number referenced in the attached screenshot is a generated internal number and not the SharePoint ID number. This is what I used to pull in the project name associated with the ISSR number. 

LookUp(ccCatalog, ISSRNumber in DVPPISSRNumber.Text ).Title

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@dc0901 ,

Please don't forget to "Accept as Solution" as other users to easily find the answer. 

View solution in original post

7 REPLIES 7
gabibalaban
Super User II
Super User II

Hi @dc0901 ,

My thoughts, 

 

Set the OnChange property of the TextInput (where you type the ISSR| Number) to smthg like:

 

UpdateContext({desiredRecord:LookUp(ccCatalog,ISSRNumber = DVPPISSRNumber.Text});
ResetForm(YourForm);
EditForm(YourForm)

 

Also set Item property of YourForm to:

 

desiredRecord

 

And at last to be sure that your form is shown when the screen is visible, insert in OnVisible property of the screen:

 

NewForm(YourForm)

 

 

Hope it helps !

I am receiving a delegation warning because of SharePoint but otherwise it works perfectly. Thank you for your help!

@dc0901 ,

can you show me where you receive delegation warning ? What formula do you use ?

dc0901
Frequent Visitor

Yes, see attached.

 

@dc0901 ,

i don’t think that is a delegation warning. Is a type compatibility warning there. From my point of view, ISSRNumber is a number, which we try to compare with a string.

So, if I am right, we need a context variable set before lookup, like this:

UpdateContext({valueDVPPISSRNumber:Value(DVPPISSRNumber.Text)});
UpdateContext({desiredRecord:LookUp(ccCatalog,ISSRNumber = valueDVPPISSRNumber});
ResetForm(YourForm);
EditForm(YourForm)

 Give it a try ...

dc0901
Frequent Visitor

You were absolutely correct. I adjusted the formula per your instructions and now it really works as it is supposed to without any warnings. Thanks again for taking the time to help me.

 

@dc0901 ,

Please don't forget to "Accept as Solution" as other users to easily find the answer. 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,881)