window problem [message #226929] |
Mon, 26 March 2007 23:50 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
u263066
Messages: 47 Registered: March 2007
|
Member |
|
|
i have package with these procedure and function.
function get_current_window return varchar2 is
canvas varchar2(30);
begin
canvas := get_item_property(:SYSTEM.CURSOR_ITEM, ITEM_CANVAS);
return(get_view_property(canvas, WINDOW_NAME));
end get_current_window;
procedure close_window(wnd in varchar2, children_only in boolean default FALSE) IS
begin
if (name_in('system.mode') = 'ENTER-QUERY') then
app_exception.disabled;
return;
end if;
IF (wnd = 'BLOCKNAME') THEN
APP_WINDOW.CLOSE_FIRST_WINDOW;
END IF;
if (children_only = FALSE) then
if (wnd = get_current_window) then
hide_window(wnd);
previous_block;
elsif (wnd = 'NEWVENDOR') then
close_child_windows;
end if;
hide_window(wnd);
end if;
procedure close_child_windows(wnd in varchar2 default null) is
window varchar(30) := wnd;
begin
--
-- Close the child windows of the current window
if (window is null) then
window := get_current_window;
end if;
close_window(window, TRUE);
end close_child_windows;
procedure open_window(wnd in varchar2) is
begin
if (wnd = 'BLOCKNAME') then
--position the window
--reset master-detail relations
--navigate to a block in the window
null;
elsif (wnd = 'NEWVENDOR') then
GO_BLOCK('NEWVENDOR');
end if;
end open_window;
I am calling a child window called a button trigger(when button pressed),apprently this child window would be opening in back.Can anyone help , what is code which this should be open in front.
My windows are 'BLOCKNAME' and 'NEWVENDOR', and his is called in the trigger.
hide_window('BLOCKNAME');
show_window('newvendor');
any help would be helpful
|
|
|
|
Re: window problem [message #226966 is a reply to message #226945] |
Tue, 27 March 2007 00:37 ![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) |
u263066
Messages: 47 Registered: March 2007
|
Member |
|
|
David,
Thanks for input.
Actully I have to call child ie NEWVENDOR and close by doing some operations. NewVendors is new window based out of non database block.
So I donot think it would be to go to an item on the new window and then open it.could be here something we can use of
procedure open_window(wnd in varchar2) is
begin
if (wnd = 'BLOCKNAME') then
null;
elsif (wnd = 'NEWVENDOR') then
GO_BLOCK('NEWVENDOR');
end if;
end open_window;
The window is called with show_window options but on back main window. any input
|
|
|
Re: window problem [message #227274 is a reply to message #226966] |
Tue, 27 March 2007 18:48 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/67467.jpg) |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Instead of "null;" maybe you need "go_block('BLOCKNAME');" and just make sure there is an item on 'BLOCKNAME' to which forms can navigate, even if it has to be a 'dummy' one pixel display only field in a corner.
David
|
|
|