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.

Tags: Business Intelligence

Similar Questions

  • 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 - 
    
  • Create a table in a loop 'for' (reset the number of loops)

    Hello

    I try to incorporate a signal of acceleration from an analog input CRIO to get speed and then further integrate to get the moving of a vibration system.

    I understand that to achieve integration, a table must be fed in. My problem is that I could not buffer the signal in a buffer block, as I couldn't find buffer blocks. so I decided to create my data table by using a loop "for". The nests of the loop 'for' inside a timed loop. The problem that I'm stuck on is how to reset the loop 'for' in order to fill the buffer with each iteration of the outer loop timed.

    I enclose the code if that helps. Note that I use labview in 2013.

    If anyone who has encountered a similar problem before can help me, I would be gratefull.

    Concerning

    Ali

    You can use a shift register initialized as inputs to your curls, to build your table of one. However, you realize, don't you, that the execution of your program as written loops as soon as the computer can spit out responses, then the output array may contain several points that took place before the entry has updated? Assuming that your thing cRIO (I've not worked with these) has integrated into its routine acquisition of calendar data, I suggest you put that inside the loop to get a data point by reading.

    And do you really want your graph to distance for update only every thousand points (points of acceleration million) speed?

    Cameron

  • 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

  • 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

  • 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?

  • 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;

  • 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.

  • 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/

  • 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/

  • 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;
    
  • 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

  • I click on the links in the email and get a box that says: "this file does not have a program associated with it for performing this action" and the link cannot be opened.

    Original title: problem e mail

    I click on the links in the email and get a box that says: "this file does not have a program associated with it for performing this action" and the link cannot be opened.

    Suggestions;

    1. make sure that your e-mail program is your default program.

    2. make sure that your Internet Explorer, or your main browser has all its faults.

    You can do both of the above by following these steps...

    Start button > right column, click default programs > click Set Your Default programs...

    1. click on your e-mail program > it doesn't say "this program has all its defaults"?
    If not, click on choose by default for this program > check all boxes below the list > click on save when finished.

    2 do the same as above for your Internet Explorer, or your main browser.

  • In BULK COLLECT with loop for?

    Let's say I have a table with a column number and a date column.

    I also have a query using a number and a date as a parameter. I want to run this query for each row in the table (using the column date and number of lines as parameters). If my thinking is looping through the rows and the query parameters for each line. It becomes a large number of queries select. Is it possible to use bulk collect here? All the examples I've seen where he uses a predefined cursor. Also, I don't know how to fix this problem without a cursor.

    Here's the query I want to do for each line:
    select * from reading_values rv, 
        (select * from 
           (select id, datereading
                  from readings,
                  where datereading < p_date and pointid = p_id
                  order by datereading desc)
           where rownum <= 1) t
         where rv.reading_id = t.id

    After reading your initial statement 3 times I simply add a third table to select it. I call this tableX colb and two columns cola (number) (date).

    select rv.*, r.*, row_number() over (partition by r.pointid  order by r.datereading desc) rn
    from reading_values rv
    join readings r on rv.reading_id = r.id
    join tableX x on x.colA = r.pointid and  r.datereading < x.colB
    order by  r.pointid, datereading desc
    

    You can restrict which to return only one row for each data point by using the column rn I already added.

    select * /* probably need sinlge column names here to avoid duplications */
    from (
       select rv.*, r.*, row_number() over (partition by r.pointid  order by r.datereading desc) rn
       from reading_values rv
       join readings r on rv.reading_id = r.id
       join tableX x on x.colA = r.pointid and  r.datereading < x.colB
    )
    where rn = 1
    order by pointid, datereading desc
    

    Published by: Sven w. on June 23, 2010 16:47

Maybe you are looking for

  • How to remove bookmarks in the toolbar separators?

    I put separators between my favorites that are on the bookmarks bar. I want to delete them. How?

  • Satellite C660-1F1 - Minecraft ha_err_pid error

    Toshiba Satellite C660 1F1 my son with Windows 7 Home Preium will not run Minecraft and creates a dump of notification and error with Java runtime environment. Yesterday, I wiped the laptop with the recovery disk and installed all the latest drivers

  • nc6320 for windows7 finger print driver

    On my nc6320 work, where Windows 7 is installed. It has stopped working the sensor for fingerprints after an update of the operating system; I tried to reinstall all the software for the driver, but I couldn't find a working combination. help please

  • Retouching fast without using the mouse to the menu all the time?

    Hi again, Sorry its another novice question (and, hopefully, a really simple). I want to select an audio piece, delete it and sort the audio for the snap right position so no remains empty. For the moment, I have this by positioning the mouse to the

  • Support for Vista 64-bit (x 64)

    Hello I tried to start my program (x 32) windows Vista x 64 and I have problems during the call to the NationalInstruments.Analysis.Enterprise.dll. The Dll is not loaded on Vista x 64. Measurement Studio does support Vista x 64 running as a 32 x prog