Bc4j: howto create master-master-detail viewlinks?
is it possible to create details with more than 1 master? i need this for multiple intersection entities. the masters must not be updatable.
thanx for any hints, trevi
Trevi:
Take a look at:
referential integrity & bc4j createRow
Thanks.
Sung
Similar Messages
-
Creating a master-detail relation between a view and a table
Hi all,
I have a problem with creating a master-detail relation between a database-view with lots of customer data and a small table with per customer a list of entities of our companies who may work for that customer.
Somehow I seem to be unable to create a relation between these two. I can't find where I can make a foreign key using Toplink to implement the relationship. And neither can I get a Viewlink object doing the job using ADF Business Components.
Somebody any suggestions on this problems?
Regards,
BirgitThere is a key relationship between two fields which form the primary key in the main table of the view and two fields in the second table.
I created a viewlink manually, but I still couldn't get the data correct i.e. a form with one record of a customer from the main view and a small table with all entities of our company who can make performances for that customer.
I tried to find a manual or a how-to on this topic but I didn't find anything helpfull yet.
Regards,
Birgit
After a couple more tries, I got the master-detail working. With all the fiddling I am not sure what caused the problem but I think the finally action was checking which fields of the view were marked as primary keys.
Now everthing is up and running.
Birgit
Message was edited by:
user492355 -
Is it possible to create a Master-Master-Detail JClient Form?
Hi,
I've been trying to create a Master-Master-Detail JClient Form, where both master-values will be displayed in a seperated drop-down-list.
First I've tested this with a single Master-Detail (is it correct, that a single drop-down-list, working as master will not work with LoV-Binding!?) - However, the combobox-model must be set to Navigation-Binding...
After adding another combobox (the second master), and testing the result, it seems that the detail-table only corresponds to the selection of the first master.
The problem with LoV-Binding was, that the drop-down-list starts with the value at ID '0' (which doesn't exists) instead of '1'...
The Question is, how can I create a Master-Master-Detail JClient Form!?
thanks,
hubiHi,
I've been trying to create a Master-Master-Detail JClient Form, where both master-values will be displayed in a seperated drop-down-list.
First I've tested this with a single Master-Detail (is it correct, that a single drop-down-list, working as master will not work with LoV-Binding!?) - However, the combobox-model must be set to Navigation-Binding...That's true for navigation as you want to use the Combo as the navigator for the Master VO iterator. Lov Binding is used to "update" certain attributes based on selection. You are trying to drive the detail rowset for a selected master and NavigationBinding is the appropriate binding for this purpose.
After adding another combobox (the second master), and testing the result, it seems that the detail-table only corresponds to the selection of the first master.That's the behavior you get from the default data model.
The Question is, how can I create a Master-Master-Detail JClient Form!?First you need to create a ViewUsage structure that implements Master-master-detail. This is not allowed by Bc4j wizards. However you can create such a structure at runtime by using createViewLink method on the ApplicationModule to link the "second" master with the detail (same VO as the first Master's detail).
Assuming both the comboboxes are bound to individual Master VOs using NavigationBinding, you should now be able to traverse the details using both ComboBoxes (which represent the master). -
How to create a master detail from using jdeveloper
i am using developer 9.0.2 is it possible to create a master detail from using developer like in forms and also the detail form should be in tabular form
thank uYes. Just use BC4J and JClient
Frank -
Need to create a Master Detail Form
Hi Gurus,
I have a requirement to create a Master Detail Form. As per my requirement I have a list of Invoice Numbers and once I click on a Invoice Number a new form should open and that Form should contain two regions:
1. Master
2. Detail
1. Master Block should have the Invoice Header Detail which is non-updatable.
2. Detail Block should be able to perform create, update and delete the lines from here. This detail block should have multiple lines so that user can enter data to create new records in it.
Kindly let me know your valuable inputs on this. Please share any document, site or any other information on this.
Thanks,
SandyNormally, you would create 2 EOs say a MasterEO and DetailEO
Then Create an Association Object Between them based on the PK-FK relation say MasterToDetailAO
Then create 2 VOs Based on the 2 EOs already created, say MasterVO and DetailVO
Then create a ViewLink between them, MasterToDetailVL
Then add the master VO to ur AM
And Attach the VL created to the instance of the MasterVO in the AM.
So the DetailVO will be now linked to the MasterVO via the VL
U just need to query the master records and the details will automatically be displayed -
Creating a Master with Two Detail report style
In a Group-Above report data model, how does one add a 2nd detail group appearing at the same hierarchial level as the 1st group?
The report already exists with MASTER and detailA. I need to add detailB and tie it to MASTER just like detailA.
|MASTER|
|detailA||detailB|
\-------/\-------/Amjad,
Thanks for the reply. My question relates to your suggestion #1: How does one create detailB in the data model?
The only thing I have been able to do is to create a 2nd query linked to the 1st query. This makes the data model look like it has two masters each with one detail. What I want is a single MASTER with two details.
Are you suggesting that the only way to accomplish this is by having two queries, one linked to the other, as in the crude rendering shown below?
|MASTER1||MASTER2|
|DETAIL1||DETAIL2|
The above would be displayed in the data model as follows:
|__Q_1___||__Q_2___|
|G_DETAIL1||G_DETAIL2|
\----------------/\----------------/ -
Help needed to create a master-detail JSP page using OAF.
I like to create a master-detail JSP page using OAF. If any help or guide will be appreciate.
- KausikA Master Detail Page is a basically a game between two VOs(Master and Detail mostly connected through a View Link). You can also have a look at the View Link section in the Dev guide. Page Layouts is one thing which you can take a call yourself.
Regards
Sumit -
Connect third ViewObject to 2 ViewObjects (Master And Detail) via ViewLink
I have three ViewObjects; 1 Master 1 Detail connected with a ViewLink; i have a third Read-Only (SQL Based) ViewObject which can only be resolved by two bind variables. But the 1st bind variable is on the Master and the second is on the Detail. How can I connect the third ViewLInk to the Master and Detail ViewObjects?
I dropped both viewobjects as read-only tables and they both have the rangesize set to -1.
I think I made myself a bit unclear when asking my question. I do not want a "normal" master-detail view in my jsp where you see one masterrow and all the detailrows. I want my page to show all the masterrows with all their corresponding detail rows listed under the master row.
The pseudocode may look like this:
for each row in MasterViewObject loop
<<display data in MasterViewObject>>
for each row in DetailViewObject loop
<<display data in DetailViewObject>>
end inner loop
end outer loop
As you see I have a double loop here. Is somehing like this possible without "manually" doing all the stuff?
Thanx
Tom -
Creating a master automatically when creating a detail row
Hi,
I'm using Jdev. 11.1.2.3.0
I have three tables (with their corresponding view objects) with a master/detail/detail relationship.
The first-level detail table contain a maximum of one row for each master row.
The ids of the first-level and second-level details are automatically generated with a groovy expression and a sequence.
The views are added on the page as table(master/)form(detail)/table(detail).
I have a case where a master record has no details and i need to create a row in the second-level detail table.
So is there a way to tell ADF to automatically create the first-level detail row (since the master is known) ? or i should manually check that such a row doesn't exists in the first-level detail table and thus create it before creating the row in the second-level detail table?
Thank you.So is there a way to tell ADF to automatically create the first-level detail row (since the master is known) ? or i should manually check that such a row doesn't exists in the first-level detail table and thus create it before creating the row in the second-level detail table?
Thank you.
No, there is no such option so you will need to manually create this row.
Dario -
How to create a master detail form using single table
Hi,
how to create a master detail form using single table.
Regards,
M. SatishHi
how to create a master detail form using single table.Make the Master ur pks the details the rest of ur data base field in the detail it's a mater of organizing fields on a form M-Detail...
Now What ?
Regards,
Amatu Allah -
Trouble Creating a Master-Detail Form
I am trying to create a Master-Detail Form for two tables: Employee and Employee tools. I am using the wizard to create the form. I am just using the defaults and haven't added any code. The form updates the detail rows fine, but I get an error every time I add a new row. Below is an excerpt of the error. It appears that the Checksum is changing. Since this is generated code, is there a bug in APEX. Any thoughts on how to overcome this?
Thanks,
JOhn
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "EF2E77BFA1386ECCC11B7C3B2A464E60"., update "EMPLOYEES"."GLASSES" set "FK_PAYROLL_NUMBER" = :b1, "PURCHASE_DATE" = :b2, "OPTICIAN" = :b3, "COST" = :b4, "CHECK_NUMBER" = :b5Hi,
You can have multiple regions with data from different tables on a single page.
It all depends on the design of your database and pages, how you're going to solve this. Sometimes you need to create a database view to select data from multiple tables, sometimes you'll just create more than 1 region on your page.
Just try and play a little with Apex to learn some of the tricks. Also the built-in help is very good. You can select a 2-day developer guide to get a feeling of what is possible.
Good luck! -
hi
I have master And Detail with 4 level ,I want to have on operations button for all block in data control .
(similar to Oracle form toolbar)
how to do it ?Well, if you tell us your jdev version and what exactly you try to do, without just telling us 'as in forms' we might be able to help.
Most of us don't know how it's done in forms. So be specific when you describe your use case.
Timo -
Example of how to create a master-mutiple detail BI Publisher 10.1 Report
Hi,
Are there any examples out there on how to do this? Basically for each master record from table A,
need multiple related detail records from table B AND multiple related detail records from table C.
Ie. A is master to B AND A is master to C.
For master-single detail reports, writing a single query that joins master to detail works fine,
but for master-multiple detail reports, I don't see how this approach will work.
Thanks,
JedSure, here is one (hand edited, but shows some structure).
Detail rowset2 relates to rowset1 via STDINV_ID.
Detail rowset3 related to rowset1 via STUDY_ID and STDINV_ID.
Thanks for your consideration.
-Jed
<?xml version="1.0" encoding="UTF-8"?>
<DATA>
<ROWSET1>
<ROWSET1_ROW>
<STUDY_ID>105</STUDY_ID>
<STUDYNAME>TEST293</STUDYNAME>
<INVNAME>Flinstone, Fred</INVNAME>
<COUNTRY>USA</COUNTRY>
<STDINV_ID>3721</STDINV_ID>
<ROWSET2>
<ROWSET2_ROW>
<STDINV_ID>3721</STDINV_ID>
<TEMPLATESENT>11/02/2006</TEMPLATESENT>
<FINALCONTRACTRECEIVED>11/13/2006</FINALCONTRACTRECEIVED>
<CONTRACTTYPE>Main Agreement</CONTRACTTYPE>
<DRAFTRECEIVED></DRAFTRECEIVED>
<EFFECTIVEDATE>11/13/2006</EFFECTIVEDATE>
<EXPIRATIONDATE></EXPIRATIONDATE>
<CONTRACTSTATUS>Executed</CONTRACTSTATUS>
</ROWSET2_ROW>
</ROWSET2>
</ROWSET1_ROW>
<ROWSET1_ROW>
<STUDY_ID>105</STUDY_ID>
<STUDYNAME>TEST293</STUDYNAME>
<INVNAME>Bell, Taco</INVNAME>
<COUNTRY>USA</COUNTRY>
<STDINV_ID>3157</STDINV_ID>
<ROWSET2>
<ROWSET2_ROW>
<STDINV_ID>3157</STDINV_ID>
<TEMPLATESENT>07/12/2005</TEMPLATESENT>
<FINALCONTRACTRECEIVED></FINALCONTRACTRECEIVED>
<CONTRACTTYPE>Main Agreement</CONTRACTTYPE>
<DRAFTRECEIVED></DRAFTRECEIVED>
<EFFECTIVEDATE>04/05/2006</EFFECTIVEDATE>
<EXPIRATIONDATE></EXPIRATIONDATE>
<CONTRACTSTATUS>Executed</CONTRACTSTATUS>
</ROWSET2_ROW>
</ROWSET2>
<ROWSET3>
<ROWSET3_ROW>
<STUDY_ID>105</STUDY_ID>
<STDINV_ID>3157</STDINV_ID>
<EXPIRATION>10/02/2007</EXPIRATION>
<IRBNAME>Big Kahuna IRB</IRBNAME>
</ROWSET3_ROW>
<ROWSET3>
</ROWSET1_ROW>
<ROWSET1_ROW>
<STUDY_ID>105</STUDY_ID>
<STUDYNAME>TEST293</STUDYNAME>
<INVNAME>King, Burger</INVNAME>
<COUNTRY>USA</COUNTRY>
<STDINV_ID>3112</STDINV_ID>
<ROWSET2>
<ROWSET2_ROW>
<STDINV_ID>3112</STDINV_ID>
<TEMPLATESENT>07/10/2005</TEMPLATESENT>
<FINALCONTRACTRECEIVED>11/21/2005</FINALCONTRACTRECEIVED>
<CONTRACTTYPE>Main Agreement</CONTRACTTYPE>
<DRAFTRECEIVED></DRAFTRECEIVED>
<EFFECTIVEDATE>11/23/2005</EFFECTIVEDATE>
<EXPIRATIONDATE></EXPIRATIONDATE>
<CONTRACTSTATUS>Executed</CONTRACTSTATUS>
</ROWSET2_ROW>
<ROWSET2_ROW>
<STDINV_ID>3112</STDINV_ID>
<TEMPLATESENT></TEMPLATESENT>
<FINALCONTRACTRECEIVED></FINALCONTRACTRECEIVED>
<CONTRACTTYPE>Amendment 1</CONTRACTTYPE>
<DRAFTRECEIVED></DRAFTRECEIVED>
<EFFECTIVEDATE>04/01/2008</EFFECTIVEDATE>
<EXPIRATIONDATE></EXPIRATIONDATE>
<CONTRACTSTATUS>Executed</CONTRACTSTATUS>
</ROWSET2_ROW>
</ROWSET2>
<ROWSET3>
<ROWSET3_ROW>
<STUDY_ID>105</STUDY_ID>
<STDINV_ID>3112</STDINV_ID>
<EXPIRATION>08/16/2011</EXPIRATION>
<IRBNAME>Top Notch Healthcare</IRBNAME>
</ROWSET3_ROW>
</ROWSET3>
</ROWSET1_ROW>
</ROWSET1>
</DATA> -
Example of how to create a master-multiple detail PDF report using BI Pub
Hi,
Are there any examples out there on how to do this? Basically for each master record from table A,
need multiple related detail records from table B AND multiple related detail records from table C.
Ie. A is master to B and A is master to C.
For master-single detail reports, writing a single query that joins master to detail works fine,
but for master-multiple detail reports, I don't see how this approach will work.
Thanks,
JedYou MIGHT have a better response if you ask this question in the BI Publisher forum...: BI Publisher
Thank you,
Tony Miller
Webster, TX
There are two kinds of pedestrians -- the quick and the dead. -
Details regarding Create customer master record
Hi,
Can anyone gv info regarding Creating customer master record.
I need Existing Bapi's for the same.
Thanks in advance.
PurnaCheck out the bapi:BAPI_CUSTOMER_CREATEFROMDATA1.
To know of how to use it, check its documentation, it is very well documented.
hi karthik, shaik can not reward points as he did not mark this as a question.
Regards
Gopi
Maybe you are looking for
-
I have an SSRS report that is rendered as a PDF file; the report has many columns and utilizes 11inx17in (Landscape) paper. However, once the report is rendered and users try to print the report they have to manually select the 'Choose Paper source b
-
Why can't I change the order of the songs on a playlist on my iPhone?
When I try to change the order of the songs in my playlists, my iPhone continues to put the song back where it started. I can add songs all day long, but I cannot change the order. The other problem I am having is the same iPhone will, instead of m
-
Solaris x86 10 u1 (01/06) Update manager showing obsolete patches
I installed 10 u1 (01/06) the other day. I ran the Update Manager and I think there were 8 patches, so I attempted to install them. Only one of them successfully installed (118966-12), six of them show up in /var/sadm/spool/disallwed_patch_list_repor
-
Hi all, Iam executing a report in the foreground and i want to send the output data directly to the spool instead of displaying as list output. Any idea. Regards, Shiva
-
BB charge for forwarding e-mail?
Can someone help me here... I was given detailed guidance by an 'Orange' helpdesk operator for getting my pop e-mail fowarded to my BB 8900. I still can't set up e-mail though. A second call to another 'orange' tech told me that I have to have a mont