Hi all,
I'm trying to save a CDT retrieved by a query in an expression rule and save it in a Rule Input because this interface will start a process model and I need that CDT as parameter.
a!localVariables( local!listBankAccountsFrom: if( isnull( ri!settlementCurrency ), null, rule!FIN_ListBankAccounts( settlementCurrency: ri!settlementCurrency, isFrom: true ).data ),
Here it is how I try to save in a readonly text field
value: local!listBankAccountsFrom.iban, saveInto: a!save(ri!bankAccountFrom,local!listBankAccountsFrom),
The local variable gets populated correctly, while the rule input is always null.
What am I doing wrong?
Discussion posts and replies are publicly visible
The saveInto is only executed when you change the value manually. So what you do wont work.
You can initiate an ri! from the process model call, that should make it.Where are you calling the start-form from?
Now, I'm starting the process from the process model when debugging. How could I make as you said?
File, process model properties, select the variable, click on value edit icon of the right, write your expression rule there.
As a general thing, you should try to avoid initialization like that. You might end up with a PRD bug difficult to find for your colleagues.