|
|
|
|
Re: On Button Trigger If Tab Page = My page then New_form('e:\new.fmx') [message #405506 is a reply to message #405486] |
Thu, 28 May 2009 02:39 ![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) |
shahzaib_4vip@hotmail.com
Messages: 410 Registered: December 2008 Location: karachi
|
Senior Member |
|
|
Thanks a lot Little Foot
I done this with alternative way as you told me to create 2 Button so i create and write this trigger which solve my problem
DECLARE
tp_name varchar2(30);
BEGIN
-- Retrieve the NAME of the top most tab page using the built-in GET_CANVAS_PROPERTY function. Pass in the name of the Canvas your tabs are in and the system variable topmost_tab_page which stores a property number
tp_name := GET_CANVAS_PROPERTY('CANVAS3',topmost_tab_page);
-- Perform specific tasks based on the name of the top most tab
IF tp_name = 'DATE_WISE' then
SET_ITEM_PROPERTY('OK',VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('OK',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('OK2',VISIBLE,PROPERTY_FALSE);
ELSIF tp_name = 'UPTODATE' then
SET_ITEM_PROPERTY('OK2',VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('OK2',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('OK',VISIBLE,PROPERTY_FALSE);
END IF;
END;
Thanks for the idea Little Foot
Shahzaib Ismail
|
|
|
|
|