Radio group initial value [message #360364] |
Thu, 20 November 2008 12:02 |
yuriy_l
Messages: 6 Registered: September 2008
|
Junior Member |
|
|
Hi All,
I have a form used for inserting some data into database. I have following problem: in 'Enter-Query' mode I have a LOV-based text item, in which I select some value and execute query.
Depending on the selected value, one of two radio buttons of a radio group (related to a database table column) should be selected by default: sometimes the first one, sometimes - the second.
The problem is that I can't set "Initial_value" property at a runtime, thus currently always the first radio button is selected by default.
If I explicitly select the second one after query execution - then :System.Form_Status value changes to 'CHANGED'.
Is there a way to make the described case work without affecting :System.Form_Status variable?
Thanks.
|
|
|
|
Re: Radio group initial value [message #360493 is a reply to message #360382] |
Fri, 21 November 2008 03:02 |
yuriy_l
Messages: 6 Registered: September 2008
|
Junior Member |
|
|
That is definitely the solution. Thanks.
Just a small change that I've done in your code:
set_record_property(:system.trigger_record, 'block_name', status, new_status);
|
|
|