Dynamic Properties

Hi there, Hope you all are doing great.

I have a question: Suppose there is node property called A, which its options are loaded dynamically via loadOptionsMethod, defined as below:

And then I have another node property called B, which its loadOptionsMethod must be based on A. I mean B property must load options based on the value of A.

It seems there is no way to use getNodeParameter in loadOptions (Maybe I’m wrong). What is the solution for this?

Yes, that is possible:

So you have to set “loadOptionsDependsOn” underneath “typeOptions” and you can then load the current value of parameter A in the loadOptionsMethod of B via this.getCurrentNodeParameter('A')

1 Like

Wow thank you. You are great as always :heart_eyes:

Happy that I could help! Have fun!

1 Like