Hi all,
I’m new to this theme and I’m trying a lot with a lot of books and sources, but I can not found my fault.
I’m trying to parse an object array (idea from @Pete_Hartnett : PDF Generation) to my custom widget.
Inside the widget the objects (arrays) should be flatternd to one entry.
The result should be a simple array with the flatternd values.
For example:
array([Text1,1,1],[Text2,2,2],[Text3,3,3]) => array1(“Text1;1,1”,“Text2,2,2”,“Text3,3”)
Inside the widget my code worked as expected, but I can’t parse the needed object array
I am wondering if maybe the issue is a mismatch in variable type (object list vs object) in the app? So if you have an object list in the custom widget, you will want the corresponding app vriable to also be an object list (see screenshot below) - does this help? If not, let me know and we can debug further!
@ChrisF first problem I see - your case is mismatched on your keys!
Looking at your props, you use [Text, X, Y] but on your variable you use [Text, x, y]. In order for the variable to map correctly to the prop, the keys must be exactly the same.
In addition, @thorsten.langner 's suggestion is entirely correct - adding from the input dialog itself will automatically create a variable that is compliant with whatever input criteria exists.