Question
Default Value from Decision Table
Hi,
I got a large dropdown list so i got a requirement to set a default value in a dropdown based on the current Workgroup.
I decided to use a Decision table to get any workgroup its needed to have a default value:
Workgroup -> .DefaultValue (From the dropdown list)
So im looking for a function to get the value of the Decision Table in the Default Value field:
The functions i was looking for:
@Utilities.pxEvaluateDecisionTable -> I don't know how to implement it and there is no documentation about it.
@(Pega-RULES:DecisionTable).ObtainValue -> This is the function i saw the most in another Questions but it doesnt work in Pega version 8.4.
So my question is, how can i use pxEvaluateDecisionTable function?
I'd appreciate another ideas aswell.
Thank you,
David.
Hi David
Instead of setting a default value on the cell , you can set this in a pre- data transform in the flow action if this is in a flow . Using default values on the cell might not assign the value to the property on submit if left unchanged.
In the pre data transform you can use pxEvaluateDecisiontable like below -
.Plataforma = @pxEvaluateDecisionTable("<page context>","<Decision Table name>")