using for each group to combine the 2 data lines

My xml file has the following in it:

-< AC_DEDUCTIONS >
voluntary deductions < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 3475 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 498500 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 5750 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 26.22 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 26.22 < / YTD_AMOUNT >
< REPORTING_NAME > Opt life Emp < / REPORTING_NAME >
< ATTRIBUTE_NAME / >
< RATE_MUL / >
< DISPLAY_NAME > Opt life Emp < / DISPLAY_NAME >
< / AC_DEDUCTIONS >
-< AC_DEDUCTIONS >
voluntary deductions < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 1181 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 3511 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 5750 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 474.95 < / YTD_AMOUNT >
< REPORTING_NAME > Opt life Emp < / REPORTING_NAME >
< ATTRIBUTE_NAME / >
< RATE_MUL / >
< DISPLAY_NAME > Opt life Emp < / DISPLAY_NAME >
< / AC_DEDUCTIONS >

Rather than having my exit needle 2 rows of data:

current name amount CDA amount

Opt life Emp 26.22 26.22
Opt life Emp 0 474.95


I'd like to see 1 row with the total amount:

Opt life Emp 26.22 501.17


How can I use for each group - in my rtf to achieve? Any help is greatly appreciated.

Thank you.

Susie

I know what model you have copied :), I was there, when they created that

It's yours:

1 text form field-<><=19]?>
2 text form field-
3 text form field-
4 text form field-
5 text form field-

change to:

Text Form Field 1 -  
Text Form Field 2 - 
Text Form Field 3 - 
Text Form Field 4 -  
Text Form Field 5 - 

Tags: Business Intelligence

