Home » Developer & Programmer » Forms » tab change (forms)
tab change [message #641061] Mon, 10 August 2015 06:30 Go to next message
sanodani
Messages: 98
Registered: October 2014
Member
Hallo Forum,

I would like to share my Problem about tab changed.
I have two Tabs in my forms, and i would like to have them, when i changed the tab, the respective fields should be enter_query mode.

I have When-Tab-page-changed Trigger at form Level:
declare
new_tab varchar2(30);
begin
if (:System.mode = 'ENTER_QUERY') then
  new_tab := get_canvas_property('tab_canvas', topmost_tab_page);
  
  if new_tab = 'tab1' then 
   go_item ('block1.id');
   enter_query;
 elsif new_tab = '_tab2' then
  go_item('block2.id');
  enter_query;
 end if;
end if;
end;


But it did not work :/ can anyone please suggest me, how i can do this?

Re: tab change [message #641071 is a reply to message #641061] Mon, 10 August 2015 07:42 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
You can't change datablock while in enter_query mode.
Re: tab change [message #641083 is a reply to message #641071] Mon, 10 August 2015 08:39 Go to previous message
sanodani
Messages: 98
Registered: October 2014
Member
Thank you for your Information Smile
Previous Topic: Dummy Fields
Next Topic: which Trigger??
Goto Forum:
  


Current Time: Fri Apr 19 12:31:59 CDT 2024