parser.saveform and then refresh via javascript

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

parser.saveform and then refresh via javascript

Post by swiftinitpvtltd »

I want to first ask user do you want to save? and then use parser.saveform to save form and then refresh the form.
This is like auto save function but only after user confirmation. How do I do that. Aware does not allow putting any message except error in BO rules and then I have to do some other route whenever I need some message or confirmation before save. I need to refresh the form as there is a calculation to show after save. Autosave on field works but I can not ask for confirmation before save so I have to disable autosave and use some workaround...

Steps needed-
User changes one text field and on lost focus(not autosave but ask and then save) Aware asks do you want to save?
if yes then save form and refreshes the form which shows new values in form and query grid in the form with new calculated values coming from calcs in BO save rules.
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

Re: parser.saveform and then refresh via javascript

Post by swiftinitpvtltd »

I used this thread to find a solution and get it working-

https://www.awareim.com/forum/viewtopic ... t=setvalue
Post Reply