Is it possible to run the script in a button from another script?
There are five buttons in a form.
Each compiles a portion of a report.
I would like to have a sixth button with a "generate full report" script that activates the script in each of the other five buttons.
8 replies
-
Sadly you can’t activate buttons from a script. Unless this is a hidden feature thatJacques TUR hasn’t found yet.
You will have to copy and paste the code from the other 5 buttons into the 6th one
-
I think the best solution is to create a global function for each button. The 6th button calls all functions directly.
If you use the running record in your buttons, you can pass it as a parameter like this:
function myGlobalFunction1( rec : myTableName ) do rec.myFieldName := .... end;
On the button formula, you call function like this :
myGlobalFunction1( this );
-
so what language is this? "function myGlobalFunction1( rec : myTableName ) do rec.myFieldName := .... end;"
-
Thank you. yes, know that. Do you now if it is derived from another language?
-
It is bespoke to Ninox but I think it is a sub set of Javascript or closely based on that.
-
Thank you both. Very interesting.
Content aside
- 2 yrs agoLast active
- 8Replies
- 221Views
-
3
Following