Sitemap

Amicuk Programming Answers

Back button to re-edit form..."Current version of data..." error?

-0001-11-30   Views:0

Advertisement

I've noticed a fairly common error that my users are running into. Here is the situation... A user navigates to a form...makes modifications...saves the form...and is redirected to another page. Then, the user clicks the browser back button to re-edi

I've noticed a fairly common error that my users are running into. Here is the situation...
A user navigates to a form...makes modifications...saves the form...and is redirected to another page. Then, the user clicks the browser back button to re-edit the form...saves the form and gets the following error...
"...Current version of data in database has changed since user initiated update process...."
I am currently running v2.0...but I was able to also duplicate the issue within v3 (online...Customer Tracker sample application).
Is there any way to catch the error to display a custom message?
Or maybe some settings that I am missing to guarantee that when the user clicks the back button, the page is refreshed so it doesn't show the cached version with the old data?
Or maybe there is another way to approach this?
Thanks...
Matt

The replay answer
Advertisement
Matt,
This is functioning exactly as it should... Imagine what could happen if it didn't work that way! People would overwrite other's information all the time.
I think the solution you need is two fold: user training and app modifications.
I know what you're thinking, user training, hah! But it's going to help as you make more of these kinds of web apps.
As for app modifications there are two I can think of that may help.
1. I don't know how the users open the app but if they click on a link then you can have the popup window open without tool bars and such (but they still have the backspace on the keyboard).
2. Add a button on the page they are redirected to after saving the form. Make the condition of the back button "If item is not null" and put PXX_ITEM_NAME in expression 1.
Then create the item you just put in expression 1as display as text (saves state). Set the condition to never. Now go to the page with the form, and create a process that sets PXX_ITEM_NAME equal to the value of the item used as the primary key for the form. Make sure the process only fires after an update is made.
Then when the users get to the page after making a modification they will see a "back" button.
The last step is to create a branch that will take the user back to the form if they click the button and populates the form item for the primary key.
Let me know if this is making any sense or not.
Dan
Dan

Go to See the other 2 answers

Back button to re-edit form..."Current version of data..." error?

Category:DefaultRelease time:-0001-11-30Views:130

I've noticed a fairly common error that my users are running into. Here is the situation... A user navigates to a form...makes modifications...saves the form...and is redirected to another page. Then, the user clicks the browser back button to re-edi[More]

How do i add an email button to an editable pdf

Category:DefaultRelease time:2015-10-11Views:130

how do i add an email button to an editable pdfHi Rocco290, You will need Acrobat to add an email button to that PDF. Here are instructions from the Acrobat X Help: http://help.adobe.com/en_US/acrobat/X/pro/using/WSBB6EF75F-BC3D-4094-B787-FB76DAE1EBD[More]

Toshiba 32W1333DN: buttons moving/deleting/edit name for channels missing

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I just bought 32W1333DN in Sweden. But I cannot change the position of channels in the channel list. Both the Quick start guide that comes in the box with the TV and the online manual has images and details about how to move channels/delete ch[More]

I had a trial version, and tonight I bought it.  But buttons led me to the Windows version which I accidentally bought.  I have Mac.  What do I do?  How do I switch it over to a Mac version?

Category:DefaultRelease time:2015-10-11Views:130

