Hi all,
I am working on a project to integrate MATLAB Produciton Server (MPS) with Alteryx.
The first step is to write some Macros to convert Alteryx datatypes to their appropriate JSON representation.
To illustrate this, I attached an example Macro that would turn and Alteryx array (a signal's field) into its MPS JSON representation.
What I would like to do is be able to make a Macro that could take an unknown number of input fields so I could write a "matrix" representation, instead of an "array" one (which would be NumberOfObservations x NumOfRows).
To do that, I would need to:
- Design the Macro Input so the user could check any of the incoming fields. I managed to get reasonably close by using a DropDown, but then, in the MacroInput, I still had to specify an arbitrary number of fields.
- Be able to work with an unknown number of fields. I could easily write a Macro for matrix with 2 columns, and one with 3 columns, but how do I write a macro that deals with any arbitrary number of columns?
To be honest, I am not even sure this can be done with Alteryx, but I figured I would ask before drawing any conclusions.
Thanks in advance for any help,
Sylvain