Home » Developer & Programmer » Forms » maximize windows (oracle 11g r2 windows 7)
maximize windows [message #633556] Sat, 21 February 2015 02:32 Go to next message
hisham99
Messages: 105
Registered: October 2008
Location: united arab emirates
Senior Member
i have form with two block for example
1) block1 (query data from table in database)
2) block2 (nondatabase)
3) i have button (trigger when button press) to go_block('block2');
4) when_new_form instance trigger
set_window_property(forms_mdi_window,window_state,maximize);
set_window_property('window1',window_state,maximize);

5)my formsweb.cfg the width=1440 and height=900
my problem is
when i press (go_block) its not working but if i remove the trigger when_new_form instance its work fine (but the window is not maximize)
how can i keep maximize my windows and alse using go_block
Re: maximize windows [message #633558 is a reply to message #633556] Sat, 21 February 2015 05:13 Go to previous messageGo to next message
Littlefoot
Messages: 21580
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
WNFI trigger fires first. I don't see how these SET_WINDOW_PROPERTY calls could affect WBP trigger and its GO_BLOCK ...

What are button's properties? What block does it belong to? Did you try to run the form in debug mode and trace its execution?
Re: maximize windows [message #633569 is a reply to message #633558] Sat, 21 February 2015 23:10 Go to previous messageGo to next message
hisham99
Messages: 105
Registered: October 2008
Location: united arab emirates
Senior Member
i make an example also its not working unless i remove when_new_instance trigger
  • Attachment: BLOCK.fmb
    (Size: 52.00KB, Downloaded 317 times)
Re: maximize windows [message #633570 is a reply to message #633569] Sat, 21 February 2015 23:52 Go to previous messageGo to next message
hisham99
Messages: 105
Registered: October 2008
Location: united arab emirates
Senior Member
still i didnt find the solution but i found that when i remove
set_window_property(forms_mdi_window,window_state,maximize);
the screen will be extended and the block will appear on the right side parallel to the main block
when it should be at the top of it
Re: maximize windows [message #633763 is a reply to message #633570] Tue, 24 February 2015 08:54 Go to previous message
CraigB
Messages: 386
Registered: August 2014
Location: Utah, USA
Senior Member
Hmm, when you run your form do you get any error messages? I ran your BLOCK.fmb (I had to change the blocks to control blocks) and it worked fine for me. I am using Forms 11g, however. I should also note, that I ran the form from inside the Browser instead of in a separate window.

Craig...
Previous Topic: FRM-47343 - Invalid node ID specified for hierarchical tree item
Next Topic: How To Calculate "Arrival Date" on "Pricing And Availability" Form in Oracle Order Management
Goto Forum:
  


Current Time: Fri Aug 14 21:51:04 CDT 2020