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
Hi all, Does anyone know how to call a web service thru XI from Web Dynpro ABAP. The web service will call an RFC and bring back some data. Some guidelines on how to achieve this will be very much appreciated. Thanks KG.Hi Kunal, Do you want to use X [More]
i download from nikon d90, see photos in organizer, can edit, share but cannot print multiple prints, 4x3.5 or 4x4x5 or preview them which i can do with single prints of any size.  this is new problem in last 3 weeks, was working great prior to this. [More]
Hi, Since Mac OS X 10.5.4 version, Apple WebDAV finder client use "Transfer-Encoding: chunked" in PUT request. Very very few HTTP Server, HTTP Proxy support this feature. Are there a flag to disable this feature ? If not, can you append it in fu [More]
Hi, Please can one share a setup script document for Sourcing implementation ? Regards.Hi Ram, See wiki page: General PPDS wiki page http://wiki.sdn.sap.com/wiki/display/SCM/APO-PPDS Setup Matrix Generation in a Complex Manufacturing Evironment http: [More]
Sometimes it seems like it is prompted by some type of reload as the cursor turns into the blue circle before disappearing. I am not hitting any strange keys or doing anything with the mouse.The one that indicates where you're typing (|). as you can [More]
I just updated iphoto '08 via update manager. Now it can't find my library. When I navigate to the folder of photos, it refuses to accept it, and when I do an import, I lose all my events and get a mass of 12,000 photos completely unorganized? Why do [More]
Iimac uses airport extreme. For no known reason stopped connection to Internet. Reset. Still no connection with saying cannot connect because it timed out. When I connect extreme directly to the iMac I can get Internet. If I disconnect Internet does [More]
I've been working with LabView v7.1 and creating a number of applications that use Bluetooth to communicate between my laptop and the NXT unit. These were all built and tested for Windows machines. I want to also make them Mac compatible, but 7.1 doe [More]
Hi all, I'm looking for help in tracking down the source of an error in keyboard commands I'm having. System-wide, "CMD+S" is registering an input of "CMD+C". Pressing "s" alone, behaves as intended. Pressing "shift+s&qu [More]
My iPod classic 160GB seems to have a minor issue. Everything works fine, but iit has been stuck on 15567 songs (number listed to the right when Music is highlighted) for over 3 months now, and I have added plenty of music and that number doesn't cha [More]