NVL Function and Truncate Function in Template Builder

Hi Guys,
How would I use NVL function and Truncate function in the Word Template Builder.
These functions do not work in the Query Builder when i use SQL Query as the Dataset while creating a report.
I could not find examples in the Publisher Guide either.
Thanks
rkingmdu

Hi
How can you not use the functions in your query? Does the builder return an error? ow about just pasting your query into the report definition does the nvl/trunc work then ?
Regards
Tim
http://blogs.oracle.com/xmlpublisher

Similar Messages

  • Excel function and ev function not working in static column key

    I have created a evdre report and I notice that  when I tried to use any excel function and ev functions in the static column key cell to get the value for that cell, it's not working.
    e.g I have Col key define as:
    ColKeyRange  Sheet!&$J$12:$N$14
    In K13 which is key id for time. I define is as = $K$10 where K10 is the time value from current view, it not working,the value is still K13 = $K$10. then I tried to use EVCVW function to replace K10, it also not working, but I use the same function in the description of the ID underneath, both of the are working, Any thought?
    Edited by: DFW on Feb 9, 2010 7:33 PM

    Hi,
    That was exactly what I meant. They just dont work on the green ID areas or the yellow data region. Few days back even I tried that, but didnt work. So, I followed the different approach. I dont remember about the dynamic templates. Are you sure that the functions were written in the green ID region?
    I remember this used to work fine in the MS version. However, in the NW version, even I am not able to make them work.
    Edited by: nilanjan chatterjee on Feb 9, 2010 9:38 PM

  • Analytic function and aggregate function

    What are analytic function and aggregate function. What is difference between them?

    hi,
    Analytic Functions :----------
    Analytic functions compute an aggregate value based on a group of rows. They differ from aggregate functions in that they return multiple rows for each group. The group of rows is called a window and is defined by the analytic_clause. For each row, a sliding window of rows is defined. The window determines the range of rows used to perform the calculations for the current row. Window sizes can be based on either a physical number of rows or a logical interval such as time.
    Analytic functions are the last set of operations performed in a query except for the final ORDER BY clause. All joins and all WHERE, GROUP BY, and HAVING clauses are completed before the analytic functions are processed. Therefore, analytic functions can appear only in the select list or ORDER BY clause.
    Analytic functions are commonly used to compute cumulative, moving, centered, and reporting aggregates.
    Aggregate Functions :----------
    Aggregate functions return a single result row based on groups of rows, rather than on single rows. Aggregate functions can appear in select lists and in ORDER BY and HAVING clauses. They are commonly used with the GROUP BY clause in a SELECT statement, where Oracle Database divides the rows of a queried table or view into groups. In a query containing a GROUP BY clause, the elements of the select list can be aggregate functions, GROUP BY expressions, constants, or expressions involving one of these. Oracle applies the aggregate functions to each group of rows and returns a single result row for each group.
    If you omit the GROUP BY clause, then Oracle applies aggregate functions in the select list to all the rows in the queried table or view. You use aggregate functions in the HAVING clause to eliminate groups from the output based on the results of the aggregate functions, rather than on the values of the individual rows of the queried table or view.
    let me know if you are feeling any problem in understanding.
    thanks.
    Edited by: varun4dba on Jan 27, 2011 3:32 PM

  • LINQ Canonical Functions and Oracle Functions

    Hello,
    I am using EntityFramework (.NET 4) to access a Oracle Database (11g Express Edition Release 11.2.0.2.0 - 64bit Production).
    For the most part it is working fine, but now I've stumble into a issue using LINQ Canonical Functions, that aparently are supported (see : Mapping LINQ Canonical Functions and Oracle Functions)
    I am running the following expression :
    var expirationDuration = 3000;
    var record = Context.Table
                               .Where(x =>  x.Created.AddMilliseconds(expirationDuration) > DateTime.Now )
                               .FirstOrDefault();
    And im getting a exception :
    "LINQ to Entities does not recognize the method 'System.DateTime AddMilliseconds(Double)' method, and this method cannot be translated into a store expression."
    Shouldn't AddMilliseconds be translated to (expression) + INTERVAL like the docs mentions?
    Thanks for help
    Regards,Nuno

    Neither ODP.NET nor SQLClient recognizes System.DateTime AddMilliseconds(Double) method as a valid method
    I would suggest you use EntityFunctions AddMilliseconds instead.

  • Having trouble with using variables in functions and after functions..

    Morning,
    I have simplified this, as it represents the core of what’s I obviously don't know how to do. 
    Problem:
    Say I populate that variable by reading in a list if IP addresses from file, finding the line that matches the hostname and place that string into the $IPAddress variable for use later throughout the script.   I did not run into a significant problem
    until I decided to convert the routine of looking up the IP address and populating the variable into a function.   As soon as I made it a function, and called that function, the $IPAddress variable only had the data in it until the function completed. 
    Once the function had done its work, and had placed the data into the variable, I expected that “new” data to be available after the function had completed..in that variable.  But it’s like the $IPAddress variable in the main script is a totally
    different data then the variable with the same name that’s used within the function. 
    So I think this demonstrates some of what’s kicking my butt.. 
    $IPAddress = "This is the wrong data”
    Function TestFunction () 
    $IPAddress  #call to display the contents of the variable at the start of the function. 
    $IPAddress = Read-Host -Prompt "Please enter the text ‘Goober’" 
    $IPAddress   #call to display the contents of the variable at the end of the function. 
    TestFunction
    $IPAddress ​
    The output I get is: 
    This is the wrong data
    "Please enter ‘Goober’"  : where I enter Goober
    Goober
    This is the wrong data
    Huh? 
    I had expected:
    This is the wrong data
    "Please enter ‘Goober’"  : where I enter Goober
    Goober
    Goober
    What good is the repeatability of a function if it’s output is lost? 

    THis seems to work.. IS there any reason NOT to do this?
    $Global:IPAddress= "This is the wrong data” #"
    Function TestFunction{
        Write-Host $IPAddress-fore green
          $host.ui.RawUI.FlushInputBuffer()
         $Global:IPAddress =
    Read-Host -Prompt
    "Please enter the text ‘Goober’"
        return$Global:IPAddress
    TestFunction
    return$Global:IPAddress

  • Analytical View - Substring function and Other functions.

    Hello All
    I am trying to use substring and trim function for a value/string and get the field value from position 6 - 10. in analytical view.
    Example: Field name XYZ (Values showing as: ASDFG GETVALUENW  2345) --> (data type :22 VARCHAR)
    Output must be : GETVALUENW (which is 10 characters, from position 6 after trimming) which I am wring to new filed in Calculated coloumns.
    Trying the use built-in functions but syntax wise missing some thing need your inputs.
    Regards
    Kiran.

    Hi Kiran Avunuri,
    A small thought process.
    Have you tried something similar(syntax) in your view.
    BR
    Prabhith

  • Difference between Shipping function and install function in O2A

    Hi,
    I am asking this query from domain perspective than from technology. There are two functions in O2A namely install order and shipping function. Can anyone please explain the activities under these function.
    1. Engineer takes the equipment to customer premises: Is this install order of ship function?
    2. Is shipping function related to supply chain from vendor perspective and not customer perspective.
    Please let me know your views. Thanks

    According to me the logic might be Shipping and Install functions are mutually exclusive. So The scenario might be like this:-
    Shipping Function:-
    1. Some shipping company ships the equipment to the customer and that is tracked in CSP's system that customer has received the shipment.
    Install function:-
    2. Customer would have confirmed some appointment date in CAF form.
    3. Field Engineer will then goto the customer premises and then install the equipment.

  • Using sum function and round function in single text form field

    Hi all,
    I have a column Name - A . In the rtf template i have summed up the column A and showing it. But the output is coming as 99.9999997. I want to round it to 100.
    I tried using <?round(sum(A),2)?> but dint workout.
    I also tried using variables. It is also not working.. I used <?xdoxslt:set_variable($_XDOCTX,’ABS',sum(A)?> and then i used get variable to get it.... But it throwing error while using sum in the set variable step.
    Can anyone please help me..
    Thanks
    Sunil

    Hi Sunil,
    Calculate the sum into a Variable. and apply round function on the variable to get the desired value.
    Calculating sum:
    <?xdoxslt:set_variable($_XDOCTX,'v',xdoxslt:get_variable($_XDOCTX,'v')+DOLLARS)?> (its running sum formula,should be placed inside the table to get sum of all rows of particular column)
    here Variable 'v' holds the sum value
    apply round function:
    <?round(xdoxslt:get_variable($_XDOCTX,'v'))?>
    Thanks and Regards,
    Aravind

  • Aggregate functions and normal function in SELECT statement

    hi
    i am using MS Access DataBase ...
    i have lot of integer coloumns in my Database
    i want to retrieve the coloumn values as well as the min , max and avg of that coloumn
    i dont know whether its possible to do in a single statement or not
    generally if we retrieve the values of a particular coloum
    we say " SELECT length FROM TABLENAME WHERE somecondition"
    and then get the values as int len = rs.getInt("length")..... over a loop
    but how to retieve the value of an aggregate function?
    like if i say "SELECT avg(colname),max(colname),min(colname) FROM TABLENAME WHERE somecondition"
    how do i retrieve this value ???
    i dont know if its possible or not ....pls help.........

    Give names too each column
    SELECT avg(colname) average,max(colname) max,....
    and then rs.getInt("average")
    This works in Oracle and Sybase, not sure on MS access tough

  • Member /static function and procedure

    hi guys,
    i'm trying to figure out diffrerences between the following;
    1. member function and static function
    2.*member* procdure and static procedure.
    i wanna know when to use them when creating an object type.thanks.

    hope this enlighten you
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/objects.htm#CHDEFBEA

  • How to use analytic function with aggregate function

    hello
    can we use analytic function and aggrgate function in same qurey? i tried to find any example on Net but not get any example how both of these function works together. Any link or example plz share with me
    Edited by: Oracle Studnet on Nov 15, 2009 10:29 PM

    select
    t1.region_name,
    t2.division_name,
    t3.month,
    t3.amount mthly_sales,
    max(t3.amount) over (partition by t1.region_name, t2.division_name)
    max_mthly_sales
    from
    region t1,
    division t2,
    sales t3
    where
    t1.region_id=t3.region_id
    and
    t2.division_id=t3.division_id
    and
    t3.year=2004
    Source:http://www.orafusion.com/art_anlytc.htm
    Here max (aggregate) and over partition by (analytic) function is in same query. So it means we can use aggregate and analytic function in same query and more than one analytic function in same query also.
    Hth
    Girish Sharma

  • BIPublisher Template Builder Error: System Error &H80040111 (-21472211231)

    Hi,
    I have installed BIPublisher Desktop 10.1.3.4.2 on my Windows XP SP3 machine and i can see Template Builder Add-In added to MS Word. But, When ever i try to access Template builder menu, word is displaying the following error and i can't do anything.
    "*System Error &H80040111 (-21472211231) Cannot Supply Requested Class Factory" (On header it says, Microsoft Visual Basic)..*
    I had same installation (BIP 10.1.3.4.2 on Windows XP SP3 system) at my earlier client and no issues there. In both cases i have Microsoft Office 2007. I tried BIPublisher 11.1.1.5 Desktop too but same error. Can any one suggest any thing?. We tried re-installing MS Office but no luck. I found couple of posts on Microsoft support website but nothing helped.
    Thank you
    Vijay

    AT LAST IT WORKED...
    We installed Office 2010 by keeping Office 2007 (you can do this by creating new installation folder for new office). Then we were able to get rid of this error using Word 2007. Looks like our office 2007 installation is missing few Visual Basic libraries which were fulfilled with Office 2010 installation. WHich may be strange as the office copy we have is our client copy (federal Govt). Luckily my client maintains both office 2007 and 2010. For those who doesn't have Office 2010, i am not sure what you can do but sorry.
    Thank you
    Vijay
    Edited by: 894280 on Dec 20, 2011 9:48 AM

  • XML Publisher 6.5.2 MS word Template Builder fails

    Dear all,
    My env is: Oracle DB 10.1.0.5 on redhat Linux, XML publisher 6.5.2 on Windows 2000.
    While using the XML publisher GUI from the browser, I am able to connect successfully to the database.
    However, when I try to build a RTF template from MS word, I am unable to do so. The MS word template builder wizard is throwing an exception, and I do not know how to solve it in spite of some googling around.
    I gave the same connect identifier in the XMLP GUI (which connects) and also in the template builder (which fails to connect).
    Any help/pointers for this will be welcome.
    Best regards,
    Ambarish.
    Creating XDO Report at: Fri Mar 09 16:56:58 IST 2007
    sql = select * from oblix_audit_events
    description = First sample report from template builder
    port = 1521
    user = scott
    host = ps2844
    sid = coreid10.persistent.co.in
    ReportParameters = {}
    path = D:\Projects\xml_publisher\REPORTS\oamrept01
    data_source_name = COREID10
    name = oamrept01
    java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:410)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:260)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at CreateXDOReport.getConnection(CreateXDOReport.java:49)
    at CreateXDOReport.createXDOReport(CreateXDOReport.java:142)
    at CreateXDOReport.process(CreateXDOReport.java:108)
    at CreateXDOReport.main(CreateXDOReport.java:298)

    The opmn utility dumped core:
    -rw------- 1 bill bill 279474176 Nov 15 13:46 /u02/oracle/bi/core.14808
    # file core.14808
    core.14808: ELF 64-bit LSB core file AMD x86-64, version 1 (SYSV), SVR4-style, from 'opmn'
    I just love this shit!

  • ODBC functions SQLExecDirectW and SQLExecute functions return error:"DIAG [22001] [Microsoft][SQL Server Native Client 10.0]String data, right truncation (0) "

    Problem Description:
    ODBC functions SQLExecDirectW and SQLExecute functions return error:”DIAG [22001] [Microsoft][SQL Server Native Client 10.0]String data, right
    truncation (0) “. When we enable tracing in the ODBC administrator, in the SQL.log we see that values for the arguments: ColumnSize, BufferLength, and StrLen_or_IndPtr of ODBC function SQLBindParameter are not being displayed.
    Environment Used:
    OS: Microsoft Windows Server 2003 R2 Standard x64 Edition.
    Complier: Microsoft Visual Studio 2008 SP1 for x64.
    Database: Microsoft SQL Server 2008
    MDAC: Microsoft Data Access Components SDK 2.8
    Note: This problem is seen only in our 64bit application. However, in 32bit
    SQLExecDirectW and SQLExecute functions return successfully.
    As we could not find the values of 6<sup>th</sup>, 9<sup>th</sup> and 10<sup>th</sup> arguments(ColumnSize,
    BufferLength, and StrLen_or_IndPtr) passed to
    SQLBindParameter in the ODBC traces for 64bit, we are not sure whether the values for the above mentioned arguments are received correctly by SQLBindParameter or not. This information would help us to debug further. So, could you please let us know why
    these values are not displayed.
    1)Here is the extract of the SQL.log file for 32bit where the values for SQLULEN , SQLLEN and SQLLEN* are displayed properly:
    PR0CNFG 1028-15f0 ENTER SQLBindParameter
    HSTMT 0x006FBDD8
    UWORD 1
    SWORD 1 <SQL_PARAM_INPUT>
    SWORD -8 <SQL_C_WCHAR>
    SWORD -9 <SQL_WVARCHAR>
    SQLULEN 23
    SWORD 0
    PTR 0x0595EBBA
    SQLLEN 46
    SQLLEN * 0x05A5FB00
    2)Here is the extract of the SQL.log file for 64bit where the values for SQLULEN , SQLLEN are not displayed properly and
    SQLExecDirectW function return error:”DIAG
    [22001] [Microsoft][SQL Server Native Client 10.0]String data, right truncation (0) “. :
    PR0CNFG a78-fe4 ENTER SQLBindParameter
    HSTMT 000000000431D2F0
    UWORD 1
    SWORD 1 <SQL_PARAM_INPUT>
    SWORD -8 <SQL_C_WCHAR>
    SWORD -9 <SQL_WVARCHAR>
    SQLULEN SQLULEN SWORD 0
    PTR 0x0000000005364EFA
    SQLLEN SQLLEN
    SQLLEN * SQLLEN *
    PR0CNFG a78-fe4 EXIT SQLBindParameter with return code 0 (SQL_SUCCESS)
    HSTMT 000000000431D2F0
    UWORD 1
    SWORD 1 <SQL_PARAM_INPUT>
    SWORD -8 <SQL_C_WCHAR>
    SWORD -9 <SQL_WVARCHAR>
    SQLULEN SQLULEN SWORD 0
    PTR 0x0000000005364EFA
    SQLLEN SQLLEN SQLLEN *

    Hi Nalsr,
    From my research, I found:
    "[Microsoft][ODBC SQL Server Driver]String
    data right truncation" error may be returned from a call to
    SQLBindParameter if the size of the string parameter being used is greater than the size of the column being compared to. In other words if the
    string size of the <expression> to the left of the <comparison_operator> is less than the
    string size of the <expression> to the
    right, ODBC may return this error.
    The resolution is to make the string size of the <expression> to the
    right of the <comparison_operator> less than or equal to the
    string size of the <expression> on the left.
    It is difficult to track down this type of problem when third party development applications are being used. ODBC Trace can be used to help determine if this problem is occuring.
    Here is an example where the customer has submitted a query "select count(*) from type1 where type1 = ?", type1 is varchar(5) and the
    data type being passed by the application is char[9].
    Here is the relevant portion of the trace. The following information from the "exit" of SQLDescribeParam
    SWORD * 0x0095e898 (12)
    UDWORD * 0x0095e880 (5)
    Maps to the following with the actual value in parenthesis - SQL_VARCHAR Size 5:
    SQLSMALLINT *DataTypePtr
    SQLUINTEGER *ParameterSizePtr
    The "exit" value from SQLBindParameter provides the following
    information:
    SWORD 1 <SQL_PARAM_INPUT>
    SWORD 1 <SQL_C_CHAR>
    SQL Data Type SWORD 12 <SQL_VARCHAR>
    Parameter Size UDWORD 5
    SWORD 0
    Value PTR 0x0181c188
    Value Buffer Size SDWORD 5
    String Length SDWORD * 0x0181c103 (9)
    The string length parameter is the length of the
    string being bound to the parameter, in this instance there is a size mismatch which results in the SQLError and the SQLErrorW with the message "[Microsoft][ODBC SQL Server
    Driver]String data
    right truncation" .
    Hope this could be helpful.
    Best regards,
    Halin Huang

  • Segment builder and/or functionality....

    We are looking for a technical / functional explanation of the AND / OR functions within the segment builder tool u2013 how they work on their own and how they work together (AND OR / OR AND / AND AND / OR OR).  Anyone have a good answer?

    Hi Ned,
    I can give some oversight on the use of these operators in Segmentation while creating a Profile set.
    To use these first you need to understand the concept of MultiFilters.
    Multifilters: All filters that are selected at one time are treated as  one multifilter.
    Which means you can select more than one filter at a time and drop in the segmentation profile set screen to create one profile.To do this you need to first select one filter and hold ctrl key on your keyboard and select the other filter.
    So to explain this multiple selection i have an example below:
    Note: To achevie this both the Attributes are from one Attribute List: Attribute List XYZ has
    Channel Attribute 1         
    Filter 1 - Email               
    Filter 2 - Phone
    Priority Attribute 2
    Filter 1 - High
    Filter 2 - Medium
    Filter 3 - Low
    Scenario1 -
    So now if i select OR within Attribute and select both the filter email, phone and drop on the right hand screen i will get a profile (Email OR Phone)
    Scenario 2-
    If i select OR within  Attribute and AND across all attribute
    Select filter email, phone (together) and select filter high,low (together) and drag and drop in the profile set screen i would be seeing a Profile (Email OR Phone) AND (High OR Low)
    In the same way you can change the operands (OR,AND) for within an Attibute & across all attributes depending on your requirement to create your Profile & TG.
    Thus this is how you use these operands during multifilter selection.
    Hope this helps !
    Regards,
    Naveen

Maybe you are looking for

  • Multiple devices one itunes account

    Hi, I have an itunes account for my iphone and ipad, now my kids have just got ipod touches for Christmas which i have added as new devices to my itunes account. When my daughter sends an imessage it appears on all the devices linked to my account, i

  • Update "Pay on" value on approved PO - can it be done?

    Hi, We have some approved, receipted POs on the system (using R12.1.1). When the POs were created, the Suppliers used on the POs were not flagged as Pay on Receipt. Therefore when you open the POs, and click on the Terms button, the "Pay On" field is

  • TS1368 Accessing itunes store

    I have reinstalled itunes onto my PC but am still not able to access the itunes store.

  • LMS3.2 - Service Temporarily Unavailable

    Hi there Our Windows Cisco Works Server ran out of disk space, I freed up some space and rebooted the server. After I restarted the server I now get the following message when trying to use a web browser to connect - Service Temporarily Unavailable T

  • Display exception in Adapter monitoring

    We have a requirement in which we need to convert a specific flat file structure into XML and then pass the message using XI. For this we have deployed an EJB module which is doing this conversion from flat file to XML. This EJB is being called from