Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
IS it possible to create objects (buttons, filters and etc.) dynamically from a load script? without using a macro?
Thanks,
Boris
The solution is going to be using a macro to create and object and activating it with an action on a document open and then changing the value of a variable.
Do you know how to address a variabale from a macro script?
You can manage variables using the macro API. Is this an app that is meant to run in a server? You should not manipulate object properties in server apps. Or are you planning to do the config in a desktop run and then move to the server?
-Rob
Creating UI objects based on the data in Internal Tables is perfectly possible with a macro triggered by the OnPostReload event. But this will only work in QV Desktop or the OCX component (plug-in).
Check APIGuide.qvw for functions like CreateStraightTable. It's gonna be a complex job, however...
To manipulate variables from your macro, you can use stuff like
ActiveDocument.Variables("VariableName").GetContent
ActiveDocument.Variables("VariableName").SetContent ContentData
Also see the APIGuide.qvw document
I would think you could handle this with Conditional Dimensions much easier than the macro API.
-Rob