Export Oracle report formula column to XMLP

hi
i am thinking about exporting an rdf report to xmlp and i am worried about keeping my formula columns in the xmlpublisher report.
what is gonna happen to them ?
thx
Dan

If you are using Oracle Reports XML output as the datasource, the formula column will be in the XML, recognizable by the tag name. If you are using a data template to produce the datasource, the formula colum can be defined in the template.

Similar Messages

  • Problem in Report Formula Column

    I recently Transfer my databse 9i to 10g and iam using developer 2.1 release 5 as a front hand.
    so problem is that my reports run successfully with oracle 9i but when i change my database to oracle 10g iam facing error in reports formula column. when i use select statement in formula column. i gave u an example about that.
    function CF_1Formula return Number is
         lc_count NUMBER;
    begin
         SELECT      count(*)
         INTO     lc_count
         FROM     tab;
         RETURN (NVL(lc_count,0));
    end;
    when i compile formula column i got this error.
    ORA-00600 internal error , argument:[17069], [19156148],[],[],[],[],[],[]
    please help me in this matter.
    Thanks.
    M.Sohail Tai

    hi fs,
    Thanks for reply me my friend.
    i also use the column name but same error is appeared when i compile formula column . this is only the example i gave to u. now i give u actual code.
    function CF_Close_Rate1Formula return Number is
    lc_rate number;
    begin
    select CL_RATES_CLOSE
    into lc_rate
    from sys_cl_rates
    where cp_id = :v_cp_id
    and loc_id = :v_loc_id
    and trade_type_id = :trade_type_id
    and cp_list_id = :cp_list_id
    and CL_RATES_DATE = (select max(cl_rates_date)
                   from sys_cl_rates
                   where cp_id = :V_CP_ID
                   and loc_id = :V_LOC_ID
                   and trade_type_id = :trade_type_id
                   and cp_list_id = :cp_list_id);
                   --= :lc_closing_date;
    return (nvl(lc_rate,0));
    EXCEPTION WHEN NO_DATA_FOUND THEN
    RETURN(0);
    end;
    This work properly with 9i database but not with 10g database.
    Reply me soon .
    Thanks,
    M.Sohail Tai

  • Oracle 6i Formula Column

    Hi Techies,
    I have an Oracle 6i report which has a parameter form. It takes the argument Contract_Num as an input. Based on the value of the Contract_Num, a formula column displays a string.
    Now I dont want to use the parameter form. I have simply modifed my report group query. I get all the contract_num in the output but the respective string is not displayed as I dont input any Contract_Num in the parameter form. The Formula Column always returns NULL in the all the pages.
    Please advise on how to pass the contract_num to the Formula Column to display the respective string in each page.
    Thanks
    Sri

    Hi Sri,
    As you said you have modified your query, you can directly bind the variable in the formula column as
    : (your variable).
    If your formula is outside your report group. Please place your formula column within that record group and try.

  • Report Formula Column

    Hi All,
    I need a help from you. I am working with reports. There I want to add 2 columns from two different groups from reports. It is like
    GroupA
    CF_1
    GroupB
    col1
    GroupC
    col2
    GroupB and GroupC are linked by GroupA. Now I want to add col1 & col2 in CF_1 (formula column)
    Message was edited by:
    user613911

    You'd better post this thread in (Reports Forum):
    Reports
    Greetings...
    Sim

  • Using PL/SQL in a formula column in Oracle Reports Builder.

    Hi,
    I need to SUM two record from the result of an SQL interrogation.
    Here's what it looks like
    function CF_1Formula return Number is
    nTot1 NUMBER :=0;
    nTot2 NUMBER :=0;
    begin
         select sum(:TOT1) into nTot1 from table(Q1) ;
         select sum(:TOT2) into nTot2 from table(Q1) ;
         return (nTot1 + nTot2);
    end;I'm kind of new to formula column programming any link of interest would be appreciated.
    The from table(Q1) part Q1 represents my SQL interrogation name and the group below it is G_MAIN.

    Hi Hong Kong King Kong,
    From looking at that function name (and the group name): Is this an Oracle Reports generated function?
    If so, there's also a dedicated Reports forum: Reports
    By the way, I like your synonym for 'query'.
    I'm sure I'll confuse some of my collegues tomorrow when I will mention 'database interrogation' instead of 'query'. ;)
    edit
    Doh...I should not underestimate the information that is posted in thread subjects.
    Edited by: hoek on May 5, 2010 9:24 PM

  • About formula column in oracle report

    I want the output value of the formula column in my report between two brackts ....ex: (28.99) ...can anyone give me the idea

    Do u mean that brackets have to be appeared only when the value is +ve/-ve. then you need to use (9999) in the format mask of the property pallette of the text column. if you want to use the brackets for all the data, then the solution has been provided by many of our frnds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Report Checkbox Columns in CSV Export File are NULL

    Hi,
    Hoping someone can assist. Am using Oracle ApEx 3.0.1.
    I have a report that consists of a number of checkbox columns where I am using the Apex_Item.checkbox with a disabled attribute.
    My questions is, when I attempt to export this report to CSV format, the columns referring to the checkboxes are showing up as NULL/blank, even though I am using a 'Y' and 'N' for the checkbiox values.
    Any ideas on how to correct this issue?
    Thanks.
    Tony.

    Tony. With checkboxes you don't get a value while exporting. You can use this as an alternative:
    1. in the checkbox column properties put the following PL/SQL expression in the condition (expression 1 textbox):
    apex_application.g_excel_format = FALSE
    2. create a new column for your Y/N values and make it conditional - PL/SQL expression in the condition (expression 1 textbox):
    apex_application.g_excel_format = TRUE
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Formula Columns are not working in Reports 10g

    Hi,
    We converted the reports developed in Reports 6i to Reports 10g. When we run the report in Reports 10g Builder everything works fine. But when we deploy the same report in Oracle Application Server and invoking the report the formula columns are not working ie., the fields/ placeholder columns which are based on the formula column are not displaying any values in the report.
    Please, someone help us in this regard.
    Thanks & Rgds,
    M T

    What version of Reports do you use..???
    Greetings...

  • How to add a formula column in a report

    Hi
    I have made a report based on a query.
    There are 3 columns in the query and all the 3 are displayed.
    Now I want to add a new column (fomula column) to the report.
    I want to write a query inside the formula column. To execute the query col1, col2 and col3 values are required in the formula column.
    Could you please tell me how to add a formula column in the report and how to pass database column value to inside the formula column
    regards

    Here is how you would create a formula column:
    Open data model of the report.
    Formula column button is on the left side of the tool palette.
    Click on that button.
    Now click in the query group where you want to place the formula column.
    You would see a new field something like CF_1. That is the formula column.
    Double click on the field CF_1. It will open property inspector.
    You would see, Datatype of the formula column is Number. Change this as per your requirement.
    Double click on PL/SQL Formula property. It would open up a editor. Here you can write the code.
    And now to access the data model column here, you can use : and column name. i.e. :col1 or :col2, etc
    And remember you have to return the value back to the formula column. Like this: RETURN(some value).
    You can also take a help from here:
    http://download.oracle.com/docs/html/B13895_01/orbr_howto.htm#sthref1309
    Hope this helps.

  • REP-1425 report formula DO_SQL error putting value into column

    Hi all
    I have opened a report 2.5 in Oracle9i Reports Developer and, it converted ok. However, when I run the report (paper layout), the message
    rep-1425 report formula DO_SQL error putting value
    into column. Column may not be referenced by parameter
    triggers
    appears. There are several report level formula columns and corresponding placeholder columns that are the cause of this error. The formula has the following :
    SRW.DO_SQL('SELECT RPAD(''DAILY TABLE AUDIT REPORT'',60,''.'')||TO_CHAR(SYSDATE,''DD-MON-YYYY'') INTO :REPORT_TIT FROM DUAL');
    COMMIT;
    RETURN('');
    I can't work out what this error message really means as the column, report_tit is a placeholder column and, the formula column is not a parameter trigger!! The report_tit placeholder is used as a source for a layout field. I noticed that the layout field is defined as a placeholder column in the converted report but in the reports 2.5 version, it is defined as a layout field.
    I can do a work around by replacing the SRW.DO_SQL statement with a normal PL/SQL SELECT statement. However, I wonder if anyone else has had the same problem and, if anyone can help provide an answer as to what this error really means and, also, how I can retain the SRW.DO_SQL statement and/or an alternative work around to the one that I have described.
    Thanks.
    Therese Hughes
    Forest Products Commision

    Hi again
    The firewall proved to be the problem after all! The firewall set in Reports config-files is not used for WebServices, it has to be set within the stub:
    Properties prop = System.getProperties();
    prop.put("http.proxyHost","yourProxyServer");
    prop.put("http.proxyPort","youProxyServerPort");
    I inserted this in my java-code and after some problems (see below), restarting Report Builder turned the trick, the report works now.
    Cheers
    Tino
    Here there mail I set up before I found that restarting Report Builder helped:
    Thanks for your answer, putting in the proxy-settings actually helped some - the same error message is
    popping up, but instantly and not after 10 seconds like before:
    My proxy lines look like this, I also tried "http://proxy.ch.oracle.com", but "proxy.ch.oracle.com" proved to
    be the correct syntax:
    public Float getRate(String country1, String country2) throws Exception
    Float returnVal = null;
    Properties prop = System.getProperties();
    prop.put("http.proxyHost","proxy.ch.oracle.com");
    prop.put("http.proxyPort","8080");
    URL endpointURL = new URL(endpoint);
    Call call = new Call();
    I tested the new proxy-entries by disabling the proxy preference in JDeveloper, so I could verify the added
    proxy-lines in the code work - they do. If I change the proxy to some incorrect value like
    "proxyy.ch.oracle.com", they fail.
    After unsuccessfully trying recompile and re-import of Java classes, I rebuild the report from scratch and
    stumbled over the same problem. Now the question is, whether I'm still doing something wrong with the
    proxy or whether there is another problem after passing the firewall....
    -------------------------------------------------------------------------------------------------------------

  • Formula Column in Report 9i Builder

    Hi,
    I use this configuration
    Report Builder 9.2.0.1.0
    Windows XP Service Pack 1
    NLS_LANG "BRAZILIAN PORTUGUESE_BRAZIL.WE8ISO8859P1"
    When I try to create a formula column that returns number, I have to choose datatype 'Nu'mero' (with accented u)as this is the only avaiable in the combo box. However when I write this PL/SQL code for the column:
    function CF_17Formula return Number is
    begin
    RETURN(1);
    end;
    Reports gives me the message:
    REP-0737: Deve ser uma funcao com retorno do tipo 'nu'mero'.
    In English this message could be
    REP-0737: Should be a function with return type 'nu'mero'.
    I don't have this problem with Character or Date formula columns (these datatypes are called Caracter and Data in Portuguese).
    It seems that Reports is having problems with u' (accented u) character. If I change NLS_LANG to AMERICAN_AMERICA.WE8ISO8859P1 everything works fine because I can choose Number in the Formula Column Datatype in the Property Inspector.
    The problem is in the function declaration not in the Return statement.
    Could anyone help me? Tks.
    Edmar

    Edmar,
    You are right. I could reproduce this issue.
    I have filed a bug to fix it from the development in next patch
    Thanks
    The Oracle Reports Team

  • Report Builder chrashes when creating a new formula column

    Dear all,
    whenever I try to create a new formula column in the data model, that is placed outside of a query, my report builder crashes completely. The same happens on my colleagues notebook.
    If anyone has an idea why this could happen, please let me know. I am currently using Version 9.0.4.1.0.
    Thanks and br
    Daniel

    You can keep the report builder you have now. Just install the new one in new oracle home. You can download it from here
    http://www.oracle.com/technology/software/products/ids/htdocs/904winsoft.html
    This download has Developer Suite 10g (Report 9.0.4.0.33, Form 9.0.4.0.19, JDeveloper, Discoverer, Designer)
    I don't think so you can select which product you want to install, like it was in 6i. So it will install everything.
    Try to install this version. Hope this will help.
    Thanks
    FS

  • Formula column in XML publisher report

    Hi
    I need to include formula column in my XML publisher report,
    please any one guide me on this.
    Thanks in advance

    You can see this , it may helping you
    http://oracle.ittoolbox.com/groups/technical-functional/oracle-dev-l/formula-columns-in-xml-publisher-2593437

  • I am unable to get order by column name in oracle report parameter form

    i created query like following in query builder
    SELECT CASE_NO, COURT_ID, CASE_TYPE,
    INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
    INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
    NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
    INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
    DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
    LEGAL_FILE_NO, MSNO
    FROM L_CASE_MASTER_MAIN
    WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
    and i created parameter form for these two bind variables :P_NHD,:P_COL
    in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN'  to get all the columns.
    in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
    kindly let me know the solution
    Report Version :Oracle Reports 11g
    Db Version:Oracle  11g

    Hi,
    Ordering the column first takes place from the Data Model Itself.
    Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
    Remove your order by in query...
    If any issues... let me know
    Regards,
    Soofi

  • Formula Column in Report template

    I have a report template to use in all the report. I want to have a formula column on it to take a control value(location/Organization) where the report is being printing. Is it possible to have a formula column in a report template? if it possible how can I do it? otherwise how can i achieve this task?
    Thank in advance
    Muza.

    What is the application release?
    Can you find any details about the error in the OPP log file?
    Please search MOS website for "Cannot view XML input using XSL style sheet" and go through the docs.
    Thanks,
    Hussein

