Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
marco_puccetti
Partner - Creator
Partner - Creator

Button and Script Function

Hello, how can i connect a button action with a script routine?

Thanks

Marco

9 Replies
marco_puccetti
Partner - Creator
Partner - Creator
Author

I need to connect the button with a script routine not with a vb macro.

Thanks

Marco

Not applicable

what type of script are you talking about?

The Action would be External but there is no call for script - waht is it you are trying to accomplish?

marco_puccetti
Partner - Creator
Partner - Creator
Author

The script developed in the script editor.

Thanks

Marco

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Script routines can only be called by the main script (the one without SUB...END SUB). And the main script can only be started by a Reload button press or a Reload action or the QDS (i.e. in full)

Peter_Cammaert
Partner - Champion III
Partner - Champion III

To be more precise: in contrast with Macro's, script routines do not exist until parsed by the script engine. That's why you have to put their definition before the first CALL, as the script engine will define them only upon encountering the SUB control statement.

In addition to this, the QlikView engine forgets about all script routines when script execution finishes. Otherwise you would not be able to execute a script twice in a row...

Best,

Peter

Not applicable

Marco

as you can see from the responses by Peter, it does not appear that can be done

what part of the script are you trying to access after the application has been loaded?

Digvijay_Singh

Can you explain why do you want to do it, may be the actual business need can be served by different ways, may be our experts here can suggest better ways even

marco_puccetti
Partner - Creator
Partner - Creator
Author

I need to do a computation based on input fields content.

Thanks

Marco