Page 2 of 2
Can a click on the Save button be imitated using javascript?
Posted: Tue Jul 05, 2011 7:09 am
by Andrew
Hello,
Ok! Let us know about the result.
Thank you.
Can a click on the Save button be imitated using javascript?
Posted: Tue Oct 11, 2011 8:25 am
by sergey2
Hello,
The 'sendCommand' js function works great.
But for now we have a problem with determining the current state of the flash that is if the flash has unsaved changes or not.
The main purpose is to avoid showing the built-in flash confirmation "Save changes in Report?" when you try to exit.
So if we have possibility to get the current state of the flash we can call the sendCommand('Exit') function only when the 'Save' command will be processed entirely.
Is it possible to implement such kind of js function?
Can a click on the Save button be imitated using javascript?
Posted: Wed Oct 12, 2011 7:48 am
by Vladimir
Hello,
We understand your problem and will discuss it. If before the 'Exit' command the 'Save' command is always sent out, it will fix your problem?
Thank you.
Can a click on the Save button be imitated using javascript?
Posted: Wed Oct 12, 2011 7:58 am
by sergey2
If before the 'Exit' command the 'Save' command is always sent out, it will fix your problem?
Yes, it will.
Can a click on the Save button be imitated using javascript?
Posted: Thu Oct 13, 2011 5:30 am
by Vladimir
Hello,
You could use Javascript to send two commands at once, first 'Save', then 'Exit'.
Thank you.
Can a click on the Save button be imitated using javascript?
Posted: Sun Oct 16, 2011 1:18 pm
by sergey2
If we use the following code:
Code: Select all
sendCommand('Save');
sendCommand('Exit');
then the built-in dialog box "Save changes in Report?" is popped up if there are unsaved changes of a report.
But we need to avoid displaying that message.
Can a click on the Save button be imitated using javascript?
Posted: Mon Oct 17, 2011 8:05 am
by Vladimir
Hello,
We have added a new ExitImmediately command, which closes the report designer without any questions. The update will be available in the next prerelease build on this week.
Thank you.