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.
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
Hi @v-micsh-msft,
Of course, I need to load sharepoint list to my Powerapp screen.
Here my sample Sharepoint List.
This's PowerApps Screen which I want to load single question in dynamically from Sharepoint list.
I need to keep selected value from radio control for each question until finish the test for calculation marks for user.
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
User | Count |
---|---|
252 | |
107 | |
88 | |
51 | |
44 |