In the above course video we see pydefault data transform setting some values for fields EligibilityInfoAccept and EligibilityInfoReject . According to the video shared in the course whenever the field Eligibility Type is updated in the workobject it triggers the data transform pydefault and displays relevant text message based on conditions set in data transform.
I didnt understand why would pydefault get triggered in the middle of case , and they didnt even show any option to manually call this data transform.
pyDefault is meant to set defaults when the case page is first created or when a view runs a pre-processing data transform; it does not auto-run in the middle of a case when a single field changes. What likely happened in the video is that either the view had a pre-processing DT and a refresh re-applied it, or the author wired an on-change action but didn’t call it out. To make this work, open the Eligibility Type field in the Constellation view and add a Change action: first Post value, then Run data transform (create one like SetEligibilityMessage), and if needed Refresh current view. In that DT, set EligibilityInfoAccept or EligibilityInfoReject based on the current .EligibilityType using simple when conditions or a decision table. If you want it to recompute automatically without explicit actions, model a derived property with a declare expression (for example .EligibilityMessage = function of .EligibilityType) and bind that to a text/paragraph control. Keep pyDefault for initialization only; don’t overload it for mid-case logic. Save, clear preview cache if needed, and retest the change flow.
@SairohithThank you for your response . In Constellation views and fields we dont have refresh / on change action or option to call data transform So how to achieve this. as per the requirement there in video calling data transform in the pre processing will not help. Is there any other way they might have done