cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sjcitpro
Helper III
Helper III

Trying to jump directly to Form using Screen OnStart

if Param "recordID" I want to jump to the form screen and edit that record (recordID) of Sharepoint list ConcreteRequest. I have a button (for testing) on the Main screen with gallery of records. The Button is "Set(varRecordID,19); Navigate(ConcreteFormScreen,ScreenTransition.None)" in the form Item is LookUp(ConcreteRequest, ID=varRecordID). It shows the record values but if I submit form then I get errors. So, how do I pass a record from the sharepoint list ConcreteRequest to the form?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @sjcitpro,

Could you please share more details about the error message within your app?

I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:8.JPG

 

9.JPG

Within the first screen, set the OnSelect property of the "Navigate" button to following:

Set(varRecordID, 6);Navigate(Screen2,ScreenTransition.Fade)

Within the second screen, set the Item property of the Edit form to following:

LookUp('20181217_case14',ID = varRecordID) /*<- '20181217_case14' represents my SP list data source */

Set the DataSource property of the Edit form to following:

'20181217_case14'

Please check the attached GIF screenshot for more details:

 

In addition, you could also consider take a try to submit your form data using Patch function instead of SubmitForm function. Please set the OnSelect property of the "Submit" button to following:

Patch(
    'YourSPList',
     LookUp('YourSPList', ID = varRecordID),
     {
       Title: DataCardValue1.Text,
       Column2: DataCardValue2.Text,
       ...
     }
)

Note: The Title, Column2, etc represents the columns in your SP list.

More details about the Patch function, please check the following article:

Patch function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @sjcitpro,

Could you please share more details about the error message within your app?

I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:8.JPG

 

9.JPG

Within the first screen, set the OnSelect property of the "Navigate" button to following:

Set(varRecordID, 6);Navigate(Screen2,ScreenTransition.Fade)

Within the second screen, set the Item property of the Edit form to following:

LookUp('20181217_case14',ID = varRecordID) /*<- '20181217_case14' represents my SP list data source */

Set the DataSource property of the Edit form to following:

'20181217_case14'

Please check the attached GIF screenshot for more details:

 

In addition, you could also consider take a try to submit your form data using Patch function instead of SubmitForm function. Please set the OnSelect property of the "Submit" button to following:

Patch(
    'YourSPList',
     LookUp('YourSPList', ID = varRecordID),
     {
       Title: DataCardValue1.Text,
       Column2: DataCardValue2.Text,
       ...
     }
)

Note: The Title, Column2, etc represents the columns in your SP list.

More details about the Patch function, please check the following article:

Patch function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,879)