cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
muralikrishna12
Helper IV
Helper IV

how to redirect to item edit screen

Hi Mates,

As of now i have home screen(landing page with gallery to display all items),

Also we have one more screen for New Items(Form to Submit Records when icon click from home screen then it will navigate to this new item screen) here Form display all fields to submit record. 

 

here query is how to navigate the same screen with corresponding item means new item screen with edit mode to update the record. 

Can i use same form to update/Change/Re-Submit. 

 

Any help please

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @muralikrishna12 ,

I'm sorry I don't know if I understand your needs, could you tell me if my assumptions are correct?

  • When you click on the icon on the home screen, the page jumps to a new screen. This new screen has an Edit form . The Edit form now is used to create a new record. So its current field value is the default value of the data source.
  • After you submit this new record, you want the screen to remain unchanged. But the values in the fields become the values just submitted. And you can modify this value and submit again.

 

If so , the point is to set the Item property of Edit form. I set a variable.

  • When the value of the variable is 1, the value of Item property is the latest record submitted. After you submit, you can use same form to re-submit.
  • When the value of the variable is 0, the value of Item is the record selected by the gallery.

 

Please refer to the steps below:

1\ Show the location of the controls

In home screen:

  1. Add Icon (Add a new record)
  2. gallery control BrowseGallery1

 

In ‘EditScreen1’ screen

  1. EditForm control EditForm1
  2. Back Icon

 

2\ Modify the onselect property of the icon on the home screen to:

Set(A,1); NewForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)  

/*  A is the variable.

     EditForm1 is used to submit data. EditForm1 control is on the EditScreen1 screen. */

 

3\ Set EditForm1’ ‘s Item property to:

If(A=1, Last(LIST22),BrowseGallery1.Selected)

/* LIST22 is my test list name.

    BrowseGallery1 is the gallery control on the home screen. It is used to display all Items. */

 

4\ Set EditForm1’ ‘s onsuccess property to:

Refresh(LIST22);Navigate(EditScreen1)

 

5\ Set the back Icons onselect property to:

ResetForm(EditForm1);Set(A,0) ;Back()    // Back Icon is on the ‘EditScreen1’ screen.

 

v-xiaochen-msft_0-1606374547335.png

 

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @muralikrishna12 ,

I'm sorry I don't know if I understand your needs, could you tell me if my assumptions are correct?

  • When you click on the icon on the home screen, the page jumps to a new screen. This new screen has an Edit form . The Edit form now is used to create a new record. So its current field value is the default value of the data source.
  • After you submit this new record, you want the screen to remain unchanged. But the values in the fields become the values just submitted. And you can modify this value and submit again.

 

If so , the point is to set the Item property of Edit form. I set a variable.

  • When the value of the variable is 1, the value of Item property is the latest record submitted. After you submit, you can use same form to re-submit.
  • When the value of the variable is 0, the value of Item is the record selected by the gallery.

 

Please refer to the steps below:

1\ Show the location of the controls

In home screen:

  1. Add Icon (Add a new record)
  2. gallery control BrowseGallery1

 

In ‘EditScreen1’ screen

  1. EditForm control EditForm1
  2. Back Icon

 

2\ Modify the onselect property of the icon on the home screen to:

Set(A,1); NewForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)  

/*  A is the variable.

     EditForm1 is used to submit data. EditForm1 control is on the EditScreen1 screen. */

 

3\ Set EditForm1’ ‘s Item property to:

If(A=1, Last(LIST22),BrowseGallery1.Selected)

/* LIST22 is my test list name.

    BrowseGallery1 is the gallery control on the home screen. It is used to display all Items. */

 

4\ Set EditForm1’ ‘s onsuccess property to:

Refresh(LIST22);Navigate(EditScreen1)

 

5\ Set the back Icons onselect property to:

ResetForm(EditForm1);Set(A,0) ;Back()    // Back Icon is on the ‘EditScreen1’ screen.

 

v-xiaochen-msft_0-1606374547335.png

 

Best Regards,

Wearsky

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Users online (58,817)