cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dual Super User
Dual Super User

Re: Help with new and edit forms

Hey @Donna_S 

 

Can you confirm if the "item" property of the form is set to LookUp(DataSource, EmployeeName = gallery1.Selected.DisplayName)?
 
To fetch the records from existing items, this property is used.
 
Also, can you create a temporary label and check on the Text property use the expression:
Text(Form1.Mode)
 
If this is 0, this meand the form is in edit mode and if it is 1 then the form mode is new. So, now can you check the form mode for the already created items? Please reply back with the results and we can debug this together.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Donna_S
Regular Visitor

Re: Help with new and edit forms

Hi @yashag2255 

 

The item property of the form is LookUp('Manager Notes','Direct Report'.DisplayName=Gallery1_2.Selected.DisplayName)

 

Manager notes is the data source. Direct Reports is the column where the name would go.

 

I have added in the label which is showing as 1

 

Thanks

Donna

Dual Super User
Dual Super User

Re: Help with new and edit forms

Hey @Donna_S 

 

Since the label shows as 1, this means the form mode is New, but if the record already exists, then it should be in edit mode. 
 
Can you please confirm that the OnSelect property of the gallery is:
If(CountRows(Filter('Manager Notes','Direct Report'.DisplayName = Gallery1_1.Selected.DisplayName)) = 0,NewForm(Form1),EditForm(Form1))

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Donna_S
Regular Visitor

Re: Help with new and edit forms

Hi @yashag2255 ,

 

Yup that is correct, that is the same that is on my OnSelect property of the gallery.

 

Thanks

Donna

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Attending MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’re streaming the digital event live, or watching on-demand, claim your attendee badge to sport on your profile.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We're launching a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Emergency Response & Monitoring Solution

Emergency Response & Monitoring Solution

Microsoft has created a regional government emergency response and monitoring solution that is built on Power Apps and Power BI.

Top Solution Authors
Top Kudoed Authors
Users online (5,101)