cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

How to load SharePoint list item in dynamically in same screen?

I need a solution to load SharePoint list item in dynamically in same screen in MS PowerApps for MOC exam App.

It should be navigate next question when I press "Next” button instead of next screen.

Please help me to achive this.

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: How to load SharePoint list item in dynamically in same screen?

Hi @udaya,

 

Could you please share more details about what you would like to achieve in a single screen?

To load SharePoint lists, we could add a Gallery control to hold its data.

For the Next Button to navigate to the Next Question, is a question here a single item of the SharePoint list?

And when it comes to Next question, would it need to take some actions of the question passed by?

In addition, any special order that those questions need to stand with?

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Regular Visitor

Re: How to load SharePoint list item in dynamically in same screen?

Hi @v-micsh-msft,

Of course, I need to load sharepoint list to my Powerapp screen.

 

Here my sample Sharepoint List.

 

SharePoint List.PNG

 

This's PowerApps Screen which I want to load single question in dynamically from Sharepoint list.

  PowerApps Screen.PNG

I need to keep selected value from radio control for each question until finish the test for calculation marks for user.

 

Highlighted
Community Support
Community Support

Re: How to load SharePoint list item in dynamically in same screen?

Hi @udaya,

 

Thanks for the update.

Is the Answer column a Multiple choice type?

For Choice field with Multiple selection enabled, PowerApps can't get its value. Currently only single value of the choice field is supported.

For more information about known issues when working with SharePoint list, please check:

Connect from Microsoft PowerApps to SharePoint

 

Besides, to display items within a SharePoint list, we could take use of the workaround below:

Under the screen, add a display form control, specify the data source to the SharePoint list name, then under the Item property, specify code below:

First(Filter(SharePointListName,ID=Idnum))

Here Idnum is context Variable which we would use to navigate to different item.

Under the OnSelect property of the Next Arrow Icon, specify the following:

UpdateContext({Idnum:Idnum+1})

And the disabled property of the Next Arrow Icon, specify the following:

If(Idnum>NumberofQuestion,true,false)

Replace the NumberofQuestion with the actual number of the items number.

Under the OnSelect property of the Back Arrow icon, specify the following:

UpdateContext({Idnum:Idnum-1})

Disabled property of the Back Arrow icon:

If(Idnum<=0,true,false)

And the Onvisible property of the screen:

UpdateContext({Idnum:1})

For recording the selected option, which depends on the text of the radio control, thoughts here is to create a collection, and use collection to hold the data.

But based on the field type difference, there should be different ways.

 

Regards,

Michael

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

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,334)