Discussion
BPM Company
NL
Last activity: 13 Sep 2020 7:08 EDT
Best practice for changing a class from a data transform?
What is the best practice way of changing a class from a data transform? I want to specialize a class based on a property value.
If you hard set the pxObjClass from the data transform, you get a severe warning: Setting the pxObjClass property will change the class of the containing page. This is not a recommended best practice.
However, I've seen this as an example during an e-course.
Alternatives in my knowledge are:
- Using an activity in stead of DT with the Page-Change-Class method: This will also give warnings for using an activity;
- Using a function to call a generic activity 'ChangeClass' that only changes class using the Page-Change-Class giving in a param.