Similar Questions

  • Table row with loop for each group to set the variable.

    HI: There is probably a simple answer for this, but I don't the have not found...

    I have a single row table to move through a group to set a variable containing a sum running. I'm not display the amount in the table but when I saw the report, I see that the table is expanding (add lines) for each loop.

    The only line table has 3 columns.

    1st column
    <? for-each: AC_GROUP? >

    2nd column
    <? xdoxslt:set_variable ($_XDOCTX, 'xAmtVar', xdoxslt:get_variable($_XDOCTX,'xAmtVar') + CURRENT_AMOUNT)? >

    3rd column
    <? end foreach? >

    Can I use <? for each group? > or something else. My requirement is to set the value of the variable with the total running, but because the loop is adding lines for each value he travels (though not displayed), it's also affecting other areas of the presentation of the page.

    Hope it makes sense. Thanks in advance.

    You can do it many ways.

    No need to loop
    You can create a variable and specify the amount of the sum directly to that.

    
    

    or

    loop through, then add as you do.

    
    

    give any space or enter characters in a word between them, just put it in a single form field will be

    But as I said, I'd definitely go with the first option.

  • To view lines for each group

    Hi all

    I have a static label on every row, and I use for each group of extraction of values for each row.
    Sometimes, while I have no value in XML for a specific line. When this happens the line of this static label will not appear in the preview.
    Is it possible to display this line of static label even its value were not observed in the XML file.

    Thanks in advance.

    I received several emails, don't know, the one who first ;)

    Just replied with model with fix: name of the Group coded hard and zero values, even if this isn't on the xml data

  • Export the configuration information for each group

    How to export the configuration information for each group? (I want to see the information that this group has read or write access to the cube XXXXX)

    By LCM, I was able to export information on groups and users. But no information about its commissioning. can any body tell me how can I get the configuration of shared services information

    We have a utility to do this, or can we get this information using LCM?

    Any information about him will be useful

    Thank you

    The commissioning is under Application groups > Foundation > Shared Services > native Directory > assigned roles > then choose the product / app

    There is a utility command line available if you want to automate the process of execution of export - Oracle Hyperion Enterprise Performance Management System Lifecycle Management Guide, you create the definition of migration file but which can be done by running an export.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Error using nested for each group - in Oracle XSLT

    Hello everyone. Thank you for taking the time to post this thread.
    I created a XSLT transformation that runs on oxygen, but does not work in Oracle.

    Given this XML-

    < country >
    < info enum = "CTRY" name = 'United States' States-total = "50" / >
    < enum = 'ST' index info = '0' sname = "New York" population = "8 244 910" / >
    < enum = 'ST' index info = '0' sname = "Chicago" population = "2 707 120" / >
    < info enum = "CTRY" name = 'Germany' States-total = "16" / >
    < enum = 'ST' index info = '1' sname = population "Berlin" = "3 469 910" / >
    < enum = 'ST' index info = '1' sname = population "Brandenburg" = "2 500 000" / >
    < / country >

    Work of XSLT in the oxygen-

    < xsl: template match = "/" >
    < country >
    [< xsl: for each group-select = "" countries / * ' group-starting-with="info[@enum='CTRY"] ">"
    < CountryInfo >
    < xsl: Call-template name = "ctry" / >
    < / CountryInfo >
    < / xsl: for each group->
    < / country >
    < / xsl: template >

    < xsl: template name = "ctry" >
    < name > country: < xsl: value-of select="@name"/ > < / name >
    districts of <>< xsl: value-of select="@total-states"/ > < / districts >
    < xsl: for each group-select = "current - group ()" group-by="@index" >
    < xsl: Call-template name = "States" / >
    < / xsl: for each group->
    < / xsl: template >

    < xsl: template name = "States" >
    < name of xsl: variable = "index" select="@index"/ >
    States <>
    < xsl: for each select = "current - group ()" >
    < name >
    < xsl: value-of select="@sname"/ >
    < / name >
    < / xsl: foreach >
    < / states >
    < / xsl: template >

    I get the desired oxygen - result

    < country >
    < CountryInfo >
    < name > country: United States of America < / name >
    < > 50 districts < / districts >
    States <>
    < name > New York < / name >
    < name > Chicago < / name >
    < / states >
    < / CountryInfo >
    < CountryInfo >
    < name > country: Germany < / name >
    < > 16 districts < / districts >
    States <>
    < name > Berlin < / name >
    Brandenburg < name > < / name >
    < / states >
    < / CountryInfo >
    < / country >

    In a transformation of Oracle, I get an error "cannot perform XPath expression. I have narrowed down the cause of the error. The error is caused by
    the nested for each group - using 'current - group ().'

    < xsl: for each group-select = "current - group ()" group-by="@index" >
    < xsl: Call-template name = "States" / >
    < / xsl: for each group->

    Oracle does not throw an error if I use ' Country/info' instead of 'current - group ()', but this does not produce the desired result
    because he needs to be grouped by "@index."

    Does anyone know why my XSLT does not work in a transformation from Oracle?

    oracleistheway wrote:
    Does anyone know why my XSLT does not work in a transformation from Oracle?

    What do you mean by "transform Oracle?

    If you are referring to the integrated database XSLT processor available through XMLTransform or DBMS_XSLProcessor API, it does not support XSLT 2.0, 1.0 only.

    If you use the XDK Java (oracle.xml.parser.v2) Please give the exact version.

  • Adding namespace in the tag for each group

    I want to use the substring method in tag for each group.
    Like this: <? for-each - group: current - group (); xdofx:substr(xmlTag,3)? >, but it does not work. How to make it work?
    Thank you.

    Just use the native method of substring XSL - http://www.zvon.org/xxl/XSLTreference/Output/function_substring.html

    BEEP is sensitive when you mix native and OPE methods

    Tim

  • How to assign the ID of group for each group in the SQL query.

    Hi all

    I want to assign the ID of group for each group (group ID of series). I tried with the row_number function but did not work for my requiredment. Here is my sample data and my requirement.

    Col1
    A
    A
    A
    A
    A
    B
    C
    D
    D
    D
    D
    E
    E
    E
    F
    G
    G
    G

    I want to get number of each column with ID group assign to it value. Here is my example output

    Col1 County Group ID
    A 5 1
    A 5 1
    A 5 1
    A 5 1
    A 5 1
    B 1 2
    C 1 3
    D 4 4
    D 4 4
    D 4 4
    D 4 4
    E 3 5
    E 3 5
    E 3 5
    F 1 6
    G 3 7
    G 3 7
    G 3 7

    Select col1, count (1) NTC (col1 partition).

    ROW_NUMBER() over (partition by col1 by col1 order) tbl_test grp_id.

    Please help me solve this problem.

    SELECT

    COL1,

    COUNT (*) ON MYCOUNT (COL1 PARTITION).

    DENSE_RANK () OVER (ORDER BY COL1) GROUPID

    Of

    T1;

  • How to get all the records for each group - double

    Hi all

    I have developed customized reports, I have a three for each group, the first group is for PO number and the second is for line number Po and the third is for activity ID.


    Today the third group is based on the activity ID.

    Some time the activity id is unique and other data are different. If at this time its settlement only one record.

    For example

    Date of activity Id

    1 25 - Jan

    1 26 - Jan



    Its single record display.

    Can someone tell me how to avoid this separate for each group.

    Thanks and greetings
    Srikkanth.M

    As another user said, delete syntax regroup.
    Why do you bring here?

  • How to give rownumber for each group

    Hai All

    I use the function group to separate and in this group, I need to give rownumber to each departure of members of Group 1 and when a group is on the needs in number to start new 1


    For example

    There are 3 Department and it is separated by the function of group by Department and here I need to give the line number. And the line number must be separated for each group

    Thanks and greetings

    Srikkanth.M

    How about using...

    ROW_NUMBER() OVER (partition by GROUP order by X)
    

    If this is not the case, how about post you some sample data and the output you want from these data.

    In addition, your version of Oracle

    select * from v$version;
    
  • Top N for each grouping?

    Is there a way to show results for each group of OBIEE in N?

    I want to display the amounts of 10 albums for each region at my table. If you are using a Top N filter, it returns the results of set Top N I tried to create a pivot table dynamic and using of 'Région' as the delimiter section, but he got the same results. It is only 10 total quantities, and I want to see 10 amounts for each region.

    Kevin

    Yep,

    Use the statement:
    TOPN ('F1 income'. "" Recipes 1-01 (after all) ", 10"market D2. ("" M01 Market ")

    concerning
    John
    http://obiee101.blogspot.com/

  • Added option inlines for each group

    Hello

    < A1 >

    < B1 >

    ABC < C1 > < / C1 >

    def < C2 > < / C2 >

    < C3 > 123 < / C3 >

    < / B1 >

    < B1 >

    ABC < C1 > < / C1 >

    def < C2 > < / C2 >

    < C3 > 456 < / C3 >

    < / B1 >

    < / A1 >

    From the example I show o/p as above: 123 456 and here I have to add a condition to check also the empty spaces. So I tried two solutions below.

    = PlanA:

    <? for-each@inlines:C3? > <? ? >

    <? xdoxslt:IfElse ((position () = last (), ",",")? >

    <? end foreach? >

    (1) with above approach I'm not able to check the empty spaces!  output can be shown as: 123 456

    OR

    = Plan B:

    <? for-each-group: B1; / C3 >

    <? C3? >

    <? If @:(C3='') rank? > <? xdoxslt:IfElse ((position () = last (), ",",")? >

    <? end if? >

    <? end for each group -? >

    With above approach am able to check the empty spaces, but the output is coming up as below.

    123

    ,

    456

    (2) then how can I show this in a single line. ?

    Thank you

    Rajesh

    Can be?

  • For each / group of... problem... Update

    Hey Rainer, Pradeep... in addition to our previous thread of for - each group by number... I have another request...

    Here is update XML

    < root >
    < target-cult index = "3" >
    < fm-objective index removable = "1" = "true" >
    value of < 01 > fm-obj-name < / fm-obj-name >
    < fm-obj-prop-key > aa < / fm-obj-prop-key >
    < value-obj-prop-fm > 44 < / fm-obj-prop-value >
    BB < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 2 < / fm-obj-prop-value >
    weight < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 20.0 < / fm-obj-prop-value >
    < / fm-goal >
    < fm-objective index '2' = removable = "true" >
    value of < 02 > fm-obj-name < / fm-obj-name >
    WW < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 11 < / fm-obj-prop-value >
    RR < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 24 < / fm-obj-prop-value >
    weight < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 23.0 < / fm-obj-prop-value >
    < / fm-goal >
    < / goal-cult >
    < target-cult index = "9" >
    < fm-objective index = "1" >
    value of < 22 > fm-obj-name < / fm-obj-name >
    TT < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 111 < / fm-obj-prop-value >
    qw < fm-obj-prop-key > < / fm-obj-prop-key >
    < fm-obj-prop-value > 24q < / fm-obj-prop-value >
    weight < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 25.0 < / fm-obj-prop-value >
    < / fm-goal >
    < fm-objective index = "2" >
    value of < 22 > fm-obj-name < / fm-obj-name >
    wwew < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 1122 < / fm-obj-prop-value >
    rrre < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 2443 < / fm-obj-prop-value >
    weight < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 123,0 < / fm-obj-prop-value >
    < / fm-goal >
    < fm-objective index = "3" >
    value of < 23 > fm-obj-name < / fm-obj-name >
    wwqq < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 121 < / fm-obj-prop-value >
    tyrr < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 2334 < / fm-obj-prop-value >
    weight < fm-obj-prop-key > < / fm-obj-prop-key >
    < value-obj-prop-fm > 623.0 < / fm-obj-prop-value >
    < / fm-goal >
    < / goal-cult >
    < / root >

    How do I recover weight < fm-obj-prop-key > value < fm-obj-prop > - immediate < / fm-obj-prop-key >.
    I mean, the result should be like this...

    01-20, 0 value
    02-23, 0 value

    22-25, 0 value
    22-123, 0 value
    value 23-623, 0

    I added foreach for < name-obj-fm >... we discussed earlier... now to it add to WEIGHT...

    Kind regards
    Amit desrousseaux
    Persistent systems Lts.

    Well the test becomes hard with each correct answer... :)


    Table

    -- -----< position()="last()" should="" be="" in="" sqr="">

    Edited by: PradeepS on November 11, 2008 16:28

  • Can I use the same disc hard ext I used for El Capitan Yosemite without losing my data?

    Can I use the same disc hard ext I used for El Capitan Yosemite without losing my data?

    Yes. You should not lose any data, but always have a backup. In this case, you have your internal drive as a backup.

  • I have a site published under a recent URL, I used for a personal site and the site displayed the URl needs to be removed, but I can't take it down because I do not know the account info that it is under please help! Thank you!

    I have a site published under a recent URL, I used for a personal site and the site displayed the URl needs to be removed, but I can't take it down because I do not know the account info that it is under please help! Thank you!

    If it is hosted with Adobe Business Catalyst Adobe Support can help you.

    If it is hosted elsewhere the only people who can help you with that is where it is hosted.

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    

Maybe you are looking for

  • HP Pavilion Sleekbook 15 with SSD

    Hi I have a Sleekbook and I tried to change the hard drive for an SSD in Windows 8. Is this possible? I noticed that the bios is enough locked so there is no AHCI setting. An SSD will work a good read / write speeds? or should I consider anything els

  • Random text sent to Apple ID lockout!

    I had a text sent to my iPhone + 45 92 29 88 08 say that my Apple ID account has been locked. go to www.apple.verify-id.eu - someone else had this?

  • High definition Audio Device Code 10 - device cannot start (tried all the typical solutions)

    Hey! Let me first, I use a laptop Aspire V3 - 772g. After the recent update of Windows 10, I had problems getting past the lock screen (took FOREVER to get to the point where I could enter my password) and it had been awhile, so I reformatted ('reset

  • Divine group Pte

    Divine group Pte a provider of Windows services

  • Cannot open Windows 7 Pro Media Player

    Original title: windows 7 pro MediaPlayer. Windows media player does not open... I tried the restore without success. Something is wrong with the path I think.