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!

Similar Messages

  • Date Sort inside For Each

    Hi I am trying to date sort inside for each but it is not working i am using below code
    <?for-each:G_3?><?sort:BEG_DT;'ascending';data-type='text'?>BEG_DT END_DT <?end for-each?>
    Can any one please let me know how to solve this?
    Thanks in Advance
    Have a nIce Day.

    depends on the format you have in the BEG_DT, if its not in YYYY-MM-DD, you may see some different order.
    All sorting works well if you use the date in canonical format.
    if you want to force to code., then do this.
    <?sort:concat(substring(BEG_DT,7,4),substring(BEG_DT,1,2),substring(BEG_DT,4,2),'0');'descending';data-type='number'?>

  • GROUP BY - Is there a way to have some sort of for-each statement?

    Hi there,
    This discussion is a branch from https://forums.oracle.com/thread/2614679
    I data mart I created for a chain of theatres. The fact table contain information about ticket sales, and I have a some dimensions including DimClient and DimTime.
    Here is an example of each table:
    FactTicketPurchase
    TICKETPURCHASEID
    CLIENTID
    PRODUCTIONID
    THEATREID
    TIMEID
    TROWID
    SUMTOTALAMOUNT
    60006
    2527
    66
    21
    942
    40
    7
    60007
    2527
    72
    21
    988
    36
    6
    60008
    2527
    74
    21
    1001
    40
    6
    60009
    2527
    76
    21
    1015
    37
    6
    60010
    2527
    79
    21
    1037
    39
    6
    DDL for FactTicketPurchase
    CREATE TABLE FactTicketPurchase(
    TicketPurchaseID NUMBER(10) PRIMARY KEY,
    ClientID NUMBER(5) CONSTRAINT fk_client REFERENCES DimClient,
    -- ProductionID NUMBER(5) CONSTRAINT fk_prod REFERENCES DimProduction,
    -- TheatreID NUMBER(5) CONSTRAINT fk_theatre REFERENCES DimTheatre,
    TimeID NUMBER(6) CONSTRAINT fk_time REFERENCES DimTime,
    -- TRowID NUMBER(5) CONSTRAINT fk_trow REFERENCES DimTRow,
    SumTotalAmount NUMBER(22) NOT NULL);
    DimClient
    CLIENTID
    CLIENT#
    NAME
    TOWN
    COUNTY
    2503
    1
    LEE M1
    West Bridgford
    Nottingham
    2504
    2
    HELEN W2
    Hyson Green
    Nottingham
    2505
    3
    LEE M3
    Lenton Abbey
    Nottingham
    2506
    4
    LORA W4
    Beeston
    Nottingham
    2507
    5
    SCOTT M5
    Radford
    Nottingham
    2508
    6
    MINA W6
    Hyson Green
    Nottingham
        ..cff.
    DDL for DimClient
    CREATE TABLE DimClient(
    ClientID NUMBER(5) PRIMARY KEY,
    Name VARCHAR2(30) NOT NULL);
    DimTime
    TIMEID
    FULLDATE
    YEAR
    SEASON
    MONTH
    MONTHDAY
    WEEK
    WEEKDAY
    817
    02-MAR-10
    2010
    Spring
    3
    2
    9
    3
    818
    03-MAR-10
    2010
    Spring
    3
    3
    9
    4
    819
    04-MAR-10
    2010
    Spring
    3
    4
    9
    5
    820
    05-MAR-10
    2010
    Spring
    3
    5
    9
    6
    821
    06-MAR-10
    2010
    Spring
    3
    6
    9
    7
    822
    07-MAR-10
    2010
    Spring
    3
    7
    9
    1
    DDL for DimTime
    CREATE TABLE DimTime(
    TimeID NUMBER(6) PRIMARY KEY,
    Year NUMBER(4) NOT NULL,
    Season VARCHAR2(20));
    I have the following analysis request to perform on this data mart:
    Top 5 clients by value of ticket sale for each season
    For this requirement I came up with the following query:
    SELECT * FROM
    (SELECT FacTIC.ClientID, DimCLI.Name, SUM(SumtotalAmount) SumTotalAmount, DimTIM.Season
    FROM FactTicketPurchase FacTIC, DimClient DimCLI, DimTime DimTIM
    WHERE FacTIC.ClientID = DimCLI.ClientID
    AND FacTIC.TimeID = DimTIM.TimeID
    AND Season = 'Spring'  AND Year = 2010
    GROUP BY Season, FacTIC.ClientID, DimCLI.Name
    ORDER BY Season ASC, SumTotalAmount DESC)
    WHERE rownum <=5;
    As you can see, in line 06 of the above query, I am explicitly specifying the season for the query to return.
    However what I would like to do is just one query that could autocratically go through the seasons and years available in the time dimension in a fashion similar to a FOR-EACH statement. This way, if we get more years added to the time dimension, we wouldn't have to amend the query.
    Is this possible?
    Regards,
    P.

    I think I fixed it!
    The trick was to look into the r_num value. As soon as I added it to my query I started to see how r_num was being calculated and I realised that I had to add Season to my partition, right after Year.
    SELECT Year, Season, TotalAmount, Name
    FROM (
       SELECT   DimCLI.Name
       ,        DimTIM.Year
       ,        DIMTIM.Season
       ,        SUM(FacTIC.SumTotalAmount) TotalAmount
       ,        RANK() OVER (PARTITION BY Year, Season
                             ORDER BY SUM(FacTIC.SumTotalAmount) DESC
                            ) AS r_num
       FROM     FactTicketPurchase FacTIC
       ,        DimClient DimCLI
      ,         DimTime DimTIM
       WHERE    FacTIC.ClientID = DimCLI.ClientID
       AND      FacTIC.TimeID = DimTIM.TimeID
       GROUP BY DimTIM.Year
       ,        DimTIM.Season
       ,        DimCLI.Name
    WHERE r_num <= 5 -- Need to amend this line on my data sample to show 2 rows.
    ORDER BY Year, Season, TotalAmount DESC;
    Looking at my data sample, I got the following:
    YEAR
    SEASON
    TOTALAMOUNT
    CLIENTID
    2010
    Autumn
    29
    2504
    2010
    Autumn
    26
    2503
    2010
    Spring
    25
    2503
    2010
    Spring
    14
    2506
    2010
    Summer
    26
    2506
    2010
    Summer
    26
    2504
    2010
    Winter
    28
    2503
    2010
    Winter
    26
    2506
    2011
    Autumn
    23
    2506
    2011
    Autumn
    14
    2503
    2011
    Spring
    25
    2505
    2011
    Spring
    13
    2503
    2011
    Summer
    21
    2505
    2011
    Summer
    14
    2503
    2011
    Winter
    19
    2505
    Now, looking at my real data, (considering the top 5 rows, not the top 2), I got:
    YEAR
    SEASON
    TOTALAMOUNT
    NAME
    2010
    Autumn
    141
    BUSH M225
    2010
    Autumn
    140
    DIANA W66
    2010
    Autumn
    136
    HANA W232
    2010
    Autumn
    120
    DIANA W220
    2010
    Autumn
    120
    WILSON M459
    2010
    Spring
    137
    DAVID M469
    2010
    Spring
    125
    ALEX M125
    2010
    Spring
    124
    PETER M269
    2010
    Spring
    115
    ZHOU M463
    2010
    Spring
    114
    TANIA W304
    2010
    Summer
    138
    JANE W404
    2010
    Summer
    105
    MINA W8
    2010
    Summer
    97
    DAVID M275
    2010
    Summer
    96
    CLINTON M483
    2010
    Summer
    93
    ANNA W288
    2011
    Spring
    12
    LUISE W20
    2011
    Spring
    7
    ANNA W432
    2011
    Spring
    7
    LEE M409
    2011
    Spring
    7
    CHRIS W274
    2011
    Spring
    7
    HELEN W136
    2011
    Spring
    7
    LILY W114
    2011
    Spring
    7
    LUISE W348
    2011
    Spring
    7
    LIU M107
    2011
    Spring
    7
    VICTORY W194
    2011
    Spring
    7
    DIANA W240
    2011
    Spring
    7
    HELEN W120
    2011
    Spring
    7
    LILY W296
    2011
    Spring
    7
    MATTHEW M389
    2011
    Spring
    7
    PACO M343
    2011
    Spring
    7
    YANG M411
    2011
    Spring
    7
    ERIC M101
    2011
    Spring
    7
    ALEX M181
    2011
    Spring
    7
    SMITH M289
    2011
    Spring
    7
    DIANA W360
    2011
    Spring
    7
    MATTHEW M63
    2011
    Spring
    7
    SALLY W170
    2011
    Spring
    7
    JENNY W258
    2011
    Spring
    7

  • 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

  • Horizontal line at the end of page within for each

    I try to do the following with PO :
    When a PO lines take several page to print I want to draw a line at the end of the page.
    <xsl:for-each select=".//LINES_ROW" xdofo:ctx="3" >
    <fo:table-row keep-with-next.within-page="always" keep-together = "always" xdofo:repeat="R">
    <fo:table-cell keep-together="always" xdofo:use-attribute-sets="lc_4" >
    <fo:block xdofo:use-attribute-sets="lb_2 lb_5">
    <fo:inline id="Text12{$_XDOFOPOS}"/>
    <fo:inline id="Text10{$_XDOFOPOS}"/>
    <fo:inline id="Text11{$_XDOFOPOS}"/>
    <fo:inline id="Text5{$_XDOFOPOS}"/>
    <fo:inline xdofo:use-attribute-sets="li_1">
    <xsl:value-of select=".//ITEM_DESCRIPTION" xdofo:field-name="ITEM_DESCRIPTION"/>
    </fo:inline>
    >
    </fo:table-row>
    </xsl:for-each>
    Now when i reach the end of a page I can't draw a line is there a way to draw an horizontal line ?
    Thanks for the quick answer

    Did you ever get an answer to this? I have the same question.

  • Custom List with for-each loop

    How do I get a list I am making to be able to be used with a for-each loop?

    As far as I know there is no "for-each" loop in Java, there is however a "for" loop. Is that what you're referring to?
    To use a for loop, let's say you have an array like the following, you could iterate through it like this:
    String[] str = new String[]{"a", "b", "c", "d", "e"};
    for (int i = 0; i < str.length; i++)
             System.out.println(str);
    hope this help you get started ;-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Custom dashboard view for multiple connected management groups

    Hi all,
    I've connected 2 scom management groups and I'm able to see the connected alerts in the alert views.
    Is it also possible to show those connected alerts in a dashboard view ? Because the Show Connected Alerts - button is not availble in dashboards views. Is it possible to filter on mgmt group in dashboard views ?
    Kind Regards,
    J. M.

    It is possible, but not without customization. Also, as Alexis mentioned, you could populate a custom field with management group information. It's overkill to use SCORCH just for this, as this could be achieved with much less effort using the command
    channel and a relatively simply powershell script...
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • JTable custom cell renderer for each cell

    Hi,
    Iam trying to implement a JTable in which each cell in a column can be of a different type. i.e it can be a tree node or plain text. Can someone point me to examples where this has been done.
    Iam trying to override getColumnClass but it only takes a column no as parameter. I would like to return a different type depending on the row for which getColumnClass is called. It would help if getColumnClass could take 2 params (row and column). Can someone help.
    Cheers,
    vidyut

    You can override getCellRenderer(int row, int column) of JTable

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

  • Sort within group

    I have several groups within groups, and on my last grouping:
    <?for-each-group:current-group();./TASK?>
    I'd like to sort alphabetically by task, but can only seem to sort on the highest group I have:
    <?for-each-group:G_DEPT;./DEPT?><?sort:DEPT;'ascending';data-type='text'?>.
    Is it possible to sort on the current group task? I just get a dump when I try to add the sort tag after for each statement.
    thanks

    I'm not sure about your <?for-each-group?> element because I haven't seen your data. This is an example from one of my reports.
    <?for-each-group: current-group();ELEMENT_NAME?>
    <?for-each:ELEMENT_NAME?>
    <?sort:PROC_PRIORITY?>
    HTH
    - Dan Stober
    Salt Lake City

  • Using IF in a for each loop which is grouped by two fields

    Hi ,
    My requirement is to filter the Payment records ,based on the parameter input date and also group by based on two of the Fields and calculate the sum of the payment Amounts.
    I have created a for each loop with the group by first on one field and then the other field.
    My question is where should I put my IF condition based on parameter dates ?
    If condition would be if Created = Date Parameter .CAn anybody help where I should insert the IF condition in the below code.
    Ex:
    <?for-each-group:Payments;./Created?>
    Display Date : Created
    <?for-each-group:current-group();./CreatedByName?>
    Table      :      CreatedByName     count of Payments           Sum of Amount
    <?end for-each-group?>
    <?end for-each-group?>
    thanks.

    Hi ,
    I got the result by putting the filter in [ ]
    Ex:
    <?for-each-group:Payments[PaymentStatus != 'New';./CreatedDate?>
    here I am filtering the records based on [Payment Status != New] and then group by Created Date .
    Similarly I can new another condition as well in the same statement
    <?for-each-group:Payments[PaymentStatus != 'New'][PaymentMethod != 'Cash'];./CreatedDate?>
    Regards.

  • Adding conditions to current-group()

    First of all I want to thank all the experts out there who read these boards and help folks like myself figure it out. I'm new to this and sort of testing the waters for my clients (our first report was implemented last week!), so there are no local experts. Your help is greatly appreciated.
    Now to my new question. For my second report I'm trying to create something a little more dynamic. I'm moving all of my totalling and grouping from the data definition to the template. I have a large set of records all returned by a single query. The records have a field called 'Report'. The field contains either a 1 or a 2 depending on where in the template the records should be displayed.
    This is a few lines from my template to give you an idea of what I'm dealing with...the tabs don't show but hopefully I've labelled it well enough that you can see what I'm trying to achieve.
    <?for-each-group:G_REPORT;./PAGEBREAK_SEG?>
    <?for-each-group:current-group();./SECOND_SEG?>
    <?for-each-group:current-group();./THIRD_SEG?>
    **new condition***
         <?for-each-group:current-group();./CAT3?>
         <?for-each-group:current-group();./ACCOUNT_SEG?>
         <?ACCOUNT_SEG?>
         <?ACCOUNT_DESC?>
         <?APRIL?>
              <?end for-each?>--END ACCOUNT_SEG
         <?CAT3_DESC?>
         <?sum (APRIL)?>
         <?end for-each?>
    **end of new condition***
    --records where report=2 will be displayed here
    <?split-by-page-break:?><?end for-each?> --ENDS THIRD_SEG
    <?split-by-page-break:?><?end for-each?>--ENDS SECOND_SEG
    <?split-by-page-break:?><?end for-each?> --ENDS PAGEBREAK_SEG
    What I'd like to do is add another condition based on the value of 'Report'. If the report field is '1' I want to go ahead and group the records as indicated above. If the report field is '2' I want to skip over the records. Those records will be displayed later in the template.
    Any help would be appreciated.
    Thank you.

    Hi
    The best approach will be to use an XPATH expression. there is a primer on the XPATH standard in the BIP docs, check it out.
    At its most simple its a way to introduce an if statement into your template e.g. loop over these rows of data if the document type is INVOICE, this would be <?for-each:ROW[DOC_TYPE='INVOICE']
    You will be able to use the same command structure for your data. There was not a Report field (element) in your example below but you can use
    <?for-each:current-group()[Report='1']?>
    this will only show the rows where Report = 1, conversely
    <?for-each:current-group()[Report !='1']?>
    shows every row where Report does not equal 1.
    Give it a try, if you get stuck, some XML data and the structure of the template will help to help you
    Regards
    Tim

  • Sorting a Collection with dynamic columns using a custom compare function for multiple columns

    I need help and ideas on how to sort a ListCollectionView.  My problem is complicated by 3 requirements-
         1. The column values contain HTML tags that needs to be removed before sorting (use custom compareFunction to strip HTML)
         2. The columns are dynamic, so dataField names are not known at compile time (need a single compareFunction for all columns)
         3. The data is used in an AdvancedDataGrid so multi-column sorting is required
    I have figured out how to solve any 2 of the 3 requirements.  However, I am having difficulties supporting all 3 requirements.
    Any help or ideas would be greatly appreciated.  Thanks.

    After playing with this some more I think I've figured out a solution.  This seems to work in initial testing.  Also, there is not a need to capture the current sort column in the headerRelease event which many offered solutions suggested.  Another benefit to this solution is that keyboard initiated sorting is handled also.  Whereas the headerRelease event is only triggered by a mouse click on the column header and special handling is required if the user uses the keyboard to access the column header.
    One point that I don't understand is how ascending/decending order is determined.  Behavior seems to be different between a single SortField versus multiple SortFields.  Notice how the compareResults are handled for the different situations.  Anyone out there know why???
     private function colSortCompareFunction(obj1:Object, obj2:Object, fields:Array = null):int{
         var compareResults:int = 0; 
         var newObj1:Object = new Object(); 
         var newObj2:Object = new Object();
          // should not be a condition that is met   
         if (_dataProviderDetails.sort.fields == null)     {
              var s:Sort = new Sort(); 
              var f:Function = s.compareFunction; 
              return f.call(null, obj1, obj2, fields);     }
         // when a single column is selected for sorting   
         else if (_dataProviderDetails.sort.fields.length == 1)     {
              var firstFld:SortField = _dataProviderDetails.sort.fields[0];
              newObj1[firstFld.name] = stripHTML(obj1[firstFld.name]as String);          newObj2[firstFld.name] = stripHTML(obj2[firstFld.name]
    as String);
              compareResults = ObjectUtil.compare(newObj1[firstFld.name], newObj2[firstFld.name]);
               return compareResults;     }
         // when multiple columns are selected for sorting   
         else       {
              for each (var fld:SortField in _dataProviderDetails.sort.fields)          {
                   newObj1[fld.name] = stripHTML(obj1[fld.name]
    as String);               newObj2[fld.name] = stripHTML(obj2[fld.name]
    as String);
                   compareResults = ObjectUtil.compare(newObj1[fld.name], newObj2[fld.name]);
                    if (compareResults != 0)               {
                        if (fld.descending)                    {
                             return compareResults * -1;                    }
                        else                      {
                             return compareResults;                    }
               return compareResults;     }
    Does anyone see any problems with this solution?
    NOTE:  stripHTML(String) is a simple function using regular expression to remove HTML tags.
    Thx

  • XSL-1015: (Error) Function 'current-group' not found

    Hi
    I am using BI publisher 10.1.3.4.1 and Back Office 13.0.1 . I have created a report in BI publisher but unable to render it in my Back Office application. My report code is
    <?for-each-group:G_STORE_DATA;./REGION?>
    <?REGION?>
      <?for-each-group:current-group();./UNIT?>
       <?UNIT?>
        <?for-each-group:current-group();./STORE?>
        <?STORE?>
         <?for-each-group:current-group();./TILLID?>
           <?TILLID?>
           <?COLLECTIONOFFICER?>
           <?RECONCILED?>
           <?sum (current-group()/AMOUNT)?>
         <?end for-each?>
         <?UNIT?>
         <?sum (current-group()/AMOUNT)?>
    <?end for-each-group?>{corp}
    Please help in resolving this issue.... any guidance or suggestion is appreciated...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I see if your system xsl parser was 1.0 then current-group would not be recognized.
    I am surprised why the parser did not work. Did you not try out with the Template Builder for Word first?
    I would strongly recommend to use the template builder first because it provide several tools (validate...)
    that make your life easier.
    May I also ask what product you used BI Publisher with? I am concerned that this product has an incomplete
    BI Publisher embedded. There are several libraries needed for BI Publisher to work and you may run into
    more issues if you don't have all the libraries.
    Klaus

  • Scheduling failed because of current-group() statement..

    Hi,
    I have realized a strange reaction of the Publisher while sending mails....
    Following situation:
    <?for-each-group:XX,X?>
    <?for-each-group:current-group(),Y?>
    <?for-each:current-group()?>
    <?Z?>
    <?end for-each?>
    <?count(current-group(Z))?>
    <?end for-each-group?>
    <?count(current-group(Z))?>
    <?end for-each-group?>
    The Fat current-group() will cause the scheduler to fail... If i am viewing the report everything works fine. But scheduling is impossible...
    Can anyone else reproduce this?
    Greetings

    Anybody checked this out?

Maybe you are looking for

  • Reg: Warning message in UWL or task TS00700049 &  TS00700059

    Hi ,        We tried to configure the Universal worklist. On registering it , we are getting hte following warnings. WebDynproApplication value not found for task TS00700049 in system SAP_Webflow Portal Component value not found for task TS00700059 i

  • Why do I get "error code 3: Could not load front panel" when I run my executable​.

    I have a LV 8.5 VI that controls only an agilent spectum analyzer. The agilent VIs call DLLs rather than SCPI commands. I created an application and an installer to load on a non LV machine and ran setup which was successful. When I run the EXE I get

  • Missing contact names when someone rings me

    Hi When any of my contacts ring me only their numbers are displayed with no name. How do I fix this please Terri

  • Wierd Audio Behavior suddenly, stereo tracks now take up 2 mono tracks?????

    So I start a new file, or open an existing file and all my tracks that have setero information all of a sudden take up 2 channels on the mixer, so if the audio is on track 1, meters for track 1 and 2 move. If I make track 1 a stereo track, track 2 di

  • Passing data to a method

    I would like to pass a string String st = "word" [\code] from a void method to another code] void useful(String a) [\code] What kind of statement shall I use in the first method? Thanks for any help.