cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NeohLooi
Helper II
Helper II

EditForm sometime does not work

I create a gallery which show a list of item for user to choose to view details, and next page the edit form will show the related data.

I have this function at onSelect button "View Details" in gallery

Navigate('Details',ScreenTransition.Fade,{ id: Gallery2.Selected });

and my editform in next page , the item property already set as id.

 

I run few test, sometime the editform do not capture all the data from database...it only capture certain field.
Any solution on this problem? Any help will be great, Thank you. 

1 ACCEPTED SOLUTION

Accepted Solutions
NeohLooi
Helper II
Helper II

It worked perfectly now, I having this problem yesterday and now it seem work perfectly, I not sure what problem causing this

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @NeohLooi ,

Why don't you simply make the Item of the Edit Form

Gallery2.Selected

What is the purpose of passing a context variable between screens when you can simply reference its value directly?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

This is due to I want to align the form nicely, it has a lot of details so it look not really nice if fit into one page.

@NeohLooi 

 


@NeohLooi wrote:

This is due to I want to align the form nicely, it has a lot of details so it look not really nice if fit into one page.


 

However this does not preclude you from referencing it directly as @WarrenBelz already mentioned.

 


@WarrenBelz wrote:

Why don't you simply make the Item of the Edit Form

Gallery2.Selected

We were able to apply response given by @WarrenBelz and it is working, we can reference the Gallery from other screen without any context variable needed. Check this example below and notice how we reference Gallery from another screen without using any context variables, and notice how there is no error and it works:

 

otherscreengallery7.png

 

This is because Controls such as Gallery are not limited of scope to screen, Controls can be referenced from any screen directly.

 

So then what was the problem regarding the response by @WarrenBelz ? Please try again that same suggestion. Ours above is actually the same suggestion, only difference is we provide screenshot showing it is working. If you find out it works for you, after that we kindly ask that you accept the response given originally by @WarrenBelz as a solution (in the case that it worked). When we tested it we found out that it worked without using context variables.

NeohLooi
Helper II
Helper II

It worked perfectly now, I having this problem yesterday and now it seem work perfectly, I not sure what problem causing this

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,982)