I had a trial version, and tonight I bought it.  But buttons led me to the Windows version which I accidentally bought.  I have a Mac.  What do I do?  How do I switch to Mac version?Hi scarabs55, Are you working with Acrobat or Photosohp? (You mentio[More]

Any suggestions for programs that can convert mpeg1 to a format that can be edited in iMovie Version 8.0.6 (821) and/or iMovie HD Version 6.0.3 (267.2) Thanks

Category:DefaultRelease time:-0001-11-30Views:130

Any suggestions for programs that can convert mpeg1 to a format that can be edited in iMovie Version 8.0.6 (821) and/or iMovie HD Version 6.0.3 (267.2) ThanksHi Mark Was just looking for the answer to this exact question and I just found something th[More]

Where is the shopping button I had on the last version

Category:DefaultRelease time:-0001-11-30Views:130

I have just downloaded the new version....where is the shopping button I had on the previous version ? How can I go back to the previous version ??Firefox has never had a shopping button, that was likely added by an extension. As the button has gone[More]

What's the latest version of macbook or mackbook pro with mouse buttons?, what's the latest version of macbook or mackbook pro with mouse buttons?

Category:DefaultRelease time:-0001-11-30Views:130

what's the latest version of macbook or mackbook pro with mouse buttons?, what's the latest version of macbook or mackbook pro with mouse buttons?Are you talking about MacBooks and MacBook Pros with the two buttons at the bottom of the trackpad and n[More]

Is editing a previous version possible?

Category:DefaultRelease time:-0001-11-30Views:130

I have read through the Developer Reference (9.0.1) section on Versioning but I couldn't find the answer to this question. Is it possible to edit a previous version of a public object? I understand I can have the Family ID reference a previous versio[More]

HT4623 my phone main button not working after installed new version software 7.0.6

Category:DefaultRelease time:-0001-11-30Views:130

my phone main button not working after installed new version software 7.0.6Arrange some liquid like petrol spirit and w 40 two drops in to home button. 30 times press slowly slowly and then restart your apply iphone. You will get ready. I am sure. Th[More]

Why can't I edit the local version of address book

Category:DefaultRelease time:-0001-11-30Views:130

Since iCloud I can no longer edit the local version of my address book.  In addition adding addresses from Mail no longer saves them to address book, it does seem to put them somewhere but I have no idea where, they don't appear to go icloud either. [More]

International Version" button in XD01 from 4.7 versions..

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, We can find "International Version" button in XD01 from 4.7 versions.. But cudnt find in 4.6 Version... Plz help me..in findin out the reason. Can there's an way to hav it in even 4.6c version? Thanks All in Advance Regards, MaltiHi Rob,[More]

Hot
I am presently using both iPhoto and FCPX. I only use iPhoto store the photos and images I use in albums. If I need to modify them I take them into Photoshop and then save them backin iPhoto. However, I now have about 5,000 images and feel a need to [More]
Hi, I have modified one standard include using access key to insert one logic as per businness requirements.Now after inserting that code iam getting syntax error but while activating it is not showing the error and getting activated. The include is [More]
Hello, I've been trying to set up iCloud on my iPhone 5 and iPad3 and running into the same problem message at top of screen saying "account not verified". "check your email for instructions to verify this account".   When I check my e [More]
I have a java application following is the package structure com>>gts>>xml having file---------> MyXML.xml com>>gts>>java having java program to read the file Problem is if I use File file = new File("..\\xml\\MyXML.xml&quo [More]
Hey everyone, I couldn't find anything on this so I thought I should ask. So I have "AIM" as a VoIP account and all of my buddies import into my contacts. Now lets say I signed up for a @ovi.com account at www.ovi.com (which I did) and I used th [More]
Could anyone tell me the difference between the using of "throw" and "throws" when writing a custom exception class??You can throw an exception in a line of code. A method is declared to throws an exception. public class Sample{   publ [More]
I have a intel core2 duo with 32bit Arch. I allow paralleling work in bios. In the system I see 2 processor and both are working. But they don't work together. I mean when processor A is comming up then processor B is comming down. When A working at [More]
I'm looking at the possibility of using Teaming to handle some workflows internally that are based around user provisioning. Ideally we'd use the IDM Workflow engine for this, but as we have Teaming we'd like to look at what is on offer their first t [More]
Hi expert, I have a requirement to write a BSP code to open new page in new window after button click. I have done the same for opening in same window but not for opening in new window. Can you please help me out with the code in which the page opens [More]
Ik heb een desktop HPE met Windows 7 en 6G intern geheugen en 1TB harde schijf. Ik ben bezig met een diashow. Heb daarvoor een aantal foto's in een album gezet. Nu wil ik de foto's van een tekst voorzien. Ik  selecteer een aantal foto's en ga naar "V [More]