web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Edit Screen / Create S...
Power Apps
Unanswered

Edit Screen / Create Screen Gallery

(0) ShareShare
ReportReport
Posted on by 8

Dear All, 

 

I'm struggling with a problem of create and edit records based on a gallery item.

Let me try to explain.

 

1.  I've created an overview screen with a gallery and a button to add a new record outside the gallery.  (attachment Capture1.png)

2. On the add button, I want to open an edit screen to create a new record.  So on the OnSelect, I have put the following statement : Navigate('EditCreate Screen',ScreenTransition.None)

3.  This opens a data entry screen with two text input controls where i can enter data and save it to a collection that will be shown in the gallery i've mentioned in step 1. (attachment Capture2.png)
     OnSelect of the save button, I've added the following code : Collect(
    colOverview,
    {
       
        WorkDescription: TxtCountDrives_1.Text,
        BudgetNo: txtBudgetNo_1.Text
    }
);
Navigate(
    'Overview Screen',
    None
)


4.  This will add a record in the gallery as expected (attachment Capture3.png)
5.  The next step i want to achieve is that when someone presses the pencil, the record is shown in the 'EditCreate Screen', so the user has the possibility to change the data and update the collection.  

 

PS I'm not using data forms.

 

I'm not achieving to create a solution form step 5 and to get the difference to populate the fields with the value from a record of the collection and to show a blank screen when the screen is opened from the Add button.

 

I hope someone can help me.

 

Kind regards

 

Steve

 

 

 

 

Capture3.PNG
Capture2.PNG
Capture1.PNG
Categories:
I have the same question (0)
  • Dawidvh Profile Picture
    1,346 on at

    Hi @Desmedts 

     

    Well done, app is looking very good so far.

     

    What is the formula that you have tried on the pencil icon? What part of the pencil icon isn't working?

    You should be able to use something like below:

    Set(Form_Edit,true);
    Navigate('EditCreate Screen',ScreenTransition.None)
    

     

    You would then have to set the default formula for the text input controls to be:

    If(Form_Edit, homeGallery.Selected.Fieldname, "")

     

    To save the record back to the collection:

    Patch(colOverview,homeGallery.Selected,{WorkDescription: TxtCountDrives_1.Text,BudgetNo: txtBudgetNo_1.Text});
    Set(Form_Edit,false);
    Navigate('Overview Screen',None)

     

    A form could also help quite a bit here, they can make your live easier in some instances.

     

    Please let me know if you don't come right.

     

    Dawid van Heerden
    Follow on Twitter: @davestechtips
    Subscribe to YouTube: https://www.youtube.com/davestechtips?sub_confirmation=1
    **If you found this reply helpful, please like it and mark this as the answer to close the topic and make it easier to find for other people with similar questions. AND we get points for it 😉

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard