problem in clearing data from related data blocks in oracle forms [message #638909] |
Thu, 25 June 2015 04:43 |
|
PREETISINGLA
Messages: 3 Registered: June 2015
|
Junior Member |
|
|
hello all,
I am quite new in oracle. i have three data blocks in my form blocka(non db),blockb(db block) and blockc(db),in first block I am populating a poplist using a field, similarly based on this list I have put a when list change trigger on one item of next block(block b),when I click on first poplist data appears and according to that another poplist also appears,
but my problem is when I clear the data by pressing the clear button all the data disappears ,but when I click on second poplist, the same data appears for the first poplist although I hv cleared the data, I want to clear all the blocks so that I can select new data.
my clear button code is:
Go_block('blockA');
clear_block(no_validate);
Go_block('blockB');
clear_block(no_validate);
Go_block('blockC');
clear_block(no_validate);
kindly provide me the way to resolve this problem...
|
|
|
|
|
Re: problem in clearing data from related data blocks in oracle forms [message #639098 is a reply to message #638918] |
Wed, 01 July 2015 09:55 |
|
CraigB
Messages: 386 Registered: August 2014 Location: Utah, USA
|
Senior Member |
|
|
Poplist items get their values from a Record Group. You can dynamically control the record group using the CLEAR_LIST() built-in. It takes either the ITEM_ID or ITEM_NAME as an argument. Afterwards, you will have to use the POPULATE_LIST() built-in to add values back to the Poplist. You will first need to create a record group with the new values using the CREATE_GROUP_FROM_QUERY() built-in and then using the Record Group ID of the group you just created, use the POPULATE_LIST(RG_ID) built-in. For more information and a code sample look up the CREATE_GROUP_FROM_QUERY() built-in in the Forms Help.
Craig...
|
|
|