cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Way to pass an array to a global script function

marco_jehle
Explorer
0 Likes
2,137

Hi everybody,

Within Lumira designer I'm trying to pass an array to a global script function as an input parameter, but I don't find an possibility to set the parameter as an array.

There are two workarounds I can think of:

1.) passing a string separated by comma and rebuilt it, but then I also have to create this string when calling the function.

2.) create a global variable as an array and adress it. But in my opinion this is not a good way to code.

Do you have any ideas on this?

View Entire Topic
MustafaBensan
SAP Champion
SAP Champion
0 Likes

Hi Marco,

What version of Lumira Designer are you running? In Lumira Designer 2.1 it is certainly possible to define array parameters for global script functions as shown in the screenshot below:

Regards,

Mustafa.

marco_jehle
Explorer
0 Likes

Oh! *facepalm*

I was only looking at the variable typ, I missed the array column.

Thank you very much for your quick reply!

MustafaBensan
SAP Champion
SAP Champion
0 Likes

You're welcome. I suspected that might be the case 🙂

marco_jehle
Explorer

Hey Mustafa,

maybe you can help me again with this arrays.

I have function into which I pass an array of Icons and an icon to be removed from this array.

Return type of the function should be the "cleansed" Array.

How can I define the resultArray to be type of Icon?