Discussion
SmartRules
NL
Last activity: 8 Sep 2015 11:08 EDT
Building Assignment Focused (Intent-Driven) User Interfaces
When I run the case in exercise 'Building Assignment Focused (Intent-Driven) User Interfaces' no UI sections appeared. In the training manual I see: "ensure that you have done the Adding Default Data Transforms excercise". Where can I find more information about this excercise? It also says: check that the Employee page properties have been correctly initialized. How can I check this?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
SG
Look at the "Adding Default Data Transforms" exercise. You should have created 2 data transform: pyDefault that calls the pySetFieldDefaults. The latter is where you set the .Employee.pyLabel = " " (note the space between the double quote).
SmartRules
NL
Ah, it is probably the second excercise in 'Sharing Data Across Cases and Subcases'.
SmartRules
NL
I get the following error when I try to create the data transform for pyDefault
Property SAE-HRServices-Data-Employee4.pyDefault is undefined.
what can I do to resolve this?
Pegasystems Inc.
SG
Why are you creating the pyDefault in the SAE-HRServices-Data-Employee4 class? It will never be used. The pyDefault needs to be created in the SAE-HRServices-Work class.
Pegasystems Inc.
SG
Basically, the pyDefault is a rule that Pega 7 looks for to execute when a new case is instantiated. If you create the pyDefault at SAE-HRServices-Work, it is immediately available to all its child classes, i.e. Candidate, Onboarding, BenefitsEnrollment and SetupPayroll.
This makes it very convenient for us because whether you start a new Candidate case, an Onboarding case, a BenefitsEnrollment case or a SetupPayroll case, Pega 7 always runs the same pyDefault rule, which calls the pySetFieldsDefault data transform, initialising the .Employee embedded page in the pyWorkPage.
Since Data class are never "executed", creating the pyDefault rule in a Data class is meaningless.
SmartRules
NL
Hi Chuat,
This is what I did. I created data transform pyDefault in the SAE-HRServices-Work class. The message appears when I click on Save.
Can you help me with this?
Regards,
Tim
Pegasystems Inc.
SG
Just created the pyDefault for you. Didn't notice any error message.
SmartRules
NL
I see what I did wrong. I typed in the wrong values. My mistake. Sorry.
Thank you very much for helping met out :-)
Pegasystems Inc.
SG
No worries. Good that you've got it figured out. :-)
SmartRules
NL
Chuat,
I have another question about these data transforms.
The last note of the training manual says: "if you don't see the Add Dependents UI, you should skip to the Adding Default Data Transforms exercise to ensure that the Employee page properties have been correctly initialized for the Benefits Enrollment process. Where can I find this exercise?
Regards,
Tim
Pegasystems Inc.
SG
Actually, not "skip" forward, but look at my first reply, you need to complete that exercise, page 31. If you did, then you can ignore the note.
SmartRules
NL
Chuat,
I think I performed "Adding Default Data Transforms" exercise, creating two datatransforms: pySetDefaultFields and pyDefault. However the UI for Add Dependents does not appear.
Regards,
Tim
Pegasystems Inc.
SG
The problem is not with your data transforms. The problem is that you added the properties to the first row instead of the second row of the repeating grid. The first row is for the header, and the second row is for the property.
I have updated your AddDependents section's Date of Birth property to show you how it should be done. You should drag the TextInput control for the .pyFirstName and .pyLastName into the second row, not the first row.
SmartRules
NL
Ah okay.
I fixed it and now it is working.
Thanks again. I will make a note of this.
Regards,
Tim