question

Lucas Klein avatar image
0 Likes"
Lucas Klein asked Lucas Klein commented

ProcessFlow Activity - onPreOpen

Hello,

I am working in a custom ProcessFlow Activity, and I'd like to use "windowgray" to enable or disable some fields to the users. I remeber to use this code in the old GUI using the "OnPreOpen" node, but this eventfunction seems not to work on ProcessFlow Activities, the only node that I found was the "onOpen" but the windowgray only works if I open the activity properties, close it and open it again.

I'd like to know if there is any way to make "onPreOpen" works, or any view command that allows me to use the "windowgray" at the "onOpen" code and update the view to the users, so they can see it working properly, without having to reopen the view.


Thanks

FlexSim 21.2.0
processflowdevelopmentactivitieswindowgray
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Lucas Klein commented

We usually add a coldlinkx node to the field we want to optionally gray. Like the one on the Overflow field of the Batch activity (VIEW:/modules/ProcessFlow/ActivityProperties/Batch/SelectOverflow>coldlinkx).

An example with more complicated logic for determining if one or more fields should be grayed is on the Pull from List activity (VIEW:/modules/ProcessFlow/ActivityProperties/PullFromList/DONOTDELETE>coldlinkx)

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Lucas Klein avatar image Lucas Klein commented ·
Thanks @Matthew Gillespie !

It worked exactly as I wanted to.

0 Likes 0 ·