Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Cancel data entry and go back to previous record


This topic is 3746 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I've been utilising slides and pop-overs for data entry to try a minimise the number of layouts needed. Working lovely so far.

 

I have a 'Company' screen, that upon entering shows a 'view only'. It has buttons for 'Find', 'Edit' and 'New'. Clicking these reveals buttons pertinant to the button clicked.

 

When you cancel find mode, you go back to the record you were previously viewing. These seems to be default behaviour...fine.

When you cancel edit, you obviously go back to the record you were previously viewing...fine.

When you cancel new, you go to the last record in the table/found set...jarring for the user.

 

So, when cancelling the entry of a new record, how can you script to navigate back to the record you were viewing before you hit 'New'.

 

Hope that makes sense.

 

FM 13 PA | OSX 10.9

Posted

When you make the new record, save the Current RecordID(Primary Key) somewhere before making the new one...Maybe to a global variable ($$). When you hit cancel, Have the script delete the cancelled record and then to back to the previous layout and Script a Find for the previous record using the saved key from the first step.

 

Let us know how it works out.

  • Like 1
Posted

When you make the new record, save the Current RecordID(Primary Key) somewhere before making the new one...Maybe to a global variable ($$). When you hit cancel, Have the script delete the cancelled record and then to back to the previous layout and Script a Find for the previous record using the saved key from the first step.

 

This will change the found set, which may not be desirable.

 

Since the found set doesn't change when creating and immediately deleting a new record, it will be less disruptive to capture the record number of the original record, then go back there.

  • Like 2
Posted

This will change the found set, which may not be desirable.

 

Since the found set doesn't change when creating and immediately deleting a new record, it will be less disruptive to capture the record number of the original record, then go back there.

 

I like that solution. Probably faster as well.

This topic is 3746 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.