Help please: LOV populates on parent window

From: MJIANG <mjiang_at_uponorhsdna.com>
Date: 30 Dec 2002 12:04:26 -0800
Message-ID: <10d5bf0.0212301204.7f521832_at_posting.google.com>



I am modifying a custom form. There is a button on parent window"Item_Main" to call anther child window"Define_Package". The code for WHEN-BUTTON-PRESSED is
app_custom.open_window('DEFINE_PACKAGE');

Code for procedure Open_window in package app_custom is

procedure open_window(wnd in varchar2) is begin
if (wnd = 'ITEM_MAIN') then
app_window.set_window_position('ITEM_MAIN', 'FIRST_WINDOW'); go_block('ITEM_MAIN');
elsif (wnd = 'DEFINE_PACKAGE') then
app_window.set_window_position('DEFINE_PACKAGE','CASCADE','ITEM_MAIN'); go_block('DEFINE_PACKAGE');
set_window_property('DEFINE_PACKAGE', VISIBLE, PROPERTY_TRUE); clear_block;
end if;
end open_window;

The problem is when I use LOV to populate fields on window "Define_pacage", the value comes up in fields on parent window Item_Main. The two windows have the same fields(Package Type, description). LOV is based on record group. Record group query code is select package_type,description,package_type_id from xx_package_types order by package_type

Any ideas to fix the problem? Thanks in advance. Received on Mon Dec 30 2002 - 21:04:26 CET

Original text of this message