Sorting in each group

If i group by a column, i am not able to sort on any of the columns within that group. Does anyone know, why this is happening.
Thanks.
Navya.

Navya,
the "order by" statement in a query is only for sorting to lowest group in the datamodell. For sorting in the break groups use the property "break order" for the columns. If you want to have a sort-criteria in one of this group with more than one column, you can bring the columns in the datamodell-editor with your mouse in the correct order. The property is represented in the editor by the little blue arrows at the columns.
But pay attention. In the lowest group af a query, this property is irrelevant, for this group only the order by statement in the query is used.
regards
Rainer

Similar Messages

  • Custom sorting within "for-each-group:current-group"

    Hi, I need some help in doing a custom sort within a "for-each-group:current-group". My formatting is in a table format but I'm not sure how to post a table here so I'm just arranging the column details out as it would look in a table. I have a column on the left for the YEAR and a second column on the right for the DESCR. Under the DESCR column I've inserted a nested table with four columns: SUBJECT, CATALOG_NBR, DESCR250 and GRADE.
    COLUMN 1:
    <?for-each-group:row_table;./ YEAR?><?sort: YEAR;'ascending';data-type='text'?><?YEAR?>      
    COLUMN 2:
    <?for-each-group:current-group();./DESCR?><?DESCR?>
    NESTED TABLE (with 4 columns):
    +<?for-each:current-group()?><?SUBJECT?><?CATALOG_NBR?><?DESCR250?><?GRADE?><?end for-each?>+
    <?end for-each-group?> <?end for-each-group?>
    I'm able to sort by YEAR in the "for-each-group" on the left column. But I also want to do a custom sort on DESCR in the right column.
    I've seen this blog on custom sorting by Vetriselvan: http://winrichman.blogspot.com/2009/09/custom-dynamic-sort-in-bi-publisher.html and I tried inserting this sort below after <?for-each-group:current-group();./DESCR?> but I get an error message.
    <?sort:(number(DESCR='Status')*1)+(number(DESCR='First Semester')*2)+(number(DESCR='Second Semester')*3);'ascending';data-type='number'?>
    I've also seen this thread: Re: Sort within group and tried inserting <?for-each:DESCR?> before the sort (as below) - this time I can preview the results, but it is not sorting as required.
    <?for-each:DESCR?><?sort:(number(DESCR='Status')*1)+(number(DESCR='First Semester')*2)+(number(DESCR='Second Semester')*3);'ascending';data-type='number'?>
    Can anyone help me custom sort the DESCR column? I'm using Template Builder for Word version 5.6 build 45. Thanks in advance for any help!

    Hi Vetsrini,
    I tried adding <?sort: ./DESCR;'ascending';data-type='text'?> after <?for-each-group:current-group();./DESCR?> but I'm getting an error message.
    The DESCR values are below and I'm trying to sort them in the following order.
    STATUS
    SUMMER SEMESTER
    FIRST SEMESTER
    AUTUMN SEMESTER
    WINTER SEMESTER
    SECOND SEMESTER
    SPRING SEMESTER
    Because I need them in the above order, I can't use ascending or descending, and instead need to use a custom sort order. Do you know how I can go about creating a custom sort order?
    Thanks!

  • Not able to use @section and Sort within a group in RTF Template

    When i try to use sort with for-each-group@section in my template, the Output Post processor is throwing the following exception
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 31, Column 84>: XML-22047: (Error) Invalid instantiation of 'xsl:sort' in 'fo:flow' context.
    My tags in the RTF template are as below:
    <?for-each-group@section:G_PERSON_ID;./DEPT?><?sort:DEPT;'ascending';data-type='text'?>
    -- there are 2 more groups within this.
    <?end for-each-group?>
    I don't get the error if i remove @section from the above tag in my RTF template.
    OR
    IF i remove the sort tag and keep the @section , it still works.
    I need the "sort" so that i can sort the output by department number and I need the "section" so that i can acheieve context based header title for the page using the tag given below in the header area of the word RTF doc. The DEPT number should change as per the data shown in the report.
    DEPT <?DEPT?> CLASSIFICATION SENIORITY LISTING BY CLASS CODE & DATE
    I am stuck with either being able to use the Sort or the Header feature but not both.
    I guess that section is needed for the context based header title to work, because all the data shown in the current page should correspond to only one single DEPT value (to make the Header title consistent with the data). But i dont get why i am not able to sort. The exception from OPP simply beats me. Please help!!
    I am using the XML Pub Desktop 5.6.2 to develop my templates.
    Is there any way to acheive this? Can someone throw some light on this.
    Thanks in advance.

    Help About says I'm on 20.0.1
    Up until last week, I was able to use the tab key when typing emails and other multi-line text boxes.
    Suddenly the behavior of the tab key changed. This isn't the first time. It's been quite a while ago that the function of the tab key changed from indenting to moving around the page, then after some time it changed back to indenting.
    Can we get this fixed and leave it alone, please?
    I may give one of those add-ins a try, but my problem with add-ins is that they break when FF is patched or upgraded, then I'm left with out the solution they provide.
    Can we just fix Firefox, please?
    Thanks,
    Frank
    P.S. Another potential fix I came across suggested starting FF in safe mode to see if the problem goes away. It does not. It seems to be a change to FF that appeared after an update last week. On or just befor 24 Apr.

  • Using If condition in For EACH Group

    Hi all,
    I want to use if condition in for-each-group. Basically my requirement is that i want to use dynamic grouping. There will be two groups and the upper group and lower group will be selected on the basis of a report parameter.
    I hope i made it clear enough. So please help me in this. Any ideas will be highly appreciable.
    Thanks and regards
    Naveed

    You can add a If condition filed after the for-each field
    for EG : <?if:ADDRESS_TYPE = 'Employee Address'?>
    and then add anothet field which has <?end if?>
    Hope this helps.
    Thanks,

  • How to create a dynamic menu for each group of responsibility and  user

    Hi
    I am using Jdev 11.1.1.6 and new to ADF, my application require to populate menu which would be different for different groups of user, and the user in each group would have different submenu depends on their responsibilities assigned to each one of them.
    so on the top level would be menu_top_item1, menue_top_item2
    |-->submenu1_1 |-->submenu2_1
    |-->submenu1_2 |-->submenu2_2
    also the menu would need to be on_mouse_over to show the submenu items or collapsed back.
    any idea what would be the best approch? or is there any example around?
    thanks a lot

    You can use ADF Security to control access to menu options.
    More about ADF Security here:
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/AdfSecurity/AdfSecurity.html
    If you also use WebCenter you might use their menuing option:
    https://blogs.oracle.com/shay/entry/webcenter_portal_intro_for_adf

  • Getting the first row for each group

    Hi Everyone,
    I have a query which returns a number of rows, all of which are valid. What I need to do is to get the first row for each group and work with those records.
    For example ...
    client flight startairport destairport stops
    A fl123 LGW BKK 2
    A fl124 LHR BKK 5
    B fl432 LGW XYZ 7
    B fl432 MAN ABC 8
    .... etc.
    I would need to return one row for Client A and one row for Client B (etc.) but find that I can't use the MIN function because it would return the MIN value for each column (i.e. mix up the rows). I also can use the rownum=1 because this would only return one row rather than one row per group (i.e. per client).
    I have been investigating and most postings seem to say that it needs a second query to look up the first row for each grouping. This is a solution which would not really be practical because my query is already quite complex and incorporating duplicate subqueries would just make the whole thing much to cumbersome.
    So what I really new is a "MIN by group" or a "TOP by group" or a "ROWNUM=1 by group" function.
    Can anyone help me with this? I'm sure that there must be a command to handle this.
    Regards and any thanks,
    Alan Searle
    Cologne, Germany

    Something like this:
    select *
    from (
       select table1.*
       row_number() over (partition by col1, col2 order by col3, col4) rn
       from table1
    where rn = 1In the "partition by" clause you place what you normally would "group by".
    In the "order by" clause you define which will have row_number = 1.
    Edit:
    PS. The [url http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions004.htm#i81407]docs have more examples on using analytical functions ;-)
    Edited by: Kim Berg Hansen on Sep 16, 2011 10:46 AM

  • Top N for each grouping?

    Is there a way to show in OBIEE the Top N results for each group?
    I want to show the top 10 amounts for each region in my table. If using a Top N filter, it returns the Top N overall results. I tried creating a pivot table and using 'Region' as the section separator, but got the same results. It's only returning 10 amounts total, and I want to see 10 amounts for each region.
    Kevin

    Yep,
    Use the by statement:
    TOPN("F1 Revenue"."1-01 Revenue (Sum All)", 10 by "D2 Market"."M01 Market")
    regards
    John
    http://obiee101.blogspot.com/

  • [Forum FAQ] How do I export each group data to separated Excel files in Reporting Services?

    Introduction
    There is a scenario that a report grouped by one field for some reasons, then the users want to export each group data to separated Excel files. By default, we can directly export only one file at a time on report server. Is there a way that we can split
    the report based on the group, then export each report to Excel file?
    Solution
    To achieve this requirement, we can add a parameter with the group values to filter the report based on the group, then create a data-driven subscription for the report which get File name and parameter from the group values.
    In the report, create a parameter named Name which use the Name field as Available Values (supposing the group grouped on Name field).
    Add a filter as below in the corresponding tablix:
    Expression: [Name]
    Operator: =
    Value: [@Name]
    Deploy the report. Then create a data-driven subscription with Windows File Share delivery extension for the report in Report Manager.
    During the data-driven subscription, in the step 3, specify a query that returns the Name field with the values as the group in the report.
    In the step 4 (Specify delivery extension settings for Report Server FileShare), below “File name”option, select “Get the value from the database”, then select Name field.
    Below ‘Render Format’ option, select Excel as the static value.
    In the step 5, we can configure parameter Name “Get the value from the database”, then select Name field. 
    Then specify the subscription execute only one time.
    References:
    Create a Data-Driven Subscription
    Windows File Share Delivery in Reporting Services
    Applies to
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • ?for-each-group? dosen't work with page break - rtf template???

    Hello all,
    When I give a page break inside the for-each-group the group doesn't iterate any code after the page break. I can't give <?split-by-pagebreak?> in this case because I want that loop to be iterated for every department, and should show the report in one column(ms word column), and the department description in two columns.....as this has to happen for every department I can't write separate code........everything should go into one file......
    Final file should look like:
    <for every department>
    <department_report-a table>--one column(ms word column)
    <department_description-a huge text>--two columns(ms word columns)
    <next department>
    how can I achieve this - please help, its urgent.
    Thanks for your time.
    DK

    bipuser thanks for your response
    i will have table data also so i cannot keep in the same line.
    its strange for the last 2-3 days below syntax gave me space at the beginning of each group now it is working i didnt do any change
    <?for-each:G_1?>
    ABCDEFDG
    <?split-by-page-break:?><?end for-each?>

  • How to compare the value node of a for-each-group with other for-each-group

    Hello!
    I have a report in Oracle BI Publisher (10.1.3.2) with several data set. My XML schema is something like
    <DATA>
    <PARAMETERS>
    <MY_PARAMETERS>
    <A_ID>12345</A_ID>
    <DESCRIPTION>ABC</DESCRIPTION>
    <VALUE>111111</VALUE>
    </MY_PARAMETERS>
    <MY_PARAMETERS>
    <A_ID>12345</A_ID>
    <DESCRIPTION>DEF</DESCRIPTION>
    <VALUE>222222</VALUE>
    </MY_PARAMETERS>
    <MY_PARAMETERS>
    <A_ID>67890</A_ID>
    <DESCRIPTION>ABC</DESCRIPTION>
    <VALUE>333333</VALUE>
    </MY_PARAMETERS>
    </PARAMETERS>
    <NAMES>
    <MY_NAMES>
    <A_ID>12345</A_ID>
    <NAME>ASDF</NAME>
    </MY_NAMES>
    <MY_NAMES>
    <A_ID>67890</A_ID>
    <NAME>EFGH</NAME>
    </MY_NAMES>
    </NAMES>
    <VALUES>
    <MY_VALUES>
    <A_ID>12345<A_ID>
    <VALUE>10987</VALUE>
    <DESCRIPTION>ASDFG</DESCRIPTION>
    </MY_VALUES>
    <MY_VALUES>
    <A_ID>12345<A_ID>
    <VALUE>26385</VALUE>
    <DESCRIPTION>EFGHI</DESCRIPTION>
    </MY_VALUES>
    <MY_VALUES>
    <A_ID>67890<A_ID>
    <VALUE>24355</VALUE>
    <DESCRIPTION>ASDFG</DESCRIPTION>
    </MY_VALUES>
    </VALUES>
    </DATA>
    I'm trying to build a rtf template in Word using this XML schema. The "A_ID" nodes in each group in my data have the same value. I want for each "A_ID" take the respective values in /DATA/VALUES/MY_VALUES.
    <?for-each-group:MY_PARAMETERS;./A_ID?>
    <?for-each:current-group()?>
    <?choose:?><?when: DESCRIPTION='ABC'?>
    <?VALUE?>
    <?end when?><?end choose?>
    <?end for-each?>
    <?for-each:current-group()?>
    <?choose:?><?when: DESCRIPTION='DEF'?>
    <?VALUE?>
    <?end when?><?end choose?>
    <?end for-each?>
    <?/DATA/NAMES/MY_NAMES/VALUE?>
    <?for-each-group:/DATA/VALUES/MY_VALUES;./A_ID?>
    <?for-each:current-group()?>
    <?choose:?><?when: DESCRIPTION='ASDFG'?>
    <?VALUE?> <---------------- I obtain for this node the '24355' and '10987' values
    <?end when?><?end choose?>
    I want to know how to obtain only '24355' value, this is, the value for A_ID (/DATA/VALUES/MY_VALUES) = A_ID (/DATA/PARAMETERS/MY_PARAMETERS).
    Can someone help me?

    CREATE OR REPLACE TRIGGER "TEST_TRG"
       BEFORE UPDATE OF "STATUS"
       ON "TABLE1"
       FOR EACH ROW
    BEGIN
       IF (:NEW.status = 'HOLD')
       THEN
          INSERT INTO table2
                      (status
               VALUES (:NEW.status
       END IF;
    END;You should learn how to write PL/SQL code.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Information in Template Header with value from 3 for-each groups

    Hi,
    i have an datamodel with 3 nested groups and in my rtf-template i'm using 3 for each-loops to give the data out.
    It works fine, i can show the data on every level.
    But now our customers wants in the Header of each page information with values from each group.
    Like  Land-District-City.
    My first Test was with the @section-condition to get the right data in the Header.
    But it only works fine for the first group and not further....
    Anybody an idea? May be more then one @section?
    Regards Christian

    Hi Mike,
    I found some two mistakes that should solve your problems:
    1. typo: use "raw_value" with underscore, then the "category" works.
    2. The array support of the Generic Panel is limited to semicolon-separated term lists in a text field,
    where each term represent an array item.
    For example the "supplemental categories" property should look like:
    <xmp_property
         name="SupplementalCategories" category="external"
         label="$$$/stewart/Class=Classification:" type="bag" element_type="text"
         xmp_path="SupplementalCategories" ui:multiLine="true" ui:mru="true" description="..."
    />
    Hope this helps,
    -- Stefan

  • SQL Query to find missed nunmber from each group

    Hi,
    I have a set of records called "Level" and its values are A, B, C, D.
    From the below list, I want to identify the missed level for each group.
    ID          Level          Type
    1             A               Floor
    1             B                Floor
    2             A               Wind           
    2             C                Wind
    I need result like: [Missed level records]
    ID          Level          Type
    1               C             NULL     1- doesnt has C and D
    1               D             NULL
    2               B             NULL      2- doesnt has A and C
    2               D             NULL
    Pls suggest.
    Regards,
    -Sugumar Pannerselvam

    Hi,
    Got output with below code. may helpful for others.
    DECLARE @TblLevel TABLE(Level VARCHAR(10))
    INSERT INTO @TblLevel(Level) VALUES('A'),('B'),('C'),('D')
    DECLARE @TblRecords TABLE(ID INT, Level CHAR(1), Type VARCHAR(10))
    INSERT INTO @TblRecords(ID, Level, Type) VALUES(1,'A','Floor'),(1,'B','Floor'),(2,'A','Wind'),(2,'C','Wind')
    DECLARE @TblResult TABLE(ID INT, Level CHAR(1), Type VARCHAR(10))
    INSERT INTO @TblResult(ID, Level, Type)
    SELECT DISTINCT ID, TblLevel.Level, Type
    FROM @TblRecords TblRec
    CROSS JOIN @TblLevel TblLevel
    SELECT TblResult.* FROM @TblResult TblResult
    LEFT OUTER JOIN @TblRecords TblRec ON TblResult.ID = TblRec.ID AND TblResult.Level = TblRec.Level
    WHERE TblRec.Level IS NULL
    ORDER BY 1
    Looking for some best way to achieve this. As of now considered this as answer. :-)
    Regards,
    Sugumar Pannerselvam.

  • Each groups on separate page

    Hi
    i having one report (IDS 10g) with group above format and i want to print each groups in each page how can i achieve that.Printing each groups here departments on each page
    rgds
    jyothi

    Jyothi,
    You can set the group Frame's property Page Break After to Yes. Then each group will come in new page.
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • Last() not returning correct value within for-each-group

    I've found inconsistent results between JDeveloper and SOA Suite using the xslt 2.0 for-each-group construct.
    &lt;xsl:for-each-group select="Po/PoLine" group-by="itemId"&gt;
    &lt;xsl:if test="position()=1"&gt;
    &lt;GroupCount&gt;
    &lt;xsl:value-of select="last()"/&gt;
    &lt;/GroupCount&gt;
    &lt;/xsl:if&gt;
    &lt;/xsl:for-each-group&gt;
    What I expect is the function last() to give me the number of groups which is the unique number of itemIds.
    In JDeveloper 10.1.3.4, testing this construct gives me what I expect.
    At run-time (deployed to 10.1.3.3 SOA Suite), the value returned is the total number of records, not the number of groups.
    For example, given the following XML
    &lt;Po&gt;
    &lt;PoLine&gt;
    &lt;itemId&gt;<strong>001</strong>&lt;/itemId&gt;
    &lt;description&gt;Hammer&lt;/description&gt;
    &lt;quantity&gt;10&lt;/quantity&gt;
    &lt;/PoLine&gt;
    &lt;PoLine&gt;
    &lt;itemId&gt;<strong>001</strong>&lt;/itemId&gt;
    &lt;description&gt;Hammer&lt;/description&gt;
    &lt;quantity&gt;10&lt;/quantity&gt;
    &lt;/PoLine&gt;
    &lt;PoLine&gt;
    &lt;itemId&gt;<strong>002</strong>&lt;/itemId&gt;
    &lt;description&gt;Nail&lt;/description&gt;
    &lt;quantity&gt;10&lt;/quantity&gt;
    &lt;/PoLine&gt;
    &lt;/Po&gt;
    Grouping by <strong>itemId</strong>, last() should return 2 as there are two groups (001 and 002). JDeveloper does this.
    When deployed to SOA Suite, last() returns 3.
    Any ideas?

    Hi,
    if JDeveloper is doing the right thing then this issue should be reported to the SOA Suite forum or BPEL BPEL , what do you think ?
    Frank

  • Asset transfer report - for-each-group

    - <FAS430>
    - <LIST_G_SETUP>
    - <G_SETUP>
    <COMPANY_NAME>ABCD</COMPANY_NAME>
    <LOCATION_FLEX_STRUCTURE>101</LOCATION_FLEX_STRUCTURE>
    - <LIST_G_ASSET_TRANS>
    - <G_ASSET_TRANS>
    <ASSET_NUMBER>1321780</ASSET_NUMBER>
    <ASSET_DESCRIPTION>CABLES & CONNECTORS</ASSET_DESCRIPTION>
    <TAG_NUMBER>K-PM-B-HCB-3899</TAG_NUMBER>
    <TRANSNUM>3512926</TRANSNUM>
    - <LIST_G_TRANSFERS>
    - <G_TRANSFERS>
    <TO_FROM>0</TO_FROM>
    <GL_ACCOUNT>81216</GL_ACCOUNT>
    <COMP_CODE>118</COMP_CODE>
    <COST_CENTER>000</COST_CENTER>
    <LOCATION>KANNUR CHALODE NONE CHALODE NONE</LOCATION>
    <START_DATE>21-JUL-08</START_DATE>
    <UNITS>-200</UNITS>
    <ASSIGNED_TO />
    <CCID>6705</CCID>
    - <LIST_G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>0</DEPRN_RESERVE>
    <COST>-89983.26</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>-18.96</DEPRN_RESERVE>
    <COST>0</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    </LIST_G_SUB>
    <D_GL_ACCOUNT>81216</D_GL_ACCOUNT>
    <D_COMP_CODE>118</D_COMP_CODE>
    <D_COST_CENTER>000</D_COST_CENTER>
    <D_LOCATION>KANNUR.CHALODE.NONE.CHALODE.NONE</D_LOCATION>
    <D_AS_COST><89,983.26></D_AS_COST>
    <D_AS_DEPRN_RSV><18.96></D_AS_DEPRN_RSV>
    <AS_COST>-89983.26</AS_COST>
    <AS_RESERVE>-18.96</AS_RESERVE>
    </G_TRANSFERS>
    - <G_TRANSFERS>
    <TO_FROM>1</TO_FROM>
    <GL_ACCOUNT>81216</GL_ACCOUNT>
    <COMP_CODE>118</COMP_CODE>
    <COST_CENTER>000</COST_CENTER>
    <LOCATION>KANNUR CHALODE NONE CHALODE NONE</LOCATION>
    <START_DATE>21-JUL-08</START_DATE>
    <UNITS>199</UNITS>
    <ASSIGNED_TO />
    <CCID>6705</CCID>
    - <LIST_G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>18.87</DEPRN_RESERVE>
    <COST>0</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>0</DEPRN_RESERVE>
    <COST>89533.34</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    </LIST_G_SUB>
    <D_GL_ACCOUNT>81216</D_GL_ACCOUNT>
    <D_COMP_CODE>118</D_COMP_CODE>
    <D_COST_CENTER>000</D_COST_CENTER>
    <D_LOCATION>KANNUR.CHALODE.NONE.CHALODE.NONE</D_LOCATION>
    <D_AS_COST>89,533.34</D_AS_COST>
    <D_AS_DEPRN_RSV>18.87</D_AS_DEPRN_RSV>
    <AS_COST>89533.34</AS_COST>
    <AS_RESERVE>18.87</AS_RESERVE>
    </G_TRANSFERS>
    - <G_TRANSFERS>
    <TO_FROM>1</TO_FROM>
    <GL_ACCOUNT>81216</GL_ACCOUNT>
    <COMP_CODE>118</COMP_CODE>
    <COST_CENTER>000</COST_CENTER>
    <LOCATION>KANNUR CHALODE MW BB NONE CHALODE MW BB NONE</LOCATION>
    <START_DATE>21-JUL-08</START_DATE>
    <UNITS>1</UNITS>
    <ASSIGNED_TO />
    <CCID>6705</CCID>
    - <LIST_G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>.09</DEPRN_RESERVE>
    <COST>0</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>0</DEPRN_RESERVE>
    <COST>449.92</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    </LIST_G_SUB>
    <D_GL_ACCOUNT>81216</D_GL_ACCOUNT>
    <D_COMP_CODE>118</D_COMP_CODE>
    <D_COST_CENTER>000</D_COST_CENTER>
    <D_LOCATION>KANNUR.CHALODE MW BB.NONE.CHALODE MW BB.NONE</D_LOCATION>
    <D_AS_COST>449.92</D_AS_COST>
    <D_AS_DEPRN_RSV>0.09</D_AS_DEPRN_RSV>
    <AS_COST>449.92</AS_COST>
    <AS_RESERVE>.09</AS_RESERVE>
    </G_TRANSFERS>
    </LIST_G_TRANSFERS>
    <DPIS>30-JUN-08</DPIS>
    <ASSET_CATEGORY>BT</ASSET_CATEGORY>
    </G_ASSET_TRANS>
    We are trying to use XML Publisher to create an Asset transfer report. The element TO_FROM=0 denotes the From part of the asset transfer, the TO_FROM=1 denotes the To part of the asset transfer.. in this case we have a asset 200 units transfered 199 and 1 to two locations..in out rtf we are getting only the first line i.e.199..we have begin the group by <?for-each-group@section:G_ASSET_TRANS;ASSET_NUMBER?><?variable@incontext:G2;current-group()?>. In the units column we are giving <?$G2/LIST_G_TRANSFERS/G_TRANSFERS[./TO_FROM=1]/UNITS?>
    Edited by: user648077 on Nov 3, 2008 10:26 PM

    Hi Srini,
    Thanks for the help..we got it resolved at out end.. we added another group <?for-each-group:$G2/LIST_G_TRANSFERS/G_TRANSFERS[./TO_FROM=1];LIST_G_SUB?><?variable@incontext:G3;current-group()?> and then used it in the units column...<?$G3/UNITS?>
    Thanks
    Ramanathan

Maybe you are looking for