Two issues with references displayed as dropdowns:
1) When the presentation for a reference attribute is set to Drop Down the referenced values are displayed in a drop down menu. On an ENTER form, for some reason, the field attached to the drop down already has a value set in it. Unless I preset its value with an IS UNDEFINED rule it should be empty, I think.
2) When the presentation for a reference attribute is set to Drop Down, on an ENTER form there is no way to create a new instance. You can only choose from existing values.
It would be very useful to be able to either choose an existing value from the dropdown or to click something to open the form for the referenced object type.
Thanks,
Terry
references displayed as dropdowns
-
- Posts: 7526
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
references displayed as dropdowns
¿Something new about this?. We want to initialize a reference attribute displayed as a dropdown and nothing is displayed when inserting a new business object. We got the rule as:
IF Employee.nationality IS UNDEFINED Employee.nationality = 'ESP'
'ESP' is, obviously, not the foreign key but the displayed value of the foreign key. We also tried:
IF Employee.nationality IS UNDEFINED Employee.nationality = 15
which is the value of the ID of business object Nationality.
Any suggestion?.
Thanks in advance,
Eduardo.
IF Employee.nationality IS UNDEFINED Employee.nationality = 'ESP'
'ESP' is, obviously, not the foreign key but the displayed value of the foreign key. We also tried:
IF Employee.nationality IS UNDEFINED Employee.nationality = 15
which is the value of the ID of business object Nationality.
Any suggestion?.
Thanks in advance,
Eduardo.
-
- Posts: 595
- Joined: Sun Apr 24, 2005 2:22 am
- Contact:
The process should work. What do you see in the Log Viewer when you start the process? Does it find an instance of Nationality? Does it assign it to attribute Employee.nationality when initializing the new Employee instance?
Also, you do not need a process if all you want to do is to set initial value for nationality. You can do it by adding the following rule to object Employee:
If Employee.nationality IS UNDEFINED Then
FIND Nationality WHERE Nationality.description = 'ESP'
Employee.nationality = Nationality
Also, you do not need a process if all you want to do is to set initial value for nationality. You can do it by adding the following rule to object Employee:
If Employee.nationality IS UNDEFINED Then
FIND Nationality WHERE Nationality.description = 'ESP'
Employee.nationality = Nationality
Aware IM Support Team