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?
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).
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.
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?
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.