Maybe you are looking for

  • Problem in the "select" query....Just check out and help me

    Hi there !! I am getting the following errors while trying to execute the "select" query from JSP page: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state My code is : String reg_no=(String)session.getAttribute("reg_no"); Re

  • How do I get songs I purchased on a different computer to my IPOD?

    I mainly use my home computer when downloading itunes to my ipod. I have my office computer set up as an authorized computer also. I have downloaded songs into my office computer but they will not show up on my ipod. How can I get them on there? I am

  • Report Engine does not increase when there is a large no of reports queue

    Hello Everybody, Specifications: Product : Oracle Application Server Forms and Reports Services 10.1.2.0.2 OS : Windows 2003 R2 Server Dual Core CPU 2600MHz 6 GB RAM We are doing the sizing for our reports server. We have specified the following in o

  • IMP80 and Oracle 8i Lite

    Hello, Does anybody know how to import data from a .dmp file into 8i Lite? I've tried using the imp80 and exp80 tools but I got an error that the import/export views were not installed in the database. Thanks in advance. Brian

  • Can i use oracle 7.3 drivers against oracle 8 database.

    When i'm executing a stored procedure with 8i driver i'm having a problem saying "Cannot Save or Rollback in distributed transaction". But when i use oracle 7.3 drivers i'm not having any problem.My question is , Can I use oracle 7.3 dirvers with ora