Advance table Total option
Hi all,
In Advance Table column values are comma separated (These are handled in query)
When I enabled the totaling on this column, the total value is not comma separated.
There is any way to achieve this.
the scenario is col1 col2 col3
1,200
2,400
total 3600
how to get the total value as comma seperated.
it is very urgent.
thanks in advance
regards
You are showing the values as comma separated strings in a column. This is what I currently understand from your description. In that case the standard totalvalue is not going to work. You have to manually loop through the VO rows and calculate the total youself. How would you like to show the total value is a decision you can take. As I understand totalValue would not show strings, so you would not be able to set it.
Similar Messages
-
Get Total of a Column of Advanced Table and use it in Controller in OAF
I have an advanced table on my custom page. I am calculating total of a column in my footer. I am acheiving this using the standard functionality of advanced table by setting total value property of my column to "TRUE" and displaying the total in the tablefooter components.
In addition to this I want to retreive the total value from my footer and use it in my Controller for further validations but I am not able to acheive this.
I tried some code already present in the Community for the same but nothing turned out right for me.
Can anyone please help me on this.Hi there ,
You can manually add the values of each row of a column and make use of the value obtained in your controller .
Here is the logic ,
1) get the vo instnace attached to that table .
2) Loop through every single row in the table .
3) get the value and sum up the value and use it in your controller .
int fetchRowCount = vo.getFetchRowCount();
voRowImpl row = null;
int count =0;
if (fetchRowCount > 0) {
RowSetIterator iter = vo.createRowSetIterator("Iter");
iter.setRangeStart(0);
iter.setRangeSize(fetchBidderRowCount);
for (int i = 0; i < fetchBidderRowCount; i++) {
row = voRowImpl iter.getRowAtRangeIndex(i);
//use RowImpl getters 10.
Number personId = row.getPersonId();
count =personId+count; // add each and every value and have in variable
iter.closeRowSetIterator();
Regards ,
Keerthi -
Problem in formatting Total Value in advanced table
I want to format Total Value for each column to USD format i am able to do for Column values but for Total Value i am not able to make it, i reffered all the previous threads and tried nothing worked out, can any one help me out its very urgent
Thanks
BabuFirst thing is as Tapash has pointed out, How did you do it which is not working? Second point is that there is straight forward mention of this scenario in Advanced table section of the Dev guide. Have a look.
--Shiv -
I am unabel to select all rows in advance table using Select All option
Hi all ,
I am unable to select all the rows in advance table . Select All option in advance table selects all rows present in working page but doesnt select the rows which we get by clicking next button ... i am having a requirement to select all the rows with a single click on select all , is it possible ..
Plz help
Thanking you allHi,
I'm using an adf table but i don't want to have the "Select All" and "Select None" options above the table. Does someone know how i have to remove those links?
Or is there indeed a solution to override the methodes of those links?
Message was edited by:
Alexander -
hi all,
i have one advance table region with total.
in advance table region displays records(ex my advance table region displays 5 records).
every number field display the total(this total calculate 5 records data)
ex:
1000
2000
3000
4000
5000
total 15000
my page work like above senario.
but my client requirement is,in 5 records he select any two records and display the 2 records total.
how to achive this
plz help me its very urgent...
Thanks
Edited by: its urgent on Apr 13, 2012 4:38 AMHi Gurus,
Please help me. its very urgent
Thanks -
Advanced Table with Grand Total
I have an advanced table created at the design time with property "Records Displayed" is set to 10. That means, i can able to see 10 records at a time. i have click on Next "Next 10" link to see the next 10 records. i have created a footer with Total. it is showing the sum of the column for the 10 records at a time. Every time i click on "Next 10" , it shows the next 10 records and give me total for current 10 records.
My requirement is show the grand total in the footer. is there any simple setup to show the grand total instead of current page total ? Can i replace the current page total with grand total ? if so, how can i get the handler for the total ?We have not implemented this functionality but OAF Dev guide [11.5.10.2] has this info.
Control Total Value Generation
To bypass OA Framework's mechanism to control the value generation for a table column footer so you can
provide your own value such as a percentage, set the
oracle.apps.fnd.framework.webui.OAWebBeanConstants TABULAR_FUNCTION_VALUE_ATTR on the
appropriate table column. This overrides OA Framework's internal behavior of footer value generation. Like all
web bean attributes, you can data bound this attribute if required.
Sample usage:
OAAdvancedTableBean advtableBean = ...;
OAMessageStyledTextBean salaryBean = advtableBean.findChildRecursive(...);
String formattedTotal = ...;
*// compute the total*
salaryBean.setAttributeValue(TABULAR_FUNCTION_VALUE_ATTR,formattedTotal);
or:
salaryBean.setAttributeValue(TABULAR_FUNCTION_VALUE_ATTR,
new OADataBoundValueViewObject(...));
Grand Totals
Declarative or programmatic support for Grand Totals is currently not available in advanced tables. To
implement grand totals, you must build your own layout below the advanced table in accordance with the
Oracle Browser Look-and-Feel (BLAF) Guidelines: Tables: Grand Totals [OTN version]. Use the
messageComponentLayout region style to build this layout. In addition, you must programmatically provide the
values for the grand total fields. Since these fields are like any other form fields, you can first calculate the
grand total value in your controller code by looping through the entire view instance row range, and then call
setText() for the grand total field to set it with the calculated grand total value.
Hope this helps.
--- Thanks -
OAF :I need to show totals for columns that breaks on one of the column in Advance Table
I am using advance table (AT),
I have a requirement to calculate totals for few columns in the AT, based on the account number ( totals should break on the account # , as shown below )
Please help.
Account
Desc
Paid Amt
AP Credit
acc1
desc1
200
100
acc1
desc1
300
100
acc1
desc1
400
100
Total 900
Total 300
acc2
desc2
150
50
acc2
desc2
250
50
acc2
desc2
100
150
Total 500
Total 200
Message was edited by: 85de445e-a75a-4f2f-b086-8cb6abb09c5d
CAN ANY ONE PLEASE PROVIDE ANY INPUTS.. , AS ITS URGENT ! Thanks in advance.Any updates on this please !!! ?
Please suggest if this can be achieved by any other region type or any specific type to be used ?? -
Total option in REUSE_ALV_LIST_DISPLAY
Hi,
If we CHECK total option in REUSE_ALV_LIST_DISPLAY we get a total of numeric value with yellow color at the bottom.
Requirement:
Let say I have 3 line item records in the display, with 20 fields and one amount field. So I get the total of the amount field. Apart from that I want the Total number of LINE ITEMS to get displayed on that line. Is that possible . How?
Thanks in Advance.Hi Mohan Kumar,
I think this is not possible using the total option in REUSE_ALV_LIST_DISPLAY. A small shortcut is to provide another field called line item number (Populate with number 1) and use the sort parameter for the FM.Populate the sort table with the key fields of header and pass it to the FM 'REUSE_ALV_LIST_DISPLAY'.
If U dont want to see the item number also then U need to use the FM 'REUSE_ALV_FIELDCATALOG_MERGE'. Fill the first table with the Header data 2nd table with the item details and the 3rd table with the totals. -
Unable to show error message in Advanced Table
Hi All,
I have an requirement to show a pdf ouput when user clicks on image or button in advanced table. I have created a new button in advanced table and when user clicks on button, I am showing an error message for testing. i used below code for CO extn, but when I click on button, I can see the diagnostic message but the error message is not showing in the page.
Need your assistance.
package XXJava.oracle.apps.ar.program.webui;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Hashtable;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import oracle.apps.ar.irec.common.webui.CustomCustSearchCO;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.webui.OADataBoundValueFireActionURL;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAImageBean;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.OAWebBeanData;
import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
import oracle.cabo.ui.UIConstants;
import oracle.cabo.ui.action.FireAction;
public class XX_CustomCustSearchCO extends CustomCustSearchCO {
public XX_CustomCustSearchCO() {
public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
super.processRequest(paramOAPageContext, paramOAWebBean);
OAAdvancedTableBean CustomCustSearchTable= (OAAdvancedTableBean)paramOAWebBean.findChildRecursive("CustomCustSearchTable");
OAImageBean XX_Attach =(OAImageBean)CustomCustSearchTable.findChildRecursive("XX_Attach");
/*Hashtable params = new Hashtable (1);
//params.put ("XX_ACTION","XXX");
params.put ("XX_ACTION","ATTACHMENT");
Hashtable paramsWithBinds = new Hashtable(1);
//paramsWithBinds.put ("XX_PRIMARY",new OADataBoundValueFireActionURL((OAWebBeanData) XX_Attach, "{$ConsInvId}"));
paramsWithBinds.put ("CONS_ID",new OADataBoundValueFireActionURL((OAWebBeanData) XX_Attach, "{$ConsInvId}"));
//paramsWithBinds.put ("CONS_ID",new OADataBoundValueFirePartialActionURL((OAWebBeanData) XX_Attach, "{$ConsInvId}"));
XX_Attach.setFireActionForSubmit("addnInfoEvent",params,paramsWithBinds,false,false);*/
FireAction localaction = new FireAction("tempEvent");
OAButtonBean XX_Button1 =(OAButtonBean)CustomCustSearchTable.findChildRecursive("XX_Button1");
XX_Button1.setAttributeValue(UIConstants.PRIMARY_CLIENT_ACTION_ATTR, localaction);
public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
super.processFormRequest(paramOAPageContext, paramOAWebBean);
String flaction = paramOAPageContext.getParameter("event");
if (flaction.equalsIgnoreCase("tempEvent"))
paramOAPageContext.writeDiagnostics(this, "XX_CustomCustSearchCO :Inside the event ", 1);
throw new OAException("The file path is invalid. Please check the value of the profile option",OAException.ERROR);
Regards,
RamYou are throwing the message and then catching it yourself, and then printing the stack, which is what java is doing.
So, you need to
remove
}catch(Exception e)
e.printStackTrace();
and you would need to place the try block appropriately, since some methods you have used want exceptions caught.
Tapash -
Wrapping form fields in advance table bean
i have an advance table bean with a lot of columns.there are certain columns which require large space.now the data can be filled to a huge extenet but if the data exceeds the displayed fields those fields cannot be seem once disabled.so,i need to enable wrapping for those fields so that everything is visible within the displayed width.but i couldn locate any wrapping option in the fields.
can any1 help me with thatSet the "No Wrap" property on the column containers to "False".
-
How to find the sum of an advanced table column?
Hi All,
Good Morning..
I have requirement where i need to calculate the sum of a column in an advanced table.and i need to put that value into some other field.
i am doing customization so i can't touch the Standard page properties.so i need to achieve it through Pro-grammatically..
my column name is unit price in the advanced table region.so i need the code to calculate the sum of the unit price.
Thanks in advance
BharatHi Bharat,
No need for Programatic way as Advanced Table already provides this facility.
The following steps describe how to enable Totaling for a column in the footer of an advanced table.
Step 1: In the Structure pane of OA Extension, select the column container for which you want to enable Totaling Any column except for the first column can be totaled. Set the Total Value property for this column container to True.
Step 2: In the Structure pane, select your advancedTable region and choose New > footer from the context menu. OA Extension creates an advancedTables Components folder containing a footer named child, that contains a tablefooter container (labeled tableFooter1).
Step 3: Select the tableFooter container and choose New > total from the context menu. OA Extension creates a tableFooter Components folder containing a total named child, that contains a new totalRow item as shown in the figure below.
Please let me know if you are still unable to get the Total Column
HTH,
Regards,
Syed. -
Want to change the default sort order of a Advanced table
Hi all ,
Hope all of you doing good.
I am trying to change the deafult sort order of a " View Applicants" advanced table on Irecruitment selfservice page , using personalization feature but its not sorting as expected.
The default sort order is asc by the name of the applicants. I wanted to override it by " Date Applied " desc using personalizing the advanced table.
But its not sorting by Date applied and still shows the sort by applicant name.
Any inputs will be greatly helpful
I am using the Oracle Apps 11.5.10 version.Hey guys m I got the answer for the below question.
Oracle have few Restriction and limitation on such Advanced table in sorting the data,
Few of them are as mentioned below ...
1. Sorting is not allowed for tables that allow inserts.
2. Sorting is not supported for tables containing updateable columns
3. Sorting is disabled when the Select column is checked for a row in a table or when Hide/Show is present in a table.
Because of the above limitations , we cannot sort or override the existing alphabetical name sort order to Date applied sort order on the View Applicant advanced table.
You can observe that , View Applicant page is having an option called "Update Status" which allow us to update applicant’s status or rating in the Advanced table.
On such updatable advanced tables, oracle does not allow us to override the sort order on any of the table columns.
Keeping it in a nutshell , I can say it's does not allow us to change the sort order of the view applicant advanced table ( which is having updateable columns ) to sort them in Date applied instead of Name( which is default ). -
Dynamically changing the Advance table column Header.
Dear All,
I want to change dynamically the Advance table column header.
I tried the below code and its working process request,not in process form request when button pressing.
Please suggest me.
OAAdvancedTableBean tableBean =
(OAAdvancedTableBean)webBean.findIndexedChildRecursive("advanceTableRN");
if (tableBean != null) {
System.out.println("tableBean");
OAColumnBean columnBean =
(OAColumnBean)tableBean.findIndexedChildRecursive("column3");
if (columnBean != null) {
System.out.println("columnBean");
OASortableHeaderBean colHeaderBean =
(OASortableHeaderBean)columnBean.getColumnHeader();
if (colHeaderBean != null) {
System.out.println("colHeaderBean");
colHeaderBean.setText("Segment3");You can try 2 options:
1. Try to call pageContext.forwardImmediatlytoCurrentPage();
2. Try yo set a vo attribute to the columnbean text property and set the vo attribute programmatically. (I have not tried this but I think it should work)
Cheers
AJ -
Advanced Table in Table - Error on Deleting the master record
Dear All,
I have a custom EmployeesVO and a ReimbursementsVO.
EmployeesVO is the master and ReimbursementsVO is the child.
They are based on EO which are linked by entity association. The VOs are linked by a viewlink (which is inturn based on the Association)
I have created an advanced table-in-table, where EmployeesVO is the master, and in the detail, I have the reimbursementsVO.
Both inner and outer table have a "Select and Delete Row" functionality. This works fine on the Inner table (Reimbursements).
However on the outer table for Employees, I have two options
1. In the Employees EO , select the "Implement Cascade Delete"
2. In the Employees VORowImpl, create a "Remove" method, iterate through the child rows using view link accessor, delete the child rows first and then call super.remove method. to delete the employee row itself.
In both cases, I get an error saying "error forming SQl statement...Invalid column type" or "Unable to create java.lang.Object". On debugging, I see that it has no issues deleting the child rows and that goes through fine, but when the master row is deleted - :(
Will be grateful if anyone can provide any advise on this.
Thanks !From MetaLink it looks like bug# 2433386
Not yet resolved. -
Count Distinct in Pivot table totals? OBIEE 11.1.1.5
Hi,
I have got a column that counts distinct customers per each month of the year and at the end of the analysis, it should show distinct customer count of the year as TOTAL. How can it be achieved? Is it possible to customize pivot table totals?
Example:
Month Customers
Jan 10
Feb 20 (10 new customers)
Mar 15 (5 new customers)
TOTAL: 25 (distinct values --> 10+10+5)Thanks in advance.Hi MK,
I tried it already and it does not work. It takes the distinct value of each month, which is month's count distinct and then it sums. So the total is 45 (10+20+15) not 25.
Thanks for you reply.
Maybe you are looking for
-
I can not manage music on an additional device. Thephone has music from my library on it. But when I connect the phone to my computer it shows there is nothing on the phone. When I gry to add a song, I get an error message that says can not be cop
-
Disk space rapidly decreasing.
Okay, sounds like there is some great ideas here, many of which I should have listened to before I acted. That being said, I want to know what my options are, if someone could help. I have the original MacBook Pro (first w/Intel processors) with a ha
-
dfdsfds
-
Coding to calculate net purchase order value against the contract?.
Hi , Please help. Can any one send me the coding to calculate net purchase order value against the contract?. Thanks
-
Reset of current row after commit in ADF-UIX
Dear experts, I have developed an application with Oracle JDeveloper 10g and ADF-UIX using BC4J. The problem is that wherenever a commit is performed the current row for the master table is reset which causes confusion for the end user. Do you know h