How do you source your Datapage using a Decision Table?
Requirements:
- Use a Datapage
- Use .pxResults
- Use .pyLabel & .pyDescription
- 2 results should be static
- Other results should be based on the Decision table
How do you source your Datapage using a Decision Table?
Requirements:
Create your Datapage: D_MyDataPage
Configere the source of D_MyDataPage as Datatransform
Create your Datatransform: MySourceDT
Edit your MySourceDT
Create your Decision table: MyDecisionTable
Edit you MyDecisionTable
Let’s say that the results will be based on the .pxObjClass of your case.
Go to the Results tab and turn on “Evaluate all rows”.
Now create your conditions:
| Conditions | Actions | |
|---|---|---|
| .pxObjClass | Primary.pxResults().pyDescription | Primary.pxResults().pyLabel |
| XXX-YYY-Work-CasetypeA | “This is a variable 1 for Casetype A” | “Variable 1 (A)” |
| XXX-YYY-Work-CasetypeA | “This is a variable 2 for Casetype B” | “Variable 2 (A)” |
| XXX-YYY-Work-CasetypeB | “This is a variable 1 for Casetype A” | “Variable 1 (B)” |
| XXX-YYY-Work-CasetypeB | “This is a variable 2 for Casetype B” | “Variable 2 (B)” |
Based on your Casetype, your results will defer.
Casetype A – D_MyDataPage.pxResults
Static 1
Static 2
Variable 1 (A)
Variable 2 (A)
Casetype B
Static 1
Static 2
Variable 1 (B)
Variable 2 (B)
Good luck!