Login Register Actian.com  

Actian Community Forum



Reply
 
LinkBack Thread Tools Display Modes
Old 2012-02-16   #1 (permalink)
Junior Member
 
Join Date: Feb 2010
Posts: 1
Default Value not in Optionfield Choicelist

I am using OpenRoad for Windows 4.1/0403 (int w32/00) .

Can optionfields display values not in the choicelist?

The optionfields are not dynamically created.

An example: optionfield has two choices: "Yes" and "No". It gets the value from a database which has a null. The optionfield displays "Yes" because there is no empty value in the choicelist. The problem is that the screen is not displaying the value.

Optionfields have a style option OF_EDITABLE which allows the user to enter a value not in the choicelist but after that value is saved and the optionfield reappears, the value is what the user entered but that value is not displayed to the user. Does OF_EDITABLE behave differently in other versions of OpenRoad?

Thanks for any help,
Arthur
arthur is offline   Reply With Quote
Old 2012-02-16   #2 (permalink)
Ingres Corp
 
Join Date: Mar 2007
Location: On the OpenROAD
Posts: 1,306
Default

You have to extend the field's ValueList when the value is not in the list yet.
This would have to be done in SetValue event block (as this event is triggered when the user enters a new value in the field).
Bodo is offline   Reply With Quote

Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2011 Actian Corporation. All Rights Reserved