I wrote a custom AB function with 2 parameters: "contract_name" and "active".
The reason I ask is because I have a good number of JS functions for a sqlite plugin that I was thinking of wrapping in AB functions to make them easier to use in the UI views and events. Each of these AB functions would have multiple argument parameters that would be used in the JS portion of the AB function.
In my opinion, calling a "wrapper" AB function is easier in the views than setting up a JS function in the views
The JS functions are basically for CRUD operations and will be used in many locations of the program but will not change. Therefore I thought an AB "wrapper" function would be easier to call the JS functions multiple times in multiple locations. That is why I was asking about the window.App.RootScope object
Well. I am not sure if can understand... that is... if you want to use the "RootScope" there is no problem, for example, if you want to place some function's argument in a global variable, you can do it. So maybe I am not understanding well the question point?
No problem David! I have my answer. :) I appreciate your prompt help.
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.