Scope of a placeholder column in Oracle Reports 6i

Hello,
I was under the impression that a placeholder was more like a global variable, i.e., it's accessible throughout the report if defined independently, outside of any group in the layout model?
Well, I am getting this error:
REP-1248 all source columns of placeholder must be in the same group.
Is my understanding incorrect? I really need to have a "global" type variable that's accessible across all groups in the report. How shall I go about it? Please advise.
Regards,
Smita

Thanks, but the link didn't help me. Basically, this is the situation:
First, I have a placeholder column independent of any group in the report, which I am trying to access and use as a global variable across multiple groups in the report.
There is a parent group with two child groups. The first child group has a summary columm. I assign the summary column's value to the placeholder column inside a formula column.
In the second child group I decrement the placeholder column's value by one for every record processed in this group inside a formula column. When the placeholder column's value reaches 0, I am doing something in the format trigger on the frame associated with the second child group.
...and I get this error:
REP-1248: All source columns of placeholder 'CP_NumLinesLeft' must be in the same group.
So the placeholder column is really not behaving like a global variable. Please advise as to how I should get around this problem.

Similar Messages

  • 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

  • Need urgent help how show my placeholder column in my report

    hi master
    sir
    i use report 6i
    i am making report with useing emp table i report i need one formula column and one placeholder column i
    first i mad report by useing report wizard
    after this i go in data modul and select one placeholder column and one formula column i write pl/sql
    :cp_1 := :sal;
    again run wizard and move
    placeholder column and one formula column
    in display item
    but when i run the report give me this error
    rep-1517 column 'cf_1' reffrence column 'sal' which is incompatible frequency
    please give me idea how i print my formula result in report
    thanking you
    aamir
    how show placeholder column in my report

    Hi,
    First create a formula column eg CF_1.
    Then create a placeholder column eg CP_1.
    Write a code in CF_1.
    [eg
    select bolFrValid into :CP_1 from tablename where condition;
    return :CP_1;
    Hope u got it

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

  • Is this Oracle Reports bug – "break order property" in "group above" report

    Is this Oracle Reports bug – “break order property” in "group above" report
    Could anybody confirm that in "group above" report, we could only order the brake column's values with ""none" or "ascending" or "descending" provided by "break order property"?
    In the following example, “Dept” is brake column. Oracle Reports allows us to order values in “Dept” with “descending” provided by “break order property”:
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    or “ascending” provided by “break order property”:
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    I need to do:
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Could I do this? Could anybody confirm that we could never ever do this, or If yes, how?
    Millions of thanks for advice.
    M.Z.
    Edited by: jielan on Sep 18, 2010 8:23 AM

    Why should that be a bug? You have a custom requirement and have to find a way to fulfill it. But, what is your actual sorting order? Do you have only this three departments? If so, you could add an addtional column in your query like
    DECODE(DEPT,  20, 1, 10, 2, 30, 3, 4) SORTINGput that column in the same group as dept and sort after that new column.

  • 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

  • How to order / group a report by a placeholder column ?

    How to order / group a report by a placeholder column populated by the group filter ?
    In more detail .....
    My Data model editor's select statement brings back (say 1000 rows) from the database.
    The group filter decides (on performing certain validations) whether to print a row or not in the report.
    Additionally the group filter calculates a "rule type" (just a rule number to say on basis of what rule, the row was selected)
    I would like to order/group the report on the placeholder column which was calculated by the group filter ?
    Obviously, I won't be able to add the "ORDER BY :CP_RULE_NUMBER" in the sql statement as the placeholer column cp_rule_number
    is determined by the group filter level only. (If I do, I get a frequency error)
    Any ideas ?
    Thanks in advance.
    Edited by: user553361 on 8/10/2008 17:35

    how is the group filter implemented?
    If its pure PL/SQL, what about putting the filter-procedure in a stored function into the database? Then you could use the group filter in your query.

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

  • Oracle report problem-Passing a column value from a query block to another

    Hi I am facing a problem in oracle reports.
    I have 3 query blocks say Q1,Q2 and Q3.
    From Q1 I get a tblkey coulmn and for each value of tblkey I need to pass it on to Q2 which gives me a status and now finally Q3 will take tblkey and status to give me final output.
    Can somebody please tell me how I can do it?
    Thanks,
    Avin

    Depending on your report requirement, you may do a join of Q1, Q2, and Q3; or keep all Qs and for Q3 use subqueries ...
    Select ... from ... where tblkey, status in (
    select tblkey, status from ... where tblkey in (
    select tblkey from .... where .... ) )
    Good luck.
    DC

  • Oracle Reports Column Width

    I have created a report and in the top margin I have put a report block that shows the parameters that were used to run the report. The problem that I am having is that one of the fields is being set to a maximum of 32 characters and I need it to be at least 100 characters because it is cutting off the list at 32 characters. I have tried to manually adjust the field using the paper layout but the width in the property inspector does not change and I can not change it myself. I am currently using Oracle Reports 10g. Any help would be greatly appreciate.

    You probably have a frame around your item which is set with a fixed width. Check if there is a frame around the item and make it variable horizontal.
    Note that there can be a frame around this frame also etc. Make sure this frame is expandable aswell.
    Marcos

  • Some issues in oracle Report need to resolved in BI Publisher

    Hi ,
    reallay i'm new in Bi Publisher technology (11g)
    and i have report bulit using ( oracle Reports Desginer)
    now i want to change to BI publisher
    but some issues faces me
    like
    1- Formula Columns
    2- PlaceHolder
    3- Format trigger
    4- Blob data type store images --> how to show the image
    5- Lexical Parameters ( ex : &p_where)
    i don't like to use converter i want to make new report in BI Publisher
    how can i solve these issues in Bi Publisher 11g .

    >
    i don't like to use converter i want to make new report in BI Publisher
    >
    you can try to convert oracle reports to bip and you'll see answer to some questions
    >
    how can i solve these issues in Bi Publisher 11g .
    >
    lets start from http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/index.html
    Some questions to BI-Publisher
    Some questions to BI-Publisher

  • How to use formula column,placeholder column in data template option

    Hi All,
    Can you some idea on these concept with example.
    Thanks in adv

    >
    formula column,placeholder column
    >
    it's oracle reports terms?
    http://oraclebizint.wordpress.com/2007/08/22/oracle-reports-to-bi-publisher-conversion-utility/
    http://eoracleapps.blogspot.ru/2009/04/how-to-convert-oracle-reports-in-bi.html
    so convert your oracle reports to bi publisher and you'll see mapping for your case

  • Query on PlaceHolder column

    Hi everyone,
    I am pretty new to oracle reports, if you think this question is too basic, please bear with me.I also tried searching the forum and looked into documentation. Why should we use a formula column to assign value to a placeholder column, why cant it be done directly in the plsql formula portion. Why does it not accept any return values in the plsql formula portion of the placeholder column, when i add the code, it acpets and gets compiled, but does not get reflected during runtime. Can someone help me ab this.
    Thanks
    Sandeep

    Formula and Placeholder columns work together to give a calculated or processed value. The formula column calculates or processes the data and then assigns the result to the placeholder column. Bit like in PL/SQL when you have a variable (placeholder col) being set by a function (Formula col).
    HTH!!

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • ORACLE reports Build 10g - Data Model - query - If statement in Alias ?

    I have the following select statement. It has the alias Survivors, Deaths and "All
    With the ORACLE reports Build 10g - Data Model - I have the following query statement. I require the alias to change. Can the following be done.
    Cases". Is it posible to use :P_LANGUAGE variable to say that -- IF :P_LANGUAGE = FRENCH THEN alias are Survivants for survivors, Décès for Deaths, Tous_les_cas for All Cases. Please advise
    SELECT ALL T_NTR_MULTIBAR.CAT, T_NTR_MULTIBAR.NUM_CASES_LEFTBAR AS Survivors,
    T_NTR_MULTIBAR.NUM_CASES_MIDDLEBAR AS Deaths, T_NTR_MULTIBAR.NUM_CASES_RIGHTBAR AS "All Cases"
    FROM T_NTR_MULTIBAR
    WHERE INSTANCE_NUM = :P_INSTANCENUM
    order by ORDERS

    It is no problem, you can automatically change the complete query before the report is running, which delivers you different kind of values. But the alias names does not change in the group of the data-model, although two query are running with different alias names at different times. In the data model you see the alias names of the first implemented select statement, which are the column fields in the layout.

Maybe you are looking for

  • PE 7 memory and export errors

    In Premiere Elements ver 7, I have put together a 4 1/2 minute video made up of mpeg4 HD 720p mixed with regular avi digital footage. I am having memory errors and export errors when trying to render into a wmv or mpeg file.  When working on previous

  • Mac Pro w/ Quadro FX 4500 not sending 1080p signal

    Hi, I've got a Mac Pro with an nVidia Quadro FX 4500 video card and I'm having a lot of difficulty getting OS X to send a 1080p signal to my high-end Sanyo PLV-HD10 projector via DVI. When I say 1080p, I mean 1920x1080 in progressive (non-interlaced)

  • Standard Setup - External IP Update via email?

    I have an iMac G5 with OS X Server 10.5.6 everything stock here and working great. I have it setup as a standard server... offering only the most basic things like file and printer sharing. Is there any setting or and application that will notify via

  • FedAuth cookie not geneatred in SP2013 with SiteMinder as Trusted Identity Provider

    Hello, We have configured Site Minder (with SAML 1.1) as trusted identity provider in SP2013. We have mapped  Email Address as claim type. But we found in Fiddler that FedAuth cookie is not getting generated so users are not able to access the site a

  • Browsers processor hungry?

    Hi there, I have iStat installed on my menubar, so I can monitor processor activity easily. I have noticed some strange behaviour whilst using browsers, and wonder if any users here can provide an explanation. I have done a search on the forum and ca