The follow is a test app to view certain data
The first Gallery is Master dataset (Test Companies) connect to Sales data in a one to many relation
And the second Gallery (Test Sales)has its items set to:
Filter('Test Sales','Company Name'.'Company Name'=Gallery1.Selected.'Company Name')
And all that works great. However the detail form has its items set too:
Gallery2.Selected
Everything seems like it should work, but once I run the App I get this:
I cannot see the details Form no matter what I try, unless I use the NewForm function, which is not helping.
Any Ideas?
Regards
Hi,
This looks like you are using an Edit form, rather than a Display form - with the Display Form, it only needs to have the selected item from the gallery, but with an Edit form you would need to use the EditForm(formName) function to edit that item.
If you are only looking to use the View functionality to view the details of that order, then you should insert a Display form:
Could you try that and let me know if you're able to make that work for you?
Thanks,
ManCat
Hi @JasonF ,
If you are using an edit form, you need to set the form's DefaultMode TO FormMode.Edit.
Or you could also use display form, like @iAm_ManCat talked.
I think you need to know more about form's mode.
Now let me tell you:
1)Form has three modes: edit ,new and view.
2)If you use edit form, its default mode is edit.
The form is used to edit one existing record.
In this situation, you need to set the form's item to one spefic record, or else it will display "No item to display".
If you set the edit form's mode to new, then you do not need to set its item property. In this situation, the form is used to create new record.
Please note that it you submit the form, the form's mode will change back to edit automatically.
3)If you use display form, its default mode is view.
In this situation, you need to set the form's item to one spefic record, or else it will display "No item to display".
The form is used to diplay one item's detail information.
Here's a doc about these three forms for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form
Best regards,
Hi v-yutliu-msft,
Thank you for time and consideration. I thought I understood forms pretty good, but I am just a novice user. I just wanted to clarify a few things in the hopes of getting a solution:
1. The default mode of the form is FormMode.Edit
2. The button shown in the screen above executes a EditForm(Form1) command on the form, with no effect
3. The Items of the form is set to the above gallery Gallery2.Selected, so the form should be seeing a item
4. I have also used the View Form with the same results.
I hope this clarifies some of my problems. I do not want to create a record. I simply want to see the details of the gallery above and thought it would be super simple.
Correction: I tried this with a Display Form not View Form(FormMode.View)
User | Count |
---|---|
138 | |
132 | |
75 | |
74 | |
73 |
User | Count |
---|---|
206 | |
195 | |
70 | |
59 | |
52 |