Multiply 2 variables in RTF templates

Hi,
I am trying to multiply a variable with a calculated field-->
<?xdoxslt:get_variable($_XDOCTX,'baseline')*(xdoxslt:maximum(current-group/TRGT_RATIO))?>
where "Baseline"=xdoxslt:div(sum(current-group()/NMRTR),sum(currnet-group()/DNMTR))
But this gives me an error.
Please let me know what is wrong in here............................
Thanks
Edited by: 883026 on Nov 23, 2011 7:10 AM

I am trying to subtract dates in an RTF template
<?xdofx:if substr(EXP1_3,1,10) - substr(INVOICE_DT,1,10) >= 91 then (PYMNT_GROSS_AMT) end if?>
I don't get any error messages or anything, but it is inconsistent at best,
My EXP1_3 value is 05/31/2012 and one of my INVOICE_DT values is 04/12/2012,, in which case this statement should NOT be true and it should not return the value of PYMNT_GROSS_AMT,,but it does ?

Similar Messages

  • Variables in RTF template?

    Variables in RTF template?
    I am battling with variables in RTF template.
    (1) I need to declare and set a variable.
    (2) I like to print it out - check for value
    (3) then I need to make some conditional formatting IF-THEN-ELSE depending on variable value
    THIS DON'T WORK AT ALL (1,2,3):
    (1) declare a variable
    <xsl:variable name="MYCOUNT" select="count(LINE_LOCATIONS/LINE_LOCATIONS_ROW/SHIPMENT_NUM)"/>
    (2) print-out-a-value
    <xsl:value-of select="$MYCOUNT"/>
    (3) IF-THEN-ELSE statement
    <xsl:if test="$MYCOUNT > 1"><xsl:value-of select="concat('mo','re')"/></xsl:if>
    <?if:MYCOUNT="1"?><xsl:value-of select="concat('o','ne')"/><?end if?>
    THIS WORK (1,2) BUT (3) don't work in any way !!!
    (1) declare a variable
    <?xdoxslt:set_variable($_XDOCTX, MYCOUNT, count(LINE_LOCATIONS/LINE_LOCATIONS_ROW/SHIPMENT_NUM))?>
    (2) print-out-a-value
    <?xdoxslt:get_variable($_XDOCTX, MYCOUNT)?>
    (3) IF-THEN-ELSE statement
    <?xdofx:if MYCOUNT=1 then 'one' else 'more' end if?>
    <?xdofx:if $MYCOUNT=1 then 'one' else 'more' end if?>
    <?xdofx:if xdoxslt:get_variable($_XDOCTX, MYCOUNT)=1 then 'one' else 'more' end if?>
    Can someone help me haw to compare a value of variable with constant or another variable or node-value ?
    thx.

    <?xdoxslt:set_variable($_XDOCTX, ‘COUNT’,’YY’)?>
    <?xdoxslt:get_variable($_XDOCTX, ‘COUNT’)?>
    <?if:(xdoxslt:get_variable($_XDOCTX, ’COUNT’)) = ‘YY’?> YEss<?end if?>
    <?if:(xdoxslt:get_variable($_XDOCTX, ‘COUNT’)) = ‘HH’?> Helooo<?end if?>
    <?xdoxslt:set_variable($_XDOCTX, ’YY’, 15)?>
    <?xdoxslt:get_variable($_XDOCTX, ’YY’)?>
    <?if: (xdoxslt:get_variable($_XDOCTX, ’YY’))=15?>Yes Yes<?end if?>
    Variable name is 'COUNT'

  • Subtrating variables in RTF templates

    Hi,
    I am trying to subtract two variables, but it seems something is wrong.Please help me out.
    Here's my code:
    <?choose:?>
    <?when:xdoxslt:get_variable($_XDOCTX,'Var2')=(xdoxslt:get_variable($_XDOCTX,'Var1'))?>-<?end when?>
    <?otherwise:?><?xdoxslt:div((xdoxslt:get_variable($_XDOCTX,'Var2')-xdoxslt:get_variable($_XDOCTX,'Var1')),xdoxslt:get_variable($_XDOCTX,'Var1'))?><?end otherwise?>
    <?end choose?>

    I am trying to subtract dates in an RTF template
    <?xdofx:if substr(EXP1_3,1,10) - substr(INVOICE_DT,1,10) >= 91 then (PYMNT_GROSS_AMT) end if?>
    I don't get any error messages or anything, but it is inconsistent at best,
    My EXP1_3 value is 05/31/2012 and one of my INVOICE_DT values is 04/12/2012,, in which case this statement should NOT be true and it should not return the value of PYMNT_GROSS_AMT,,but it does ?

  • How Can I apply a RTF Function on a variable in RTF Template in XML Publisher Report

    Hi Everyone,
    I am developing a RTF Template of XML Publisher Report, I have a variable lv_counter which I can declare using below syntax
    <?xdoxslt: set_variable($_XDOCTX, 'lv_counter',0)?>
    I can access this variable in the template as <?xdoxslt: get_variable($_XDOCTX,'lv_counter')?>
    My need is to print the variable in words in the RTF Template. I am using <?xdofx: to_check_number(xdoxslt: get_variable($_XDOCTX,'lv_counter'))?>
    But this is not working. any help will be appreciated thanks in advance
    The XML Publisher Desktop version which I am using is 10.1.3.3.0
    Please let me know where I can post this question, if this is not the appropriate discussion forum.
    Thanks in Advance.

    Hi,
    Can you elaborate your requirement little bit clear with some example like what is your expected output.
    And you can post you BI related question in the BI publisher forum
    https://forums.oracle.com/community/developer/english/business_intelligence/business_intelligence_foundation/bi_publisher/content?filterID=contentstatus[published]~objecttype~objecttype[thread]
    Regards
    Sri

  • Need help with 'division' operation in RTF template

    We are using variables in RTF template to perform all data manipulations
    To calculate columns where we need to do division operation, using ‘/’ or ‘DIV’ is not working.
    Using <?xdofx: op1 DIV op2?> is working only when op1 and op2 are numbers like ex. <?xdofx: 100 DIV 50?> returns result 2.
    But the same tag used for columns or variables is not working.
    For ex.
    <?xdofx: (xdoxslt:get_variable($_XDOCTX, 'var1')) DIV xdoxslt:get_variable($_XDOCTX, 'var2') ?> is not returning any result, though
    <?xdoxslt:get_variable($_XDOCTX, ‘var1’)?>
    <?xdoxslt:get_variable($_XDOCTX, ‘var2’)?>
    both are returning values stand alone.

    On Thu, 03 Jan 2008 00:22:31 -0500, Alan
    <[email protected]> wrote:
    >yes, the use of child page comments in a template file is
    probably the
    >problem. But if that is solved, having two editable
    regions with the same
    >name will cause problems.
    >
    >short version- things be horked big time.
    <chuckle /> Methinks you're right. It looks like the
    copy/paste monster
    has been munching on it. One guess to fix it would be to open
    it in a
    text editor and change this:
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    To this:
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    And change this:
    <!-- InstanceEndEditable --></head>
    To this:
    </head>
    Gary

  • Xslt graph in a rtf template. Can an external variable be used inside the graph definition?

    I'm working with BI Publisher 10g, building an rtf template that would display a table and a graph by iterating on one of the xml tags from the input file.
    I got the table working using am xslt variable set when the xml tag associated value changes (DATAGROUPID).
    <?for-each:(/DATA/SITE/SITE_DATA)?> <?sort:DATAGROUPID;'ascending';data-type='number'?>
    <?xdoxslt:set_variable($_XDOCTX,'SITE',DATAGROUPID)?>
    <?for-each:(/DATA//DIMS/LOCALES[LOCALE = 'en']/TEXT)?><?sort:DIMNAME;'ascending';data-type='text'?>
    <?xdoxslt:set_variable($_XDOCTX,'DIMID',DIMID)?>
    <?round(/DATA/SITE/SITE_DATA[DATAGROUPID = xdoxslt:get_variable($_XDOCTX,'SITE')]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = xdoxslt:get_variable($_XDOCTX,'DIMID')]/ITEM[ITEMID = 0]/PFAV)?>
    <?end for-each?>
    chart:
    <Graph seriesEffect="SE_AUTO_GRADIENT" graphType="BAR_VERT_PERCENT" autoLayout="AL_AS_NEEDED">
    <LegendArea visible="true" automaticPlacement="AP_NEVER" position="LAP_BOTTOM"/>
    <SeriesItems>
    <Series id="0" color="#FF0000"/>
    <Series id="1" color="#FFFF00"/>
    <Series id="2" color="#00FF00"/>
    </SeriesItems>
    <MarkerText visible="true" markerTextPlace="MTP_CENTER">
    <GraphFont name="Arial" size="20" bold="true" italic="false" underline="false"/>
    <Y1ViewFormat>
    <ViewFormat decimalDigit="0" decimalSeparatorUsed="true" decimalDigitUsed="true"/>
    </Y1ViewFormat>
    </MarkerText>
    <LegendText>
    <GraphFont name="Arial" size="20" bold="false" italic="false" underline="false"/>
    </LegendText>
    <Y1TickLabel>
    <GraphFont name="Arial" size="12" bold="false" italic="false" underline="false"/>
    </Y1TickLabel>
    <O1TickLabel wordWrapEnabled="false" tickLabelStaggered="false">
    <GraphFont name="Arial" size="20" bold="true" italic="false" underline="false"/>
    </O1TickLabel>
    <LocalGridData colCount="{count(xdoxslt:group(/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM, 'DIMID'))}" rowCount="3">
    <RowLabels>
    <Label>Unfavorable        </Label>
    <Label>Neutral</Label>
    <Label>Favorable</Label>
    </RowLabels>
    <ColLabels>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Label>
    <xsl:value-of select="DIMNAME"/>
    </Label>
    </xsl:for-each>
    </ColLabels>
    <DataValues>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PUNFAV != 0]/PUNFAV"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PNEU != 0]/PNEU"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PFAV !=0]/PFAV"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    </DataValues>
    </LocalGridData>
    </Graph>
    <?end for-each?>
    So, on the table this line gets the correct variable from the input file:
    <?round(/DATA/SITE/SITE_DATA[DATAGROUPID = xdoxslt:get_variable($_XDOCTX,'SITE')]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = xdoxslt:get_variable($_XDOCTX,'DIMID')]/ITEM[ITEMID = 0]/PFAV)?>
    How can I replicate that logic inside the table definition?
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PFAV !=0]/PFAV"/>
    Input data looks like this:
    <DATA>
    - <SITE>
    - <SITE_DATA> 
    <DATAGROUPID>1032817</DATAGROUPID>  
    <DATAGROUPNAME>My Sales</DATAGROUPNAME>  
    - <YEAR> 
    <SURVEYYEAR>2012</SURVEYYEAR>  
    - <DIM> 
    <DIMID>1</DIMID>  
    - <ITEM> 
    <ITEMID>0</ITEMID>  
    <PFAV>88</PFAV>  
    <PNEU>13</PNEU>  
    <PUNFAV>0</PUNFAV>
    - <ITEM> 
    <ITEMID>40</ITEMID>  
    <PFAV>100</PFAV>  
    <PNEU>0</PNEU>  
    <PUNFAV>0</PUNFAV>  
    </ITEM>
    </DIM>
    </YEAR>
    </SITE_DATA>
    - <SITE_DATA> 
    <DATAGROUPID>1032816</DATAGROUPID>  
    <DATAGROUPNAME>Your Sales</DATAGROUPNAME>  
    - <YEAR> 
    <SURVEYYEAR>2012</SURVEYYEAR>  
    - <DIM> 
    <DIMID>1</DIMID>  
    - <ITEM> 
    <ITEMID>0</ITEMID>  
    <PFAV>71</PFAV>  
    <PNEU>25</PNEU>  
    <PUNFAV>4</PUNFAV>  
    I can include a complete sample on request, I thought this would be enough to illustrate the issue.
    I'll appreciate any help you can provide.

    I kept researching, I found some possible solution in this blog:
    https://blogs.oracle.com/xmlpublisher/category/Oracle/Templates/RTF
    so, I created a local SITE variable inside every cell to get the external SITE info:
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:variable name="SITE" select="{xdoxslt:get_variable($_XDOCTX,'SITE')}"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA[DATAGROUPID = $SITE]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PUNFAV != 0]/PFAV"/>
    </Cell>
    but I get this error at run time:
    oracle.xdo.parser.v2.XPathException: Error in expression: '{xdoxslt:get_variable($_XDOCTX,'SITE')}'.
        at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
        at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
        ... 14 more
    What am I doing wrong?

  • Relative path for images in RTF templates

    Hi everybody!
    When I insert an image in a RTF template, I put its path into the web dialog, in order to see correctly the picture when I open the report from the xmlp server, in this way: url:{"http://servername/analytics/res/Images/image.bmp"}
    How can I make this path relative, in order to see the images even if the server name changes?
    Thanks so!
    Francesco

    Hi Tim,
    I am using BIP 10.1.3.3.2. I am able to access system variable CURRENT_SERVER URL.
    Steps:
    <?param@begin:CURRENT_SERVER_URL?>
    <xsl:value-of select="$ CURRENT_SERVER_URL"/>
    CURRENT_SERVER_URL is getting printed in BI Publisher. Value displayed is http://xx4697.xxx.co.in:9704/xmlpserver.
    Now we are importing xsl into RTF template. File aaa.xsl is stored at [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app]
    We have hardcoded the path for XSL in RTF. The path is <?import: http://xx4697.xxx.co.in:9704/aaa.xsl?>
    As we want to set dynamic path we changed hardcoded xsl path to <?import: {$CURRENT_SERVER_URL}/../aaa.xsl?> but it is not working. Sometimes BIP is taking local path of MyDocuments folder and sometimes Desktop path. If I put that XSL file in MyDocuments folder or Desktop, it is working fine. But ideally it should refer [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app] path...
    Thanks,
    Amit D

  • Creating Parameters in RTF Template for BI Publisher Report

    hi,
    I have created Parameters in my BI Publisher Report and in SQL query. But i need to create same parameters in RTF Template , so that when i publish this report in dashboard , parameters will be visible. Can you please tell me how to create Parameters in RTF Template for BI Publisher Report ? I am not finding option. Please let me know .
    Thanks in advance
    Gayathri.

    all the parameter's value will be there in your xml .
    just you need to add parameter heading and corresponding xml tag name to get the parameter value on the report.
    if u dont have you can try like below
    https://blogs.oracle.com/xmlpublisher/entry/get_your_parameters_here_guv
    Declare Parameter in RTF Template
    Before you use the parameter in the RTF template file you need to declare it first. You can do so by having the following syntax.
    <?param@begin:%parameter_name%?>
    Note: where %parameter_name% is the parameter name that you have created at the BI Publisher Server UI.
    Here is an example:
    <?param@begin:param1?>
    Use it in RTF Template!
    Once it’s declared in the RTF template you can start using it as the same way you use the variable. You need to just add ‘$’ prefix in front of the parameter name. Here is the example:
    <?$param1?>
    The above example would print the parameter value in the report output. If you want to use this value in your condition or calculation you can simply use it as ‘$param1’. Yes, it’s that simple.
    If you are not sure if and how the parameter values are passed to the report when you run the report you can use this command in your RTF template, which will return all the parameter values passed to the RTF template at the runtime.
    <?xdoxslt:getXDOProperties($_XDOCTX)?>
    http://kirti-bi-solutions.blogspot.com/2009/06/passing-parameters-from-obiee.html

  • How to select specific rows in rtf template for complex calculation

    Hi,
    I want custom calculation in my rtf template and for this i need to select specific cell's value OR specific row's value. Any one please suggest how can I get this. Below is the example i have plotted using excel. My target is to get field 8 and 9 using sum and minus. We can calculate column over column, is there any way to calculate row over row? If I use variables, then i have to create so many variables because I have more columns and rows to calculate (here i posted one sample table). Any one please help me how can I get expected result other than using variables! If "Using variables" is the only way then also give your valuable opinions.
    Row No
    Curr Qtr
    PQtr1
    PQtr2
    3
    B3
    C3
    D3
    4
    B4
    C4
    D4
    5
    B5
    C5
    D5
    6
    B6
    C6
    D6
    7
    B7
    C7
    D7
    8
    B8=SUM(B4:B7)
    C8=SUM(C4:C7)
    D8=SUM(D4:D7)
    9
    B9=B8-B5
    C9=C8-C5
    D9=D8-D5
    Thanks.

    Hi AlexAnd,
    Thanks for the reply, I got 0 using both codes. This is a dummy table and I plotted 3,4 to give an idea of row number (as like as excel). Rows are individual data sets combining different measures and dimensions with different values.
    Account
    Curr_Qtr
    PQtr1
    PQtr2
    Deposit
    10
    15
    20
    Loan
    15
    20
    25
    Earning
    20
    25
    30
    Assets
    25
    30
    35
    Total
    =SUM(15,20)
    =SUM(20,25)
    =SUM(25,30)
    Expense
    =SUM(15,20)-25
    =SUM(20,25-30
    =SUM(15,20)-25
    Is there any way to identify the range or individual cell's value? Using variables I have to create lots of variables for each cells, I want to avoid that and want to use rows in calculation! Is that possible, Pls share your valuable opinions!
    Thanks.

  • Suppress Blank Lines in RTF Template

    We are using <?if:count(current-group()[FIELD=$VARIABLE])?> in order to restrict data in a pivot table cell.
    The pivot table cell uses @cell:top XML level to produce fixed number of columns.
    There are two for-each-groups in the cell under the @cell tag.
    Using <?if:count(current-group()[FIELD=$VARIABLE])?> works fine to restrict data but there are many extra blank lines creating bad formatting. This is because the two for-each-groups under the @cell tag. Those groups get the correct data but since @cell is at the top node of the XML the for-each-groups are repeating too many times and creating the blank lines.
    Is there a way to suppress blank lines in an RTF template?

    I've already tried that and the results are the same. The blank spaces still exist. I even tried using that right after the for-each-groups that are under the @cell tag. No difference.
    Can I please send you the RTF template and XML? And two PDF files, one that shows the empty line spaces and one that shows correct formatting (without fixed number of columns).
    Thank you very much.

  • Fix Cheque position in RTF Templates for AP Payments R12

    Hi,
    I created rtf template for check printing. I have to print invoices details first and after that check at the bottom of the page. I need to print invoices on the cheque page only when total invoice count < = 3 which I am able to control. I am facing issue when for 3 invoices the table height is variable, depends on invoice description this table size is changing. How I can give the fixed-height for invoice table or how I can specify exact place for check (at the bottom of each page )
    Thanks
    Mital

    Hi Prakhar,
    Please note the cheque is not an image its in a table.
    Even if I fix a table using table positioning in the output it doesnot print at the fixed position which I have provided in my RTF.
    Please let me know if you would want to see the sample XML Data and RTF that I have created which can be easier to debug.
    Thanks for your help,
    Mital

  • XDOXSLT in RTF Templates

    I have a few questions regarding the xdoxslt functions in RTF template making.
    I've been using the Report Designer's Guide here: http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481158.htm
    It says <?variable:name?> declares local or global variable? What does this mean? When is it local and when is it global?
    Also I would be interested to know how to concatenate two or more strings with xdoxslt?
    Many thanks

    <?variable:name?>
    Local or global variable declaration i can wrong but
    <?variable:name?> - is global variable
    <?variable@incontext:name?> - is local variable
    as example
    <?variable:NumLine;'Line_Id'?>
    for-each by some element
    using variable NumLine
    end for-eachvariable NumLine is same all time in cycle
    another way
    for-each by some element ( Line_Id is tag )
    <?variable@incontext:NumLine;'Line_Id'?>
    end for-eachevery time the cycle will assigns current Line_Id to variable NumLine - so local in incontext of cycle
    of course it's may exists others cases global or local variables but i gave some point
    Also I would be interested to know how to concatenate two or more strings with xdoxslt?why xdoxslt?
    you can use
    <?concat(‘1’,’%’)?>concat is an XSL expression (http://docs.tpu.ru/docs/oracle/en/fmw/11.1.1.6.0/bi.1111/e22254/extend_func.htm)
    or
    <?value-of:concat(‘2’,’$’)?>or
    <xsl:value-of select="concat('2',' - ', '%')" />or
    <?xdofx:3||2?> http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm#4535440

  • Issue with ROUND function in RTF template

    Hi All,
    Can anyone please help me in implementing the ROUND function at the RTF template.
    Need to handle rounding of amounts at the RTF template level itself.
    The ROUND function should be implemented to the following tags:
    <?sum(current-group()/TAXABLE_AMOUNT)?> (Record level)
    <?sum(TAXABLE_AMOUNT)?> (Report level total)
    Eg. If the Sum(current-group()/TAXABLE_AMOUNT) for a particular record is 401.65 then it should round of to 402
    we try to do this using following syntax ..
    1) by declaring variable "value"
    <?xdoxslt:set_variable($_XDOCTX, value, sum(current-group()/TAXABLE_AMOUNT))?>
    2) <?xdofx:round(sum(current-group()/TAXABLE_AMOUNT))?>
    3)<?xdofx:round(xdoxslt:sum(current-group()/TAXABLE_AMOUNT))?>
    but we ding get the solution.
    A quick response on this is highly appreciable.
    Thanks,
    Praveen

    Re: Summing derived values within xdofx:
    Re: Rounding not working

  • How to set parameter in rtf template

    Hi,
    I've created a data model query using a parameter in BI Publisher Enterprise. When I'm showing the data I'm first ask for the parameter value.
    Now I want to create a rtf template in BI Publisher Desktop. What do I have to do that the user can set the parameter and then see the result? So how to set the parameter in my query?
    Thanks
    chrissy

    Hey Chrissy... i am realy sorry, i have guided u in the wrong way...
    Above which i have explained was about Variable....
    To test passing a parameter value, ff you are using the:
    XML Publisher Runner – on the Setting tab enter a new line containing:
    Name: xslt. InvThresh
    Value: 1000
    Template Builder
    In the config file under <<TEMPLATE_BUILDER_HOME>>/config enter under the Properties section:
    <property name="xslt.InvThresh">1000</property>
    <xsl:param name="InvThresh" select="0" xdofo:ctx="begin"/>
    InvoiceNumber     Inovice Amount
    Grp: Invoice13222-2     $100.00EFE
    Grp: Invoice= <?for-each:G_INVOICE_NUM?><?if:ACCTD_AMT>$InvThresh?>
    13222-2 = <?INVOICE_NUM?>
    $100.00= <?ACCTD_AMT?>
    EFE = <?end if?><?end for-each?>
    Hope this will help u out....
    sorry for tht .....
    Thanks
    Praveen Gollu.

  • How to use XDOXSLT in rtf template layout for etext template creation

    <DEFINE CONCATENATION>     BookDetails
    <BASE LEVEL>     Category
    <ELEMENT> Name || '/' || Price     
    <DELIMITER>      '/'
    <END DEFINE CONCATENATION>     BookDetails
    With EFTProcessor the above details are created in xsl file as follows
    <xsl:template name="CONCAT_BookDetails">
    *I need to declare one more variable here
    EG: <xsl:value-of select="xdoxslt:set_variable($mycount, count(.//Category))"/>
    --and use this variable for any dyanamic process inside this template. How to achieve this in rtf template by declaring a xdoxslt function. How to declare this
    syntax in rtf layout so that it creates a varibale in xsl template using the EFTProcessor. Please help me out. The main point here is to include xslt functions in
    rtf template layout for etext template creation.*
    <xsl:for-each select=".//Category">
    <xsl:call-template name="CONCAT_BookDetails_V"/>
    </xsl:for-each>
    </xsl:template>

    in the next time use BI Publisher forum - BI Publisher
    <?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
    output:
    444    ->  444.00
    444.55 ->  444.55

Maybe you are looking for