cancel
Showing results for 
Search instead for 
Did you mean: 

Data automatically removed while using Field Data Edit script

Former Member
0 Kudos

Hi ,

Last updated field value is getting cleared automatically during new
document creation however the same is not true for existing document
updates wherein the field updates are successfully saved if a save
statement is used on Field Data Edit script.

We are using below statement on Field data edit script for automatically
saving a document (without pressing save button) on specific field
change.

doc.getIBeanHomeIfc().upgradeToEdit(doc);
doc.getIBeanHomeIfc().save(doc);


Please assist. Our system details below;

ESO Version :10.0.06

Steps for Reconstruction

use below script on any field in Field Data Edit script

doc.getIBeanHomeIfc().upgradeToEdit(doc);
doc.getIBeanHomeIfc().save(doc);

Message was edited by: Sourcing Consultant

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I hope, by mentioning new document creation, you are duplicating a existing document to create a new one from it. Please confirm.

If yes, then you have to pass the last upfated value of a field during duplicate event and set it for the field of new document.

Please let us know once you will be able to fix the issue.

Cheers,

Deepak

Former Member
0 Kudos

Thanks Deepak for your response.

I'm creating a new document from a existing project template and entering the details on the form example display name, currency for the new document.

We like to establish an auto-save in the background so in case if there is a timeout users wont lose the data

Best Regards,

Vinoth

former_member190023
Contributor
0 Kudos

Hi,

Can you give more details on the timeout you are referring to?

In my view, the solution to save on Field Edit script will not help you at all. This is because the Field Edit scripts only execute during a page refresh; and the page refresh will anyway reset the session timeout countdown.

Bogdan