Aggregating table - how to solve this with ADF Faces

Hello.
I am trying to solve something that would typically be really simple. However, now i' using ADF faces which is new to me and i'm stuck.
I want to show a table of rows with aggregated numbers (department in example below) and then "open up" any row by clicking on it to display the numbers that make up the aggregate (the guys in the helpdesk department in the example below).
Something like this:
DEPARTMENT SALARIES
+Sales                  1.234.567
+Warehouse         3.425.553
-Helpdesk 655.000
Joe 155.000
Jill 300.001
Burt 199.999
+Personnel           546.225
+Management     9.646.383
And to make things more complicated, some of the aggregate rows in my real life example don't have any underlying rows. They just have the total. Can anyone give me hint about how to do this with an ADF Faces-control? I need to show management this can be solved quick and simple with ADF Faces, so i can convince them that it is the way we should be working in the future.
Edited by: GoodCoffee on Jun 2, 2009 4:15 AM. Trying to indent the three rows under "Helpdesk"

Hi,
if you use ADF BC as the business Service then you can create a transient attribute (one that does not ave a database column ) and compute the total. Using JDeveloper 11g, you can use a Groovy expression. The below example calculates the Overall Salary paid by an department. The transient attribute is defined on the Department Entity Object
XML View
<Attribute
    Name="SumSalary"
    ColumnName="SUMSALARY"
    SQLType="NUMERIC"
    Type="java.lang.Long"
    ColumnType="NUMBER"
    IsQueriable="false"
    IsPersistent="false">
    <TransientExpression><![CDATA[Employees1.sum("Salary")]]></TransientExpression>
  </Attribute>The Employees1.sum("Salary") string is the Groovy expression that you need to add for the attribute. You select the created transient attribute in the EO editor and press the pencil icon. Then you select "Expression" as the value type and add the string.
See: http://www.oracle.com/technology/products/jdev/11/how-tos/groovy/introduction_to_groovy.pdf
Frank

Similar Messages

Maybe you are looking for

  • Possible Hard Drive Failure on dv76175us

    This Laptop has to be one of the worst pieces of technology i have ever used. The issue started last friday when i started up my laptop. The system would freeze up completely when trying to read data. I restarted to run some tests and Hp diagnostics

  • Oracle 8.1.7 on Redhat 7.2, "dbassist " failed to start 4 of 5 times

    I followed Thomasfly's tips and other posts here(many thanks), the server was installed successfully. When I tried to create a database, usally I needed to restart "dbassist" 5 times to make it bring up the windows. Anyone has a clue of this issuse?

  • Parallel to SPI converter

    I'm looking for Parallel to SPI converter component in order to convert SPI from DAC and ADC after opto-couplers to 60x-bus of MPC875. If you know device that can fit my needs please advice me Tkanks Roman.

  • Syncing Finale06 aif files with logicPro7-temps differ

    I need to put together an arrangement for my orchestra. I have created a file in Finale 06 and saved it as a .aif file. When openning this file in Logic7 I am having difficulty syncing with the loops and files that I play along with. I saved the orig

  • Installed but unable to open

    I have installed iTunes 7.0, but when I click on the desktop shortcut, nothing happens - not even an error message? What could be the problem.