Home » Developer & Programmer » Forms » view mode in forms 10g (developer 10g)
view mode in forms 10g [message #303414] Fri, 29 February 2008 05:03 Go to next message
msrahman
Messages: 6
Registered: February 2008
Location: Pakistan
Junior Member
hi, I created a master/ detail form in developer 10g.
the problem is that, on new form instance master block remains in view mode but detail block not.
how can i solve this problem.
Re: view mode in forms 10g [message #303455 is a reply to message #303414] Fri, 29 February 2008 07:15 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
What is "remaining in view mode"?

What is the problem? The fact that master block is in that mode, or the fact that detail block isn't? What is the desired behaviour? How does the WHEN-NEW-FORM-INSTANCE trigger look like?
Re: view mode in forms 10g [message #303591 is a reply to message #303455] Fri, 29 February 2008 23:38 Go to previous messageGo to next message
msrahman
Messages: 6
Registered: February 2008
Location: Pakistan
Junior Member
dear i just want view mode on when-new-form--instance .
for that i write :GLOBAL.MODE := 'VIEW'; and then execute query.
It works in 6i but not in 10g.
Re: view mode in forms 10g [message #303622 is a reply to message #303591] Sat, 01 March 2008 03:58 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
:global.mode = 'view' will only initialize a global variable whose name is "mode"; I don't have Forms 6i to test it, but I doubt that this is the only thing one has to do in order to put a form into a query mode. There *must* be something else (at least, that's what I think about it).

In forms 10g, investigate use of the 'QUERY_ONLY' parameter while calling the form such as
http://your_server/forms90/f90servlet?form=your_form.fmx&query_only=YES
Re: view mode in forms 10g [message #303633 is a reply to message #303622] Sat, 01 March 2008 05:19 Go to previous messageGo to next message
msrahman
Messages: 6
Registered: February 2008
Location: Pakistan
Junior Member
if I CALL the form as query_only then how can i insert r edit r delete records through form.
Re: view mode in forms 10g [message #303637 is a reply to message #303633] Sat, 01 March 2008 05:49 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You can not.

But, wasn't that your intention?
Quote:
i just want view mode

I still have no idea what the problem, actually, is. You've posted a several messages, and none of them accurately describes the situation.

First you want the "view" mode, now you don't. Which one is it?
Re: view mode in forms 10g [message #303642 is a reply to message #303414] Sat, 01 March 2008 06:04 Go to previous messageGo to next message
msrahman
Messages: 6
Registered: February 2008
Location: Pakistan
Junior Member
hmmmmmmmmm...
k actually i want view mode when form loaded until i press edit or insert.
Re: view mode in forms 10g [message #303646 is a reply to message #303642] Sat, 01 March 2008 07:36 Go to previous message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
What kind of functionality is this?

If you want your users to view data, OK. If you want them to modify (or insert new) records, fine.

But these two are opposite; where's the purpose in restricting something, but still allowing it?

What you might do is to use SET_ITEM_PROPERTY and disable all items; pressing the "Edit" or "Insert" button (if that's what you have), use the same built-in to enable items and allow updating and/or inserting.
Previous Topic: how to make a picture button in oracle forms?
Next Topic: Does any one can give me demos of oracle forms6i?
Goto Forum:
  


Current Time: Mon Feb 03 03:08:35 CST 2025