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

Form Detail not Visiable once running App

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

Test Company.JPG

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

Sales Form1.JPG

 

Everything seems like it should work, but once I run the App I get this:

Run Form.JPG

 

I cannot see the details Form no matter what I try, unless I use the NewForm function, which is not helping.

 

Any Ideas?

 

Regards

4 REPLIES 4
Super User
Super User

Re: Form Detail not Visiable once running App

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:

image.png

 

Could you try that and let me know if you're able to make that work for you?

 

Thanks,

ManCat




Don't forget to 'Mark as Solution' if a post answered your question and always 'Thumbs Up' the posts you like or helped you!
Community Support Team
Community Support Team

Re: Form Detail not Visiable once running App

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JasonF
Level: Powered On

Re: Form Detail not Visiable once running App

Hi ,

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.

 

Highlighted
JasonF
Level: Powered On

Re: Form Detail not Visiable once running App

Correction: I tried this with a Display Form not  View Form(FormMode.View)

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 (5,918)