Discussion
Princeton Blue, Inc.
US
Last activity: 8 May 2015 17:46 EDT
Inherited Properties Issue
Lesson: Designing the User Interface for Reuse and Maintainability
Issue:
- Trying to add "First Name" and "Last Name" text input fields to section (SAE-HRServices-Data-Employee • EmployeeInformation)
- I have my Employee data class pointing to Data-Party as per directed inheritance
- Both properties are inherited from the Data-Party class, which you can see in the class's properties list
- When I try to add these properties it says ".pyFirstName does not exist in this context"
- I have triple checked all of my configurations and am just at a standstill
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
first, this is probably one of the best "I've got a problem" post on this forum - ever ;)
I just mimiced a setup using the info in your screen shots (which are all correct, btw) and I can get .pyFirstName to behave.
Try this: delete that text input, then save the EmployeeInformation record. Close it. Then reopen it and try to add the text input again.
eddie
Princeton Blue, Inc.
US
Haha thanks. Gotta help you help me =]
Anyways, I had no luck with that approach. However, for some reason it's accepting .pyLastName now, but still not .pyFirstName. Also when I try to configure the repeating grid for the section "Dependents Information", it still won't accept either .pyFirstName or .pyLastName.
Princeton Blue, Inc.
US
Both data classes are definitely referencing Data-Party as their directed parent.
TLC Inc.
US
I was stuck at the same point, and in the same way, so I added a DataParty page to Pages & Classes, with Class of DataParty. I was a kludge, but it provided access to .pyFirstName and .pyLastName.
Since seeing this forum topic, I deleted those fields and the Page from the section, closed and reopened the section, and now the .pyFirstName and .pyLastName work.
Is this behavior common in the PVS or this release?
Princeton Blue, Inc.
US
Thanks for the suggestion Tom. Unfortunately this did not work for me.
Pegasystems Inc.
US
Jason,
I would not be opposed to a WebEx or Lync meeting. What you and Tom are experiencing is perplexing - let's chat ;)
Private message me to exchange email addresses.
eddie
American Express
US
Hi,
I am seeing the same issue when I try to add Dependent information (Relationship and DOB) to the Repeating grid.
Any suggestions?
Thanks,
Minnie
Hi,
I am seeing the same issue when I try to add Dependent information (Relationship and DOB) to the Repeating grid.
Any suggestions?
Thanks,
Minnie
Pegasystems Inc.
US
Minnie,
if I understand this correctly, you are working on the EmployeeInformation section in SAE-HRServices-Data-Employee. And, you are adding a repeating grid for the Dependents information, but cannot access the Relationship and DOB properties.
Confirm the following:
- you have a Dependent data class with the context of SAE-HRServices-Data-Dependent. At least the Relationship and DateOfBirth properties are defined in this class.
- you have a Dependent page list property defined in SAE-HRServices-Data-Employee; along with the other employee-related properties.
eddie
American Express
US
Yes, that is correct.
Yes, that is correct.
SAE-HRServices-Data-Employee | Dependents | Dependents | Page List | Text | HRServices |
|
||
SAE-HRServices-Data-Employee | DOB | Date Of Birth | Single Value | Date | HRServices |
|
||
SAE-HRServices-Data-Employee | EmployeeId | Employee Id | Single Value | Text | HRServices |
|
||
SAE-HRServices-Data-Employee | FullTime | Full Time | Single Value | True / False | HRServices |
|
||
SAE-HRServices-Data-Employee | HireDate | Hire Date | Single Value | Date | HRServices |
|
||
SAE-HRServices-Data-Employee | MaritalStatus | Marital Status | Single Value | Text | HRServices |
|
||
SAE-HRServices-Data-Employee | Salary | Salary | Single Value | Decimal | HRServices |
|
SAE-HRServices-Data-Dependent | DOB | DOB | Single Value | Date | HRServices |
|
||
SAE-HRServices-Data-Dependent | Relationship | Relationship | Single Value | Text | HRServices |
|
American Express
US
The source of the repeating grid is Dependents, so when I try to set a property,
shouldn't the drop down show the Dependent properties instead of Employee ?
My question is should I be setting the properrty value to .Relationship (since the source of the grid is Dependents) or .Employee.Dependents.Relationship?
Dropdown doesn't have .Relationship, it only shows .Employee.Dependents.Relationship.
Pegasystems Inc.
US
ah - this makes it a whole lot easier ;)
that dropdown is not lying to you.
an .Employee has at a .Dependent of a certain .Relationship
You have to maintain the context of the relationship of the dependent to the employee
eddie
American Express
US
When I try to set the value to .Dependents.Relationship, I get the follwoing error :
Pegasystems Inc.
US
But, shouldn't it be .Employee.Dependent.Relationship ?
.Dependents.Relationship is predicated upon .Employee; at least it should be.
Pegasystems Inc.
US
Minnie,
Feel free to email me directly at [email protected]
It might prove faster than this forum. We can always post back here our resolution
eddie
American Express
US
Hi Eddie,
I was able to resolve it. It looks like I was adding the control to the top row (label) insteas of the bottom row :)
Thanks!
Pegasystems Inc.
US
awesome.
I am making a note to myself to make that the third of the first three things I check for ;)
eddie