references displayed as dropdowns

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
tkilshaw
Posts: 170
Joined: Thu Jan 19, 2006 11:33 pm
Location: Western Canada
Contact:

references displayed as dropdowns

Post by tkilshaw »

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
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Yes, we are hoping to fit these two issues into version 1.6 schedule.
Aware IM Support Team
emendez
Posts: 14
Joined: Fri Jul 21, 2006 2:00 pm

references displayed as dropdowns

Post by emendez »

¿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.
emendez
Posts: 14
Joined: Fri Jul 21, 2006 2:00 pm

Post by emendez »

We have also tried defining a process:

FIND Nationality WHERE Nationality.description = 'ESP'
ENTER NEW Employee WITH Employee.nationality = Nationality

And still doesn't work.

Eduardo.
aware_support2
Posts: 595
Joined: Sun Apr 24, 2005 2:22 am
Contact:

Post by aware_support2 »

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
Aware IM Support Team
emendez
Posts: 14
Joined: Fri Jul 21, 2006 2:00 pm

Post by emendez »

Works fine. Thanks.

Eduardo.
Post Reply