Can a click on the Save button be imitated using javascript?

Stimulsoft Reports.WEB discussion
sergey2
Posts: 9
Joined: Wed Jun 22, 2011 1:05 pm
Location: Russia

Can a click on the Save button be imitated using javascript?

Post by sergey2 »

Hello,

I need the following feature:
I need some button on the page(where designer is loaded) that would act as the "save" button of the designer.
So can I access to the flash component using javascript and make it to send the "save" request to the server?
(or at least to get the current state of a template in order to send ajax-request for saving that state)
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Can a click on the Save button be imitated using javascript?

Post by Vladimir »

Hello,

Unfortunately, currently it is impossible. You can configure the autosave interval in seconds, after which the save event will be sent to the server.

Thank you.
sergey2
Posts: 9
Joined: Wed Jun 22, 2011 1:05 pm
Location: Russia

Can a click on the Save button be imitated using javascript?

Post by sergey2 »

Thanks for the reply.

So I suppose that imitation of "Exit" event is also impossible. Am I right?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Can a click on the Save button be imitated using javascript?

Post by Vladimir »

Hello,

Unfortunately yes, because Flash has a very limited opportunities for work with Javascript.

Thank you.
dooblee
Posts: 5
Joined: Fri Jun 24, 2011 6:37 am
Location: msocow

Can a click on the Save button be imitated using javascript?

Post by dooblee »

Well, is there any way to make it possible? It shouldn’t be too hard to allow us to send a request from js to flash. We are ready to pay for this feature.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Can a click on the Save button be imitated using javascript?

Post by Vladimir »

Hello,

We consider this possibility and give you an answer early next week.

Thank you.
dooblee
Posts: 5
Joined: Fri Jun 24, 2011 6:37 am
Location: msocow

Can a click on the Save button be imitated using javascript?

Post by dooblee »

Hi Vladimir, is there any news about this issue?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Can a click on the Save button be imitated using javascript?

Post by Vladimir »

Hello,

We have done a test mode of executing the designer command from Javascript, the update will be available in the next prerelease build on July, 6. Available are two commands: Save and Exit. To do this you need to call the 'sendCommand' Javascript function with the appropriate string parameter ("Save" or "Exit").

Thank you.
dooblee
Posts: 5
Joined: Fri Jun 24, 2011 6:37 am
Location: msocow

Can a click on the Save button be imitated using javascript?

Post by dooblee »

Thank you for fast response, I appreciate it. We will try it when it comes out
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Can a click on the Save button be imitated using javascript?

Post by Andrew »

Hello,

Ok! Let us know about the result.

Thank you.
Post Reply