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
-
last time i bought apps by using visa gift card so iam trying to use the kind of visa gift card and the system is denying the method payment ....any idea how to solve this with my itune account ?
A few reasons I can think of, but instead of shooting in the dark, lets check with experts who can look at your account.
iTunes Store Support
http://www.apple.com/emea/support/itunes/contact.html -
How-to use captcha with ADF Faces 10g (10.1.3)
Hi All,
Could You Pls tell me how to use the captcha using 10g currently i am using the jdeveloper version of 10.1.3. I have found the link for using the *[captcha using 11g|http://www.oracle.com/technology/products/jdev/tips/fnimphius/captcha/captcha.html]* but some of the components here such as af:panelFormLayout and af:panelGroupLayout are not available in 10g.Are there are any alternative components Availablel for the 10g
regards
YeshwantHi John ,
Thankx for the reply ..
i am getting the following compilation error *(Error: Attribute: halign is not a valid attribute name)* while doing that .
i have written the code as follows...
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:panelForm id="pfl1">
<f:facet name="footer"/>
<af:objectImage source="/captchaservlet" id="i1"
inlineStyle="width:251px; height:76.0px;"/>
<af:commandButton text="can't read image" id="cb2"
partialSubmit="false"/>
<af:panelLabelAndMessage label="Are U a robot?" id="plam1">
<af:panelGroup id="pgl1" layout="horizontal" halign="left">
<af:inputText id="it1" value="#{requestScope.bestGuess}"/>
<af:commandButton text="try" id="cb1"
actionListener="#{HandleCaptchaBean.verifyAnswer}"
partialSubmit="true" immediate="false"/>
</af:panelGroup>
<af:message id="m1" messageType="info" for="it1"/>
</af:panelLabelAndMessage>
</af:panelForm>
</af:form>
</af:document>
</f:view>
Thankx
Regards
Yeshwant -
I'm trying to connect my 30" Cinema Display to my new Mac Pro along with a new Apple 23'" monitor. The new Apple monitor is fine. On the cinema monitor everything is blown up pretty large. Any ideas on how to solve this?
The 30" display needs a DUAL-LINK adapter.
<http://store.apple.com/us/product/MB571Z/A/mini-displayport-to-dual-link-dvi-ada pter> -
Hi, when ever I'm using 3G, on my Iphone4 sim stops working and network is lost, this started after I updated my phone with 6.0.1(10A523)version. Please help how to solve this problem. Thanks.
Photos/videos in the Camera Roll are not synced. Photos/videos in the Camera Roll are not touched with the iTunes sync process. Photos/videos in the Camera Roll can be imported by your computer which is not handled by iTunes. Most importing software includes an option to delete the photos/videos from the Camera Roll after the import process is complete. If is my understanding that some Windows import software supports importing photos from the Camera Roll, but not videos. Regardless, the import software should not delete the photos/videos from the Camera Roll unless you set the app to do so.
Photos/videos in the Camera Roll are included with your iPhone's backup. If you synced your iPhone with iTunes before the videos on the Camera Roll went missing and you haven't synced your iPhone with iTunes since they went missing, you can try restoring the iPhone with iTunes from the iPhone's backup. Don't sync the iPhone with iTunes again and decline the prompt to update the iPhone's backup after selecting Restore. -
I have a problem in my iphone 4 with wi-fi after update to IOS6 please can help my how can solve this problem?
Nope
One needs to press the home and sleep / wake keys together for the phone to reset
The other thing I could recommend
Let the battery run out and the phone completely "die"
It may take a day or two with it not being used
Then plug it in to charge and see if there is any change in behavior
If you cannot get this to work - you may need to bring it to an Apple store -
I have a 4th gen nano that is loaded with my music library via a prior addition of Windows. I now have Windows 7 and when I access I-tunes and plug in my Ipod I get a list of my music but cannot play it. Open to suggestions on how to solve this this problem.
You can not merge accounts.
Apps are tied to the Apple ID used to download them, you can not transfer them. -
Hi guys, I have a problem with imessage. My iphone 4S is factory unlocked and i have been using t-mobile carrier. i tried settings - messages - imessage on but there is this 'waiting for activation' thing. Does anyone know how to solve this?
Thanks!If you are in the UK:
Please upgrade your plan to Web n Walk plus. One of our users on T-Mobile UK had this to report back to us:
T-Mobile UK are in fact port blocking to ensure fair usage on their base Web and Walk Plan. I have upgraded to Web and Walk Plus and as a result the port blocks are lifted and I get a higher data allowance!
We were also recently contacted by T-Mobile UK, who stated the following:
Any smart phone (iphone, android etc) that is bought directly from T-Mobile should be automatically provisioned with Web n Walk plus, if customers have bought a handset sim free then they will need to call customer services and get this added. It is free of charge for most price plans (including new plans) but some older plans will generate a charge of £5pm for this. -
I Have a new mac book pro with OS X 10.9.5 and now my CS4 is Not Working anymore. It tells me to Contact Adobe Support regarding the licence - but that Seems impossible. Any idea how to solve this?
Use the web chat and just be patient.
Mylenium -
I have purchased graphics card Quadro K4200, but graphics card don't work with cuda in Adobe Premiere CS 6 version 6.0.5. Maybe they are bad drivers for graphics card? How to solve this problem?
Did you use the nVidia Hack http://forums.adobe.com/thread/629557
-
How to solve this problem "ORA-01466: Unable to read data -- Table definiti
Hi,
I had deleted the entry and i want back now and in between i done the following
alter table pv_head enable constraint FK_PV_HED__CRF_HEDwhen i try in the following one
SELECT * FROM PV_HEAD AS OF TIMESTAMP TO_DATE('28-FEB-2011 9:45:00','DD-MON-YYYY HH24:MI:SS')
WHERE PV_NO IN (703705,703704) the error i am receiving
ORA-01466: Unable to read data -- Table definition has changed how to solve this issue.
please guide me.
KanishYou can not perform DDL and then perform a flashback query to before the DDL.
One might wonder why you chose this particular time to perform an ALTER TABLE but you did. It is what it is. -
ought a new HD for my Mac mini, and now i can not do anything, i press com r and nothing appears, only gray screen and then appears a folder with a ? in it, can anyone help me how to solve this. Thank you
Thank you so much for your attention, it is allready working well.
-
Can't watch video on CNN with IPAD after installation IOS 6 any tip to solve how to solve this issue.
Thanks for your support in advanceI have a few TV type Apps that are doing the same think since the IOS6 update . I figure the problem is at there end and there will be an update from them soon.
-
I downloaded an app 5 years ago on my iPhone with another Apple ID that I cannot get into now because I forgot the ID. I'd like to download the same app on my iPad now. The developer says it should be no problem. Any ideas how to solve this?
It will be tied to your old account, so only that old account will be able to re-download it - but redownloading an account's past purchases may tie a computer or device to the account for 90 days : http://support.apple.com/kb/HT4627
Do you have a copy of it anywhere e.g. on your computer's iTunes, or on a backup of your library ? If you have it on a backup then you should be prompted to authorise the account (and I think that the id will show) if you try to add it to your computer's iTunes via File > Add To Library. -
Since I use Mac os x mountain lion it is no more possible to share files with my pc windows 7. Does somebody know how to solve this problem? I have been answered by an Apple technician that with the new Mountain Lion the problem was with Windows. I am not convinced.
I have renamed my pc and everything is ok with the file sharing SMB. Both my iMac and my pc can share files very easily.
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?
-
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
-
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.