Total unique table (no master/detail, no accessors view)
HelloADF tutorials are full of sum of groovy accessor "wage Total employees of the current Department" showing master/detail.
I need to make the sum of a column of unique view object and there is no master/detail relationship: object of a view, column, and footer Total.
There are solutions, each with a downside.
1. I can have a separate SumViewObject, select sum (attr) in the table. The downside is when I apply panelCollection filters to a table, the filters are not applied to the SumViewObject. So, I see the total value if no filter applied.
2. I can calculate sum in a bean managed to access lines of the iterator. The disadvantage is that it might be enough number of rows in a table and I must RangeSize the value - 1 to seek what is not good for performance.
3. I could try to calculate the amount in the same view as an additional line object. Not the best SQL query practice as well.
So what is the solution of predered?
Thank you.
ADF 11.1.2.1
Hi Ilya,
define a transitional attribute in your view with the value expression:
adf.object.findRowSetForRow("").sum ("LabourCostCurrency")
LabourCostCurrency is the attribute that you want to calculate the total.
Place this transitional attribute in the bottom of your column of LabourCostCurrency.
Works for me
Tags: Java
Similar Questions
-
Validation problem unique scenario master detail.
Hello
I have three tables involved in a scenario master / detail. Tables A, master, detail B and C join him table for the * to * relationship between A and B. The Association links were already in place to illustrate the relationships. The doDml() of the main entity was substituted to support business logic. Has also been overridden preprareForDml() method. When running the tester Application Module to test the scenario for a single validation, the following error appears:
I use Jdev 12.1.3
in the same way as in doML():
https://docs.Oracle.com/CD/E25178_01/Web.1111/b31974/bcrules.htm#sm0240
but I would like to do these operations in the click on the button create/edit (before calling Commit), OR DB trigger level and then refresh the data of VO
-
Master-detail with independent tables
Hi experts,
I use JDeveloper 11.1.2.4.0
I have two independent table (not related by foreign key), but I have to post this tables table of master / detail in the user interface and allow operation in milk CURD.
The two table have a common field so I can use this field to display link to make the relationship. Even if there is no foreign key, association is not created when I created the business components
Will I have to create an association for master-detail?
I created a view link and tested the functionality and his work has found.
Are there overhead if I create a master detail without an association?
I would like to learn more about the role of the association master detail design.
In the hope of good advise and suggestions.
Thank you and best regards,
Gijith (GTG)YHI,
There is no overload. You use assiciatons if you need analyze the relationship at the level of the entity. So its good how you
Frank
-
Master-detail - want to filter details VO
Hello
I have a master-detail with Show/Hide advanced table table advanced using a link. When the master is questioned (data providers), the secondary table (supplier Sites) returns all rows that is as expected.
However, I want to further filter the secondary table based on additional parameters of an OAMessageTextInput Bean. I can recover the user entry of the bean of text input, but my problem is that I'm unable to filter the DetailVO.
Pointers?
Thank you
p
I thought about it. (always the case once you post)
Blog link below gave me the advice I was looking for and managed to do the work.
Framework OA Blog: research on the table of master / detail in OFA
The key is to order
OAAdvancedTableBean innerTable = (OAAdvancedTableBean) webBean.findChildRecursive ("detailTbl"); OAInnerDataObjectEnumerator enum1 = new OAInnerDataObjectEnumerator (pageContext, innerTable); Browse objects then remove detail that I didn't.
-
Hello
I m using jdev10.1.3.4. In my PB, I have 3 tables that have primary-foreign relations. table 1 refers to the 2nd table, 2nd table relates to the 3rd table, as master-detail-detail.
In DataControlPalette, the 1st table collection 2nd collection of table, 2nd table collection contains 3rd collection of table. (by collapsing sign +).
I've linked '1st collection of table' with af:selectOneListBox, '2nd table collection' binded to another af:selectOneListBox. Finally I binded '3rd table collection' to an af:readonlytable.
When I m selecting a ListBox element 1, 2nd ListBox is not updated with the values. to select a 2nd list box item does not update the values in the table.
Please help me. I m novice jdev. link forward associated applicable example is available.
Kind regards
Published by: user45254525 on February 12, 2010 07:08
Published by: user45254525 on February 12, 2010 13:00
Published by: user45254525 on February 12, 2010 23:36Have you tried using lists for navigation?
http://blogs.Oracle.com/Shay/2008/11/the_navigation_list_select_som.html
You drag the elements of the complete hierarchy or the data control stand alone?
Have you tried setting between the first list and the second partial Page rendering? -
Using wizard to create forms of master / detail
Hi guys,.
I'm using JHeadstart 11.1.1.3.35 and having major problems trying to create records of master / details in a layout of the wizard
Department Master (shape, style Assistant, insert enabled, new line on entry)
Group of retail employees (form, data dependant, allowed insert, update has allowed)
Using schema HR with a view link between services and employees
Main group Department (Assistant)
= > Region of the element (all the fields of the Department)
= > Region container
= > Region group (Group of retail employees)
(NB - if I used a group of the region as step in the wizard at a higher level, the following error occurred during the generation which is why I wrapped it in a container of the region...
[NewDepartmentNewEmp.jsff, default/pageComponent/formRegionGroup.vm] Journal of speed [error] method pushModelPointer threw the exception of reference $JHS for model default/pageComponent/formRegionGroup.vm at [1,1]
[NewDepartmentNewEmp.jsff, default/pageComponent/formRegionGroup.vm] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'pushModelPointer' in class oracle.jheadstart.dt.jag.engine.velocity.JagEngineFacade threw exception class java.lang.NullPointerException: null
The problem is that the detail of employee group does not start in design mode.
I tried the create() method substitution in DepartmentsImpl
protected void create (AttributeList attributeList) {}
Super.Create (AttributeList);
NewEmployee RowIterator = this.getEmployees ();
NewRow row = newEmployee.createRow ();
newEmployee.insertRow (newRow);
}
I also tried the override of the executeQueryForCollection method in detail (saw this solution suggested in another post on creating a form-form master / detail)
protected void executeQueryForCollection (Object, object,
Object [] bindParams,
int i) {}
super.executeQueryForCollection (object, bindParams, i);
If (getEstimatedRowCount() == 0) {}
Line = createRow().
insertRow (row);
row.setNewRowState (Row.STATUS_INITIALIZED);
}
}
Nothing works well. I want to be able to use a wizard to create a record of master / detail in presentation view shape-to-shape. Is it possible, using a detail group, or do I have to create a separate view object that contains two master entity objects / detail in it and then just use the only VO in the Group Assistant of JHeadstart.
This seems a very basic requirement, I clearly do something wrong!
See you soon,.
BrentBrent,
To start in design mode, you must create the Group NewDeptEMp as a top-level group, so he will have his own taskflow. You can then define the new display line on the input property.
In your wizard NewDept, you create a group of the region DIRECTLY under the container of the separatePages region, check "Include as ADFc region" then select the NewDeptEMp group.
To work around the error that you got during the generation of the group in the region as an immediate child of the container sepeartePages, use the following code to formGroupRegion.vm:
# revision_history
# Steven Davelaar 28-sep-2011
Additional support # 1.2 for the group in the region as child of separatePages region container
Team JHeadstart # 30-sep-2006
Historical revisions # 1.1 added, the basic version is 10.1.3.0.97 (SU1)#if ($JHS.page.itemRegion)
#JHS_PARSE ($JHS.page.itemRegion.templateIdentifier $JHS.page.itemRegion)
#elseif ($JHS.page.regionContainer)
#JHS_PARSE ($JHS.page.regionContainer.templateIdentifier $JHS.page.regionContainer)
#elseif ($JHS.page.groupRegion)
#JHS_PARSE ($JHS.page.groupRegion.templateIdentifier $JHS.page.groupRegion)
#endSteven Davelaar,
Jheadstart team. -
Unique constraint in the form of master detail error
Hi all
I need help, the following requirement.
I have a master detail form developed on master-child table. the tables have the composite key.
Old masters has a composite key on columns (A, B)
Children table has a composite key on columns (A, B, C)
Child block look something like below
C A B
10 AAA 1000
20 1300 BBB
30 CCC 1400
40 DDD 1200
Increments of column C with 10 for each record, and if a new record is insert in intermediaries the records it is incremented to 5.
My requirement is when an end user attempts to insert record between 20 and 30 or 30 and 40 and clicks on save, the value of the C column must regenerate as shown below
C A B
10 AAA 1000
20 1300 BBB
XXX 30 900
40 CCC 1400
50 DDD 1200
Button Save I wrote the following code
Declare ln_Count NUMBER :=0; ln_c number :=0 cursor c1 is select c from child where a=:child.a and b=:child.b Begin Go_Block('Child'); First_Record; LOOP ln_Count:= ln_Count+10; :child.C := ln_Count; EXIT When :System.Last_Record = 'TRUE'; Next_Record; END LOOP; For c_cur in c1 Loop update child set c:=ln_c+10 where a=:child.a and b=:child.b and c=c_cur.c end loop; Forms_DDL('commit'); commit_prc('Commit'); -- We have our own program unit to call commit_form END;
I tried above in a way because, before approving the changes to the table, I update the existing values in the table of the C column so I would not get unique constraint error.
When you click the button Save, I get a constraint exception. Hope I made my requirement clear.
Can someone give me a clue to this implementation.
Thank you
malandain
With this update, all your C-columnvalue became negative. When you post the form thereafter, forms update agaion records one by one the new positive figures. Because the numbers of 'old' in the db are now negative, there will be no violation-UK.
-
Creating lines of master / details in a table
Hello
How to create the relationship of the master / detail between the columns in a table?
For example, I have a table with 3 columns as address (input box), Country (a selection list box), State (select one box list). I create State LoVs using view accessors for table and country view object. By choosing a country, I need to dig the status column values according to the selected country.
Thank you.Hello
I guess that you need a "cascading LOVs.
(1) create viewObject for list of country values. Named VO1.
(2) create viewObject for list of status values. The name of VO2.
(3) create view for (variable binding) VO2 criteria that may restrict the result by country.
(4) create view accessor to get VO1.
(5) create view accessor to get the VO2. Set the value of the bind variable which can provide country information dynamically. I guess it must be a Groovy expression.
(View accessor 6) Create country LOV on step 4).
(View accessor 7) create the State LOV on step 5).Fact
On the view layer, you can enable PPR between countries and the States of the attributes.
Todd
-
Hallo,
I have a page with 2 legs and they both contains an af:table created by dragging an instance of VO in the user interface.
The 1st tab uses a master VO while the 2nd uses a VO detail.
Between 2 your, there is not a link of VO master / detail.
Opening Details tab I update the secondary table by calling the method ExecuteWithParams of the detail VO instance (in a managed bean).
I would now like to generate a report that loop on the master table and that, for each line of master:
- He writes in the report;
- loops of registration of details (which are based on the master record) and also writes the report.
Could you kindly suggest me which is the best way to achieve that through a code to write in a managed bean?
Here I am interested how do to loop through the data, not in how to write the report.
Thank you
Federico
Yes it will affect the selected line. If you want to ignore try using this code
DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("DepartmentsView1Iterator"); ViewObject vo = iter.getViewObject(); for (int i = 0; i < vo.getEstimatedRowCount(); i++) { Row r = vo.getRowAtRangeIndex(i); System.out.println("DeptId= " + r.getAttribute("DepartmentId")); }
-
How to implement the concept master details in table advanced
Hello
I implement information master details in advanced table.
I guess all the data are coming in the secondary table, but below that certain spaces more are coming and showing an image and next to this, there is a text like ""pull down to load ". "
Can someone help me figure out why this extra space is coming this table below?
Thank you
Vijaya
Is that you can set the value of the below profiles false and try?
FND_ENABLE_RICH_TABLE_INTERACTIONS
FND_TOUCH_GESTURES_ENABLED
Beware that this will affect the gesture of support for touch devices
Thank you
-
Master detail relationship with condition enforcement in the secondary table
Hello
I have two tables are Dept (Master), PMCs (Detail). I have to show emp details with somewhere condition.
Ex;
I have a "Dept_effect_date" field in the dept table. When I m showing PGE details in the Details view, it must the EMOS who are hired after the dept_effect_date.
Sainaba.
Hello
The request of the employees table looks very good. Although it seems more logical to get the service id of the employeesEO instead of DepratmentsEO.
The next step should be to create a viewLink between the DepartmentsVO and the EmployeesVO based on the service ID field.
Once you have done this, add the EmployeesVO as a DepartmentsVO child in yout request module (and it will appear as such in the DataControl), so use these your to create master/detail table.
Updating the data based on the selected master will be automatically managed by ADF.
Kind regards
Elias.
-
How to create the column of the table for long-form Master detail relationship
Apex 4.1
Oracle 11g
I created a form master detail and see the main table hotel_list and table hotel_mapping as detailed below.
Hotel_list
ID HOTEL_NAME
1 Holiday Inn
Hotel Hilton 2
Hotel_mapping
ID HOTEL_NAME MAPPING_NAME
1 Inn Holiday Inn Select hotel
2 holiday hotel Holiday Inn Select
3 hotel Holiday Inn Holiday Inn Hotel
4 Hilton Hotel Hilton Hotel chain
Hotel Hilton 5 HiltonHotel
Table Hotel_name Hotel_list is a linked table Hotel_mapping
When I add a line to the Hotel_mapping table for the selected row in the hotel_list table, mapping_name of column is null, therefore impossible to create the relationship between the main table and the secondary table.
I would like to know, how to create the relationship?
Thank you very much
Best regards
Yong Huang,
simple step see creating a form detailed master with APEX - Assistant Master retail
and check how to maintain the relationship between two tables,
simple return the packaged application «Sample of Masters details»
and try to understand this concept...
In your example, use Hotel_list.ID as a foreign key in the table Hotel_mapping
and maintain the relationship with the column ID...
and choose the display type of the column Hotel_list.ID in table Hotel_mapping as List(Query Based LOV) select.
otherwise the best way is to create sample on oracle.apex.com
I hope this helps...
Leave.
-
MapView - Table | Master detail
Hello
I have a plan and I need to update a table accordingly to what the user selects on the plan. For example, the user clicks on a State on the map and watch the State news. I tried to use master detail that connects between the map and the table but I don't seem to work. Does anyone have a suggestion or a workaround?
Thanks in advance,
William JanotiProbably you have not added State column in Table guest section of the table display. Or maybe the status column in the view map and table are mapped to the columns of different logics.
Its pretty simple and I never found problems with master-detail map to the Table.
Thank you
-
Master detail form based on single Table
Hi all.
I have a table like
daily_transaction
(
TRANSACTION_DATE DATE,
LINE_ID NUMBER,
ITEM_CODE VARCHAR2 (10),
NUMBER OF BALANCE,
DESCRIPTION VARCHAR2 (500)
)
Now, I want to build form master detail
master form have only transaction Date all in the form of retail have row id, item, balance, date of transaction, description code
I join date of the main transaction with the date of the transaction in detail
now the problem is when I enter two archives in the form and save it, it save 3 record in the table, an empty line except transaction date
Please guide me how to save two archives:
Secondly when I update / edit date of master on the date of the operation blank line change, how do I update details formIn order to perform an update on a view - it must be a "editable view. You try to update the MASTER block (based on the view)? Otherwise, make sure that you change the property update block allowed to 'No' as it is default to 'yes '. If you do not update the MASTER block, make sure that your point of view is "can". Read this article from Tom ask article on editable views. http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:5226026422731.
Craig...
-
Hello
We have a request to change the master detail data. I dragged the main view as a form and view retail as a table and the navigation and every thing works fine. Each time, we change the master deta relevant detail data is visible in the secondary table.
But we view detail data (more than 20 columns) to fit the size of the form. And we also display the detail data of label next to each column for each detail line. Could you please suggest any component that meets our needs. Retail, data should also be displayed something like form of adf with all detailed lines displayed.
Thank you and best regards,
S R PrasadIt works for me:
JSF page:
code pagedef.xml:
Maybe you are looking for
-
I recently backed up my device ios 10 beta and restored then to the latest ios version 9 for some reason, I can't restore the backup as it appears only in the preferences > devices. The backup then presented later as unknown you try to restore the de
-
Naztech Xtra Drive to connect to the iPad 3
I'm trying to connect my player on my iPad Naztech xtra 3 but have not found an adapter that will do the job. anyone knows this please
-
option button missing in the Tools menu in ubuntu
button in Firefox missing from the Tools dropdownusing ubuntu 14.04, new intall downloadsAdd - onsset up synchronizationetc...here but no option button to change settingsas new tab jumpor other parameters that are only FLEURIDAS under this option but
-
PES, 13 and 14 pls can I play these games on my 655 hp and I want to knoe wheather is good for the games or not pls someone help me plss!
-
improve slow system performance
On the right hand corner, a message appears saying my CPU is at 100%, my computer very slow. How can I fix it?