cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
udaya
Level: Powered On

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
Community Support Team
Community Support Team

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
udaya
Level: Powered On

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.

 

Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,709)