Powerm wroteIf I remember well a shortcut can not refer to an other shortcut and in your case the shortcut is blank at the Entry form because the reference attribute has bot been added to the main BO. ( it will show when you add an Employee to the created Company ).
Do not abuse of shortcuts as they are virtual fields, if you have to export your database one day that field won't be export on the listed table. Try to use calculated fields.
Hi Powerm,
Thanks for the reply.
I use a process to enter payslip;
EnterPaySlipBO
1) ENTER NEW npSelectEmployees <-- this is a non persisted BO
This will open a form where the user can select the company and then pick one employee that belong to the selected company. The non persisted BO only has two attributes. COMPANY refers to CompanyBO and EMPLOYEE refers to EmployeeBO
2) ENTER NEW PaySlipBO WITH PaySlip.EmpRef=npSelectEmployees.EMPLOYEE
If I have a shortcut attribute of "sc_EmployeeID = EmpRef.EmpID" it is displayed as it is the immediate parent, but if I want to display the CompanyName, (which I thought I should be able to do) it doesn't.
I tried doing it direct on the form as well with <<PaySlipBO.EmpRef.CompRef.CompanyName>> , still blank.
Is this because the PaySlipBO instance isn't created yet? If that's the case, (for consistency only), all shortcuts should not work if using ENTER NEW ???