FUXA icon indicating copy to clipboard operation
FUXA copied to clipboard

Get two parameters for a function from script system function

Open IonuDragomir1 opened this issue 11 months ago • 5 comments

Hi, I have created and added a function on script system function. My function requires two parameters (two tag ids). So when I call the function on script editor, tag selection window is opening. Here I must select the parameters (the two tags), but I'm allowed to select only one. The second parameter I have to type manually or to call the $getTag function. What could I do to get both tags when calling my function?

IonuDragomir1 avatar Mar 25 '24 08:03 IonuDragomir1

Hi, sorry but I don't understand, can you send me an image that clarifies?

unocelli avatar Mar 27 '24 21:03 unocelli

Hi, My function requires 2 word tags as parameters. When I click on $WordsToReal, tag selection window is opening. In the below image, I can select only one tag. On tag selection window, I need to select both tags (WORD1 and WORD2).

image

What should I do to be able to select both tags from tag list?

IonuDragomir1 avatar Mar 28 '24 07:03 IonuDragomir1

The DeviceTagSelectionComponent receives as a parameter data: DeviceTagSelectionData, set the attribute multiSelection to true

unocelli avatar Mar 28 '24 17:03 unocelli

Thanks for reply! I have modified on scipt-editor.component.ts multiSelection: true. Now I'm able to select both tags. But after selecting them, what I get is: image

What should I get is: image

I have modified on client\src\app\_models\script.ts $WordsToReal's params in so many manners but I couldn't succeed. image

What should I do to get both parameters called on $WordsToReal function?

IonuDragomir1 avatar Mar 29 '24 08:03 IonuDragomir1

The issue is not so simple, because I would also like to be able to define in which order they should be bound

unocelli avatar Apr 13 '24 06:04 unocelli