Master detail form [merged 3] [message #524944] |
Tue, 27 September 2011 14:44 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/950e527d796f08e0516c71f4d206b506?s=64&d=mm&r=g) |
neworaclest
Messages: 9 Registered: September 2011 Location: canada
|
Junior Member |
|
|
Hi All,
I am new in doing a oracle form at work using 6i. need a master detail form with master data block with one field which is LOV.
As soon as user selects the data the corresponding details need to displayed.
My current got the master block to work with the Lov but if there 2 records in the table for the same master id it only displays one can someeone help me.
Also the other requirmement the user select the data from master table in master block and insert a new record or update exisiting record in child table
how to accomplish that
thanks for your help
|
|
|
|
|
|
|
|
|
|
|
|
Re: Master detail form [merged 3] [message #525032 is a reply to message #524992] |
Wed, 28 September 2011 08:15 ![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) |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
Baranor wrote on Wed, 28 September 2011 05:10
List item - Pop list. That's what I mean. Must be the same as a List Box.
However, for an List of Values with a Record Group, without 'validate from list' I had a record disappear on me too. Strangely enough. Not a week ago.
And I thought it was just me or my version.
Yes, I had this happen and couldn't figure out why my execute query was not returning any rows until I fiddled with the List Item and found the problem.
And yes, Forms 10g exhibits the same behavior.
[Updated on: Wed, 28 September 2011 08:18] Report message to a moderator
|
|
|
|
Re: Master detail form [merged 3] [message #525393 is a reply to message #525069] |
Sun, 02 October 2011 04:42 ![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) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
It might happen with a text item with an LOV with validate from list set, when the text item isn't a DB item. Assuming the item is populated by post-query, if the value isn't in the LOV you'll get an error. An errors that occur will post-query processing is running will prevent the record from displaying.
If it's a DB item that shouldn't happen as validate from list shouldn't fire.
As for list items - Form Builder help does say that'll happen (somewhere). If you set the mapping of other values property it won't.
|
|
|
|
|
|
|
Re: Master detail form [merged 3] [message #525562 is a reply to message #525557] |
Mon, 03 October 2011 13:52 ![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) |
![](/forum/images/custom_avatars/72104.gif) |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
I don't know what you did; how many forms (especially master-detail ones) did you create so far?
I suggest you to use Data Block Wizard. Don't be ashame, people use it frequently. Smart guys and girls from Oracle put a lot of effort into it so that you (we) wouldn't have. Forget about what you've done so far, create a brand new form. Use a wizard, follow its suggestions. If your data model is well made (constraints and stuff), a master-detail form will run p e r f e c t l y. As I said, all its functionalities will be there, absolutely no need for further coding.
Once you make it work, feel free to make it fancy (such as: create lists of values, rearrange items, create POST-QUERY triggers to populate non-database items, whatever). Save frequently, compile & test frequently.
Because, the way it is now, it is all wrong. Your words should have been:Me pretending to be youSee, when I open the form from apps, the form is in "enter query" mode. User navigates to the master block's text item and opens list of values, then selects a value and "executes a query" - corresponding detail block's records are populated.
|
|
|
|
|
|
|
|
|
Re: Master detail form [merged 3] [message #526550 is a reply to message #526545] |
Tue, 11 October 2011 09:34 ![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) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
neworaclest wrote on Tue, 11 October 2011 15:18i have lov on the master block that selects the data it should populate the detail block but it does not
That's not standard functionality and is difficult to implement. I'd get the basics working first.
So to get data - go into enter query mode. Enter some criteria. Press execute query.
neworaclest wrote on Tue, 11 October 2011 15:21alos i would like to insert the data from the detail block in the table not able to save it
Are you getting an error?
|
|
|
|
|
|
Re: Master detail form [merged 3] [message #526572 is a reply to message #526570] |
Tue, 11 October 2011 10:48 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Then it's probably failing to insert into the master table and never getting as far as the detail table.
If when you get the error you click on the help menu and then display error - you'll get a pop-up box showing the exact oracle error.
See what it says.
|
|
|