Hi All,
I'm facing an issue with OnParametersChanged event is not triggered despite the value of the parameter has been changed.
To reproduce this behaviour I've created an OML for reference.
Note: If is use direct input parameter of Block B in expression the age is getting displayed, but I have a use case to modify some data with OnParametersChanged of Block B.
Regards,
Vinod
Hello,
Leave here an solution:
Hi @Vinod Kumar R ,
it is correct that in your example, the OnParametersChanged is not triggered. This event only happens on an existing block, and your block B doesn't exist until after the Popup is displayed.
So, the fix of Fabio is avoiding this problem, by postponing the change with a delay until after the block is added by opening the popup.
In this type of situation, I prefer to create a block action isolating whatever logic i would like to happen, and call that action both in the OnReady and in the OnParametersChanged.
If your block B is also being displayed as part of a popup, you could also move the popup inside the block, then you probably would get away with leaving your logic only in your OnParametersChanged.
Dorine
Thanks @Fábio Vaz and @Dorine Boudry.
Both the soutions works here.
I will implement the solution based on the usecase.