I am trying to create a Edit form for the users to Subscribe in an event. The form looks fine when it is in Edit mode, but when I play the app, the form disappers and I get a text "No Data to Display". Please help.
Solved! Go to Solution.
Hi @Kpreeti1256 ,
This problem is mainly about form's mode.
Now let me explain about it.
1)Edit form's default mode is Edit.
2)If you set the form's mode to New, then you do not need to set the form's Item.
The form will be used to add new record. (every field's value display empty value)
3)If you set the form's mode to Edit, then you need to set the form's Item to one spefic Item.
The form will be used to edit an existing record. Set the form's Item to the record that you want to edit , for example: Gallery1.Selected.
4) If you submit the form, the form's Mode will change back to its default value: Edit.
The reason why the form display "No Item to display " may be these two reasons:
1)You want to add new record, but you do not set the form's DisplayMode to New.
2)You submit the form, the form's mode change back to edit and you do not set the form's Item.
To sum up, when your form's Mode is Edit and you do not set the form's Item, "No Item to display" will show.
Please modify your form based on your situation.
If you want to create new record, please set the form's DisplayMode to New and set the submit button's OnSelect:
Submit(Form1);NewForm(Form1) //keep the form's mode being new
If you want to edit an existing record, please set the form's Item.
Here's a doc about it for your reference:
Thanks for the replies @yashag2255 and @v-yutliu-msft !
I have a question though, I have created two buttons to create New/Edit forms. Now, I don't have a gallery but I just want to edit the last record in the list. This data source collects one record daily and I only want to give user the flexibility to edit last record. How should I refer my form to point to the last record if it is in Edit Mode?
I really appreciate all the help!
I've four screens BrowseScreen, DetailScreen, Form1(EditScreen), Form2.
Basically when I update any content from Form1 using
If(DataSourceInfo([@datasource],EditPermission), Edit, Disabled)
gets updated but when I include contents from Form2 and hit submit it generates a new record with same data.
Is it possible to update a record in forms split in more than one screen?
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.