Ping christ23...
Posted: Fri Dec 05, 2014 8:11 am
christ23 (or indeed anyone who might be able to advise),
If you see this I'd like some advice about C# plugin development. I don't think what I want to do is possible as the calls into the plugin don't pass the parameter I'm looking for. But here goes...
When you drag a plugin onto the MSIcode window you get the dialog by which you can interact with it. In particular, if you need to return a value back, you have to enter the name of a variable and that means you need to create it with the Set Variable statement before you use the plugin. Okay so far?
Have you ever been able to pass in the list of variables already created? Instead of entering the variable name, let's say you want to select one from a combobox for example which contains all the variable names defined.
I don't believe it's possible for like I say, the plugin method calls don't expose the variable names when you drag the plugin to the MSIcode window or if you select a plugin statement that's already there and you hit return to edit it. As you've cobbled together some plugins yourself did you ever manage to get access to the existing variable names at design time?
As an example, my screenshot shows the message box dialog. Note how it sucks variables X and Y from the MSIcode and makes them available in the combobox. That's what I'd like to do in my plugins.
If you see this I'd like some advice about C# plugin development. I don't think what I want to do is possible as the calls into the plugin don't pass the parameter I'm looking for. But here goes...
When you drag a plugin onto the MSIcode window you get the dialog by which you can interact with it. In particular, if you need to return a value back, you have to enter the name of a variable and that means you need to create it with the Set Variable statement before you use the plugin. Okay so far?
Have you ever been able to pass in the list of variables already created? Instead of entering the variable name, let's say you want to select one from a combobox for example which contains all the variable names defined.
I don't believe it's possible for like I say, the plugin method calls don't expose the variable names when you drag the plugin to the MSIcode window or if you select a plugin statement that's already there and you hit return to edit it. As you've cobbled together some plugins yourself did you ever manage to get access to the existing variable names at design time?
As an example, my screenshot shows the message box dialog. Note how it sucks variables X and Y from the MSIcode and makes them available in the combobox. That's what I'd like to do in my plugins.