How can I track radio button id or name in oracle forms? [message #462769] |
Sun, 27 June 2010 02:38 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
rokon
Messages: 2 Registered: June 2010 Location: Dhaka, Bangladesh
|
Junior Member |
|
|
I have a form which contains some block (each block with some text item, two radio groups and a list item). I want to enable/disable and set visible property as true/false for first to last items of each block conditionally. I can do that for all items but radio buttons.
Because to set item or radio button property I need to pass that items ID or Name as parameter. I can get items name/type using get_block_property and next item of that item using get_item_property but unable to get radio button ID/Name using get_radio_button_property or any other builtin. To execute get_radio_button_property or set_radio_button_property I need to pass radio button ID/Name. So, how I track radio button id or name in oracle forms? Is it limitations of Oracle forms?
|
|
|
|
Re: How can I track radio button id or name in oracle forms? [message #462858 is a reply to message #462802] |
Mon, 28 June 2010 04:33 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
rokon
Messages: 2 Registered: June 2010 Location: Dhaka, Bangladesh
|
Junior Member |
|
|
Your answer is right but I want to do this dynamically for each block just with block name(Block Name also dynamic which wi). As I want as follows:
Declare
v_block VARCHAR2(30):=:SYSTEM.CURSOR_BLOCK;
/*
In which block I want to execute the program like 'CTRL_SINGLERECBLK';
*/
v_firstitem VARCHAR2(30);
v_lastitem VARCHAR2(30);
Begin
v_firstitem:=GET_BLOCK_PROPERTY(v_block,first_item);
v_lastitem:=GET_BLOCK_PROPERTY(v_block,last_item);
loop
if get_item_property(v_firstitem,item_type)='TEXT ITEM' THEN
if get_item_property(v_firstitem,enabled)='TRUE' then
set_item_property(v_firstitem,enabled,property_false);
end if;
elsif get_item_property(v_firstitem,item_type)='Radio Group' THEN
/*
Here I want to set enable property of each radio button of v_firstitem. Now I can pass Item Name but to set radio button property I have to pass Button Name also. So, how can I get the button list of that item?
*/
null;
end if;
exit when v_firstitem=v_lastitem;
v_firstitem:=get_item_property(v_firstitem,nextitem);
end loop;
Exception
When others then
null;
end;
/
regards
Md. Kazi Rokon
|
|
|
|
|
|
|
|
|