Raghavendra Prasad
Raghavendra Prasad

Reputation: 709

Powerapps create and edit in one screen

We have a need to have just one screen for creating and then editing the record in the same screen. So I don't know if we can create a record and then edit it in the same screen. We are using CRM as our data source.

Upvotes: 1

Views: 2201

Answers (1)

Adrian Orth
Adrian Orth

Reputation: 49

PowerApps does support create and edit from the same screen using the Edit Form. You can see this working by creating an "App from Data". This creates a three screen app with a BrowserScreen, DetailScreen (read-only form), and EditScreen (editable form). The later is used for both creating and editing records.

The steps to create this example is:

  • New > Start with your data > Dynamics 365 > Phone layout
  • Select the connection to the Dynamics 365 instance
  • Select the entity to use as the datasource
  • Click on the "+" icon on the BrowseScreen to see the following OnSelect expression:

    NewForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)

  • Click on the pencil icon on the DetailScreen to see the following OnSelect expression:

    EditForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)

Upvotes: 1

Related Questions