Bad Bind Varaibles in FORMULA COLUMN

Hi ,
i am using reports6i. i wanna use formula column.in my layout editor i had two columns named total(cashamt)
and total(creditcardamt).ie f_cashcard and f_creditcardamt.these both bears total of cashamt and creditcard respectively.now i wanna make total of these tow columns,when in formula column.. i write a function..
function ....
temp number;
begin
temp:=:f_cashamt+:f_creditcardamt;
return(temp);
end;
IT GIVES AN ERROR bad bind variables f_cashamt and f_creditcardamt.but these two are in layout editor..
pls help me as soon as possbile.
Thanx in advance..

Hello,
Try using the source of the field, rather than the name of the field. You can find the source in the layout editor. Click on the field and then press your F4 key. The properties of that field will come up. Find the source name and use the source name in your formula. Hope this helps.
Martin

Similar Messages

  • How to use a Formula Column in the main query?

    Hi All,
    I've tried to use a formula columns defined in some query in the condition of that query like this:
    where (:cf_ex - :cf_ex2) >= 5
    but when I run the report no data returned! Why? and how to use it the condition of the query?
    Note: I'm using Forms 6i

    where (:cf_ex - :cf_ex2) >= 5You cannot do that. Formula columns are not part of the select statement (which runs in the database), but are processed in the report.
    When you created this query, my guess is that you got the message "Note: the query Q1 has created the bind parameter(s) cf_ex, cf_ex2". Check these User Parameters in your data model. So, you are actually referencing user parameters in the query, not formula columns.
    I made a computations and things using PL/SQL that can't be done in the select statement in the data model!If it's pl/sql you can probably use that in your query. Create some database functions for cf_ex and cf_ex2 and use these in your query.

  • 'Error 49 bad bind variable' error message.

    When I copied a form that has been working from our Linux server to my PC and compiled it, I received many error messages like this in several procedures, functions and triggers:
    “Error 49 at line 69, column 10, bad bind variable ‘edit_Dealer.corporation’
    Does anybody know why this is? As I said, the app works for the end user from the Linux server.
    Thank You.

    Does the form you copied have any attached libraries or subclassed objects? If so, did you copy the Library and Object source files to your PC as well? If you copied these supporting files already, are they in a directory location that is part of your FORMS_PATH?
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Bad Bind Variable

    Hi friend,
    I do want to use a trigger to update a varchar2 value:
    create or replace trigger WORK_STITCH_NAME_TRIG
    after insert or update on ASS_WORK_STITCH
    for each row
    declare
    NAME VARCHAR2(100);
    begin
    if inserting then
    select ENAME into NAME from UAMRIS.WORDER where OID=:new.OID;
    update UAMRIS.WORDER
    set ENAME=(:new.NAME)
    where OID=:new.OID;
    end if;
    end ;
    but it gives me error as ':New.Name' bad bind variable.
    Can someone help me out with this plz!
    Thanks,
    Zeeshan

    user526055 wrote:
    You correction in the trigger created correctly but it is not making any changes to the worder table!If you read my last reply, that was exactly what I said. Now Centinul could be right. Do you have column NAME in triigering table and you want to update WORDER table with column NAME new value? If so, you do not need PL/SQL variable at all:
    create or replace trigger WORK_STITCH_NAME_TRIG
    after insert or update on ***_WORK_STITCH
    for each row
    begin
    if inserting then
    update UAMRIS.WORDER
    set ENAME=:new.NAME
    where OID=:new.OID;
    end if;
    end ;
    / SY.

  • Bad Bind Variable? I'm trying to make a host variable!

    Okay, so I've declared a global variable:
    VARIABLE g_total NUMBER
    and I want to use this variable to hold the results of a stored procedure (I minimized my code to focus on the problem area):
    CREATE OR REPLACE PROCEDURE my_procedure
    (p_price IN m_movies.price%TYPE
    p_quantity IN m_cart.quantity%TYPE)
    IS
    BEGIN
    :g_total := p_price * p_quantity;
    DBMS_OUTPUT.PUT_LINE('Order total is: '||:g_total);
    END;
    After all this, I get an error "bad bind variable g_total" for both lines I'm using it inside the procedure. What the heck is a bind variable? I'm using a host variable! (I think). Does this have anything to do with the fact that I can only assign a very generic NUMBER datatype to the host variable? Please help!

    Hi,
    Maybe the problem is in other place, because the code works fine (I commented column types because I don't have these tables):
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL>
    SQL> VARIABLE g_total NUMBER;
    SQL> DECLARE
      2     PROCEDURE my_procedure(p_price    IN NUMBER /*m_movies.price%TYPE*/,
      3                            p_quantity IN NUMBER /*m_cart.quantity%TYPE */) IS
      4     BEGIN
      5        :g_total := p_price * p_quantity;
      6        DBMS_OUTPUT.PUT_LINE('Order total is: ' || :g_total);
      7     END;
      8  BEGIN
      9     my_procedure(p_price    => 2,
    10                  p_quantity => 3);
    11  END;
    12  /
    PL/SQL procedure successfully completed
    g_total
    6
    SQL> Regards,

  • Bad bind variable error on creating trigger

    hi
    im trying to create a trigger on a table in Oracle and I keep gettin this error:
    PLS-00049: bad bind variable 'NEW.ID'
    TeamID is a primary Key, it creates the sequence fine, but i get the error on the create trigger,
    CREATE TABLE TBLTEAMS
    TEAMID NUMBER(5),
    NAME VARCHAR2(50 BYTE),
    MANAGER VARCHAR2(50 BYTE),
    COSTCENTRE NUMBER(9),
    PARENTTEAMID NUMBER(5)
    create sequence seq_Teamsautonumber;
    create trigger trg_Teamsautonumber
    before insert on tblteams
    for each row
    begin
    select seq_Teamsautonumber.nextval into :new.id from dual;
    end;
    any ideas?

    You have said
    :new.idthat means you are trying to load the sequence value into a column that doesn't exist in your table.
    you would need to use
    :new.teamidAssuming you are trying to auto-populate the TEAMID column on your table.

  • PLS-00049: bad bind variable 'IN_DPC_CODE'

    Hi,
    I am gettig following errors while creating a stored procedure. please help me.
    BEGIN
    EXECUTE IMMEDIATE sql_stmt
    INTO OUT_ROWNUM, OUT_DPC_CODE_ORIG, OUT_SENSOR_ID, OUT_HEADER_DATE,OUT_FIRST_BLOCK_NUMBER, LAST_BLOCK_NUMBER, OUT_RECORD_QUANTITY,OUT_FILE_ID, OUT_FILE_NAME, OUT_TRACE_SEQUENCE_NO, OUT_TRAILER_DATE, OUT_PROCESSED_DATE, OUT_ROW_NUMBER
    USING :IN_DPC_CODE, :IN_SENSOR_ID, :IN_TRAILER_DATE, :IN_LAST_BLOCK_NUMBER;

    Hi,
    Here i am sending total code. Please suggest me accordingly.
    After executing this i am getting following errors.
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00905: object NRUPWEIS.TAB_SELECT is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL> show errors
    Errors for PROCEDURE TAB_SELECT:
    LINE/COL ERROR
    92/19 PLS-00049: bad bind variable 'IN_DPC_CODE'
    92/33 PLS-00049: bad bind variable 'IN_SENSOR_ID'
    92/48 PLS-00049: bad bind variable 'IN_TRAILER_DATE'
    92/66 PLS-00049: bad bind variable 'IN_LAST_BLOCK_NUMBER'
    116/3 PLS-00103: Encountered the symbol "END"
    code:
    -- -- Input parameters:
    -- -- ALBQ 602071 20050913153100 53290
    -- -- exec tab_select('ALBQ', '602071', '053290', '20050912153100')
    -- CREATE or REPLACE PROCEDURE tab_select IS
    -- type curTyp is ref cursor;
    -- tab_cv curTyp;
    CREATE or REPLACE PROCEDURE tab_select (IN_DPC_CODE IN CHAR, IN_SENSOR_ID IN NUMBER, IN_LAST_BLOCK_NUMBER IN NUMBER,
    IN_TRAILER_DATE IN CHAR) IS
    sql_stmt varchar2(2000);
    sql_stmt2 varchar2(2000);
    IN_DPC_CODE CHAR(4);
    IN_SENSOR_ID CHAR(6);
    IN_TRAILER_DATE CHAR(14);
    IN_LAST_BLOCK_NUMBER number;
         OUT_ROWNUM number(8) := 0;
    OUT_DPC_CODE_ORIG CHAR(4);
    OUT_SENSOR_ID CHAR(6);
    OUT_HEADER_DATE CHAR(14);
    OUT_FIRST_BLOCK_NUMBER number(9) := 0;
    OUT_LAST_BLOCK_NUMBER number(9) := 0;
    OUT_RECORD_QUANTITY number(8) := 0;
    OUT_FILE_ID CHAR(10);
    OUT_FILE_NAME CHAR(30);
    OUT_TRACE_SEQUENCE_NO number(5) := 0;
    OUT_TRAILER_DATE CHAR(14);
    OUT_PROCESSED_DATE CHAR(14);
    OUT_ROW_NUMBER number(8) := 0;
    BEGIN
    DBMS_OUTPUT.DISABLE;
    DBMS_OUTPUT.ENABLE(1000000);
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** BEFORE sql_stmt Line: ' || ' ' ||
    IN_DPC_CODE || ' ' ||
    IN_SENSOR_ID || ' ' ||
    IN_TRAILER_DATE || ' ' ||
    IN_LAST_BLOCK_NUMBER);
    DBMS_OUTPUT.PUT_LINE('**** ' );
    sql_stmt := 'SELECT rNum, dpcCode, sID, hDate, fBlock, ' ||
    'lBlock, recQty, fID, fName, ' ||
    'tSeqNo, sType, tDate, fStatCode, pDate, recCount, r ' ||
    'FROM (SELECT rownum rNum, DPC_CODE_ORIG dpcCode, ' ||
    'SENSOR_ID sID, ' ||
    'to_char(HEADER_DATE, ''YYYYMMDDHH24MISS'') hDate, ' ||
    'FIRST_BLOCK_NUMBER fBlock, ' ||
    'LAST_BLOCK_NUMBER lBlock, ' ||
    'RECORD_QUANTITY recQty, ' ||
    'FILE_ID fID, ' ||
    'substr(FILE_NAME,1,30) fName, ' ||
    'TRACE_SEQUENCE_NO tSeqNo, ' ||
    'SENSOR_TYPE sType, ' ||
    'to_char(TRAILER_DATE, ''YYYYMMDDHH24MISS'') tdate, ' ||
    'NVL(FILE_STATUS_CODE, ''NL'') fStatCode, ' ||
    'to_char(PROCESSED_DATE, ''YYYYMMDDHH24MISS'') pDate, '||
    'NVL(RECIRCULATE_COUNT, 0) recCount, ' ||
    'ROW_NUMBER() ' ||
    'OVER(ORDER BY LAST_BLOCK_NUMBER, TRAILER_DATE) r ' ||
    'FROM logfc10t ' ||
    'WHERE DPC_CODE_ORIG = :IN_DPC_CODE ' ||
    'AND SENSOR_ID = :IN_SENSOR_ID ' ||
    'AND (((TRAILER_DATE >= TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS''))' ||
    'AND (LAST_BLOCK_NUMBER > :IN_LAST_BLOCK_NUMBER)) ' ||
    ' OR (TRAILER_DATE > TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS'')))) ' ||
    'WHERE r = 1 ';
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** BEFORE execute immediate Line: ');
    -- p(sql_stmt);
    -- Put_Xl_line(sql_stmt);
    DBMS_OUTPUT.PUT_LINE('**** ' );
    BEGIN
    EXECUTE IMMEDIATE sql_stmt
    INTO OUT_ROWNUM, OUT_DPC_CODE_ORIG, OUT_SENSOR_ID, OUT_HEADER_DATE,
    OUT_FIRST_BLOCK_NUMBER, OUT_LAST_BLOCK_NUMBER, OUT_RECORD_QUANTITY,
    OUT_FILE_ID, OUT_FILE_NAME, OUT_TRACE_SEQUENCE_NO, OUT_TRAILER_DATE,
    OUT_PROCESSED_DATE, OUT_ROW_NUMBER
    USING :IN_DPC_CODE, :IN_SENSOR_ID, :IN_TRAILER_DATE, :IN_LAST_BLOCK_NUMBER;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** IMMED ' || sqlcode || ' ' || substr(sqlerrm,1,200));
    DBMS_OUTPUT.PUT_LINE('**** ' );
    END;
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** AFTER execute immediate Line: ');
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE ('*** Next Line: ' || OUT_ROWNUM || OUT_DPC_CODE_ORIG || OUT_SENSOR_ID ||
    OUT_HEADER_DATE || OUT_FIRST_BLOCK_NUMBER || OUT_LAST_BLOCK_NUMBER ||
    OUT_RECORD_QUANTITY || OUT_FILE_ID || OUT_FILE_NAME ||
    OUT_TRACE_SEQUENCE_NO || OUT_TRAILER_DATE || OUT_PROCESSED_DATE || OUT_ROW_NUMBER);
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** ERROR ' || sqlcode || ' ' || substr(sqlerrm,1,200));
    DBMS_OUTPUT.PUT_LINE('**** ' );
    end;
    end tab_select;
    set serveroutput on
    exec tab_select('OMAN', '612628', '993610', '20070214141700')
    --exec tab_select('OMAN', '612628', '6434', '20070214144700')
    --exec tab_select('OMAN', '612628', '13098', '20070214150200')
    --exec tab_select('OMAN', '612628', '19874', '20070214151700')
    --exec tab_select('OMAN', '612628', '33398', '20070214154700')
    -- quit

  • [Error] PLS-00049 (6: 19): PLS-00049: bad bind variable 'NEW.T1NAM'

    1. create table t1
    (t1ID int,
    t1nam varchar2(33)
    2. create or replace view t1t2t3
    t1id, t1name, t2id, t2nam, t2cty, t2st, aid, aname, bid, bname, t3id, t3nam
    as
    select * from t1, t2, t1 a, t1 b, t3
    where t1.t1ID = t2.id(+)
    and T2.CTY = a.t1ID(+)
    and t2.sty = b.t1ID(+)
    and t1.t1ID = t3.t3id(+)
    3. CREATE OR REPLACE TRIGGER t1t2t3
    INSTEAD OF INSERT or update
    ON t1t2t3
    BEGIN
    insert into t1
    values(:new.t1ID, :new.t1nam);
    END t1t2t3;
    Get error:
    [Error] PLS-00049 (6: 19): PLS-00049: bad bind variable 'NEW.T1NAM'
    Pls advise. I am using Toad.
    Thanks.

    tnam1 not belongs to t1t2t3.
    :new should be used to te columns of the table on which you are writing the trigger.
    Here i think t1t2t3 has t1name field you have to use :new.t1name instead of :new.t1nam(which belongs to table t1)

  • Wat is wrong in this formula column pls help me..

    wat is wrong in this formula column pls help me..
    function CF_BEGIN_BALFormula return Number is
    cr number;
    dr number;
    begin
         select begin_balance_cr,begin_balance_dr into cr,dr from gl_balances
         where gl_balances.period_name=:from_period
    and gl_balances.code_combination_id= :ccid;
    if ( abs(CR) > abs (DR) ) then
    return nvl((CR - DR ) , 0) ;
    else return nvl((DR - CR ) , 0) ;
    end if;
    end;

    Without any error message, it's guess work, but one thing - where do you expect those bind variables will come from?
    FUNCTION cf_begin_balformula
       RETURN NUMBER
    IS
       cr   NUMBER;
       dr   NUMBER;
    BEGIN
       SELECT begin_balance_cr, begin_balance_dr
         INTO cr, dr
         FROM gl_balances
        WHERE gl_balances.period_name = :from_period
          AND gl_balances.code_combination_id = :ccid;
       IF (ABS (cr) > ABS (dr)) THEN
          RETURN NVL ((cr - dr), 0);
       ELSE
          RETURN NVL ((dr - cr), 0);
       END IF;
    END cf_begin_balformula;

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

  • 10/15    PLS-00049: bad bind variable 'NEW.MEMBER'

    I have created a view based on 2 tables called member and account which works fine i am then trying to create a trigger to update my member view as
    create or replace trigger member_view_update
    Instead of update on member_view
    for each row
    begin
         update member set
         last_name = :new.last_name,
         first_name =:new.first_name,
         manager_number= :new.manager_number,
         title=:new.title,
         address=:new.address,
         telephone_1 =:new.telephone_1,
         post_code=:new.post_code,
         where rowid= :new.member.rowid;
         update account set account_balance=:new.account_balance
         where rowid=:new.account_rowid;
    end;
    But this has the following errors
    LINE/COL ERROR
    2/2 PL/SQL: SQL Statement ignored
    10/2 PL/SQL: ORA-01747: invalid user.table.column, table.column, or
    column specification
    10/15 PLS-00049: bad bind variable 'NEW.MEMBER'
    View code
    Create or replace view member_view as
    select member.rowid member_rowid,
    member.member_number,last_name, first_name, manager_number, title, telephone_1, address, post_code,
    account.rowid account_rowid,
    account_balance
    from member, account
    WHERE MEMBER.MEMBER_NUMBER = ACCOUNT.MEMBER_NUMBER

    Hello,
    I think that you have to replace
    where rowid= :new.member.rowid;By
    where rowid= :new.member_rowid;Francois

  • Trigger Bad Bind Value Auto Increment

    I am new to the Oracle world and am trying to make the switch from MySQL so my apologies if this seems like a silly question.
    I am trying to figure out what is wrong with my trigger code. Basically , I am trying to create an auto-increment solution using some example code I found on the Internet.
    I have a fairly simple table structure:
    CREATE TABLE "CIMS"."computerSoftware"
    ( "computerSoftware_id" NUMBER(11,0),
    "cid" NUMBER(11,0) DEFAULT 0 NOT NULL ENABLE,
    "publisher" VARCHAR2(100 CHAR) DEFAULT NULL,
    "name" VARCHAR2(100 CHAR) DEFAULT NULL,
    "version" VARCHAR2(100 CHAR) DEFAULT NULL,
    "serialNumber" VARCHAR2(100 CHAR) DEFAULT NULL,
    "unlimited" NUMBER(4,0) DEFAULT 0,
    "copies" NUMBER(9,0) DEFAULT 1 NOT NULL ENABLE,
    "master" NUMBER(4,0) DEFAULT 0,
    PRIMARY KEY ("computerSoftware_id")
    My Trigger looks like this:
    CREATE OR REPLACE TRIGGER "CIMS"."TR_CompSoftware_ID"
    BEFORE INSERT ON CIMS."computerSoftware"
    REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    BEGIN
    IF (:new.computerSoftware_id IS NULL) then
    SELECT S_CompSoftware_ID.NEXTVAL
    INTO :new.computerSoftware_id
    FROM dual;
    end IF;
    END;
    And finally, here is my sequence:
    CREATE SEQUENCE "CIMS"."S_CompSoftware_ID" MINVALUE 1
    MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 10 NOORDER NOCYCLE
    When I try to save the trigger I receive the following error:
    PLS-00049: bad bind variable 'NEW.COMPUTERSOFTWARE_ID'
    Any help is much appreciated!
    Tom

    And, this is the way - you can rectify this problem ->
    satyaki>
    satyaki>drop table "computerSoftware";
    Table dropped.
    Elapsed: 00:00:00.92
    satyaki>
    satyaki>CREATE TABLE computerSoftware
      2  (  
      3      computerSoftware_id NUMBER(11,0),
      4      cid NUMBER(11,0) DEFAULT 0 NOT NULL ENABLE,
      5      publisher VARCHAR2(100 CHAR) DEFAULT NULL,
      6      name VARCHAR2(100 CHAR) DEFAULT NULL,
      7      version VARCHAR2(100 CHAR) DEFAULT NULL,
      8      serialNumber VARCHAR2(100 CHAR) DEFAULT NULL,
      9      un_limited NUMBER(4,0) DEFAULT 0,  -- Need to change the name of your column due to use of reserve word
    10      copies NUMBER(9,0) DEFAULT 1 NOT NULL ENABLE,
    11      master NUMBER(4,0) DEFAULT 0,
    12     constraints pk_cid PRIMARY KEY (computerSoftware_id)
    13   );
    Table created.
    Elapsed: 00:00:00.20
    satyaki>
    satyaki>
    satyaki>CREATE SEQUENCE S_CompSoftware_ID MINVALUE 1
      2  MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 10 NOORDER NOCYCLE;
    Sequence created.
    Elapsed: 00:00:00.05
    satyaki>
    satyaki>
    satyaki>CREATE OR REPLACE TRIGGER TR_CompSoftware_ID
      2  BEFORE INSERT ON computerSoftware
      3  REFERENCING OLD AS OLD NEW AS NEW
      4  FOR EACH ROW
      5  BEGIN
      6    IF (:new.computerSoftware_id IS NULL) then
      7        SELECT S_CompSoftware_ID.NEXTVAL
      8        INTO :new.computerSoftware_id
      9        FROM dual;
    10    end IF;
    11  END;
    12  /
    Trigger created.
    Elapsed: 00:00:00.98
    satyaki>
    satyaki>insert into computerSoftware(cid,publisher,name,version,serialNumber,un_limited,copies,master)
      2     values(1,'ABP','SR','1.0.0.1','1.4.3',88,7,9);
    1 row created.
    Elapsed: 00:00:00.14
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.05
    satyaki>
    satyaki>
    satyaki>select * from computerSoftware;
    COMPUTERSOFTWARE_ID        CID PUBLISHER                                                                                            NAME                                                                                                 VERSION                                                                       
                      1          1 ABP                                                                                                  SR                                                                                                   1.0.0.1                                                                       
    Elapsed: 00:00:00.05
    satyaki>Got me?
    Regards.
    Satyaki De.

  • CG$CTRL Bad Bind Variable error Migrating from Forms 4.5 to Forms 6

    Hi All,
    I have an old application deployed using Forms 4.5 runtime that I would like to migrate to the latest version of Forms.
    My intended migration path was Forms 4.5 -> Forms 6i -> Forms 10g.
    After successfully converting the source 4.5 .pll library files to Forms 6i by opening the files in the Forms 6i Forms Builder (6.0.8.25) and then saving the library files in the FORMS60_PATH I now encounter the following error that is hindering the migration process:
    Error 49 at line 6, column 3
    bad bind variable 'CG$CTRL.SE_CODE'
    I have read some other posts that mention Headstart Templates. Does anyone know if these CG$xxxx program units are part of Headstart? And if so, how can I get the Template files?
    Thanks in advance,
    Gary.

    CG$CTRL are cerated when the forms are developed using the designer...
    Oracle Forms requires that every item in a form must belong to a block, but these generated non-base table items are not associated with any module component. There is therefore no repository definition of a data block to which the generated items can belong.
    Form Generator resolves this situation by creating a control block to which the generated non-base table items can belong. The generated block is given the name CG$CTRL.
    The CG$CTRL block has no physical representation in the generated form and has none of the properties (e.g. block decoration) associated with generated data blocks. The CG$CTRL block is simply a logical object to which generated
    So try to find out in which form the above procedure /program unit is being called and then modify the pll accordingly....
    Rajesh Alex

  • Can we use formula column in lexical parameter in sql query ...

    hi
    can we use formula column in lexical parameter in sql query ...
    as example
    i want to give
    select * from & c_table
    forumula
    function c_table
    if :p_sort = 1 then
    return 'dept'
    else
    return 'emp'
    end;
    c_table formula column
    is this possible ...
    i have such example in oracle apps reports
    if i try in ordinary report usinf emp table it show error ..
    how we can give formula column...
    please help me in this regard...
    Edited by: 797525 on Feb 20, 2012 9:31 PM

    thanks sir,
    iam not exactly saying select * from &c_table but some thing that like columns in select stmt also will be populated in user_parameters ,there are lot of table select.......from     mtl_demand md,     mtl_system_items msi,     mtl_txn_source_types     mtst,     mtl_item_locations loc     &C_source_from &C_from_cat
    &c_source_from and &c_from_cat formula column and there are defined at report level only ......
    pl/sql code &c_source_from is
    function C_source_fromFormula return VARCHAR2 is
    begin
    if :P_source_type_id = 2 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id = 3 then return(',GL_CODE_COMBINATIONS gl');
    else if :P_source_type_id = 6 then return(',MTL_GENERIC_DISPOSITIONS mdsp');
    else if :P_source_type_id = 5 then
         if :C_source_where is null then
              return NULL;
         else
              return(',WIP_ENTITIES wip');
         end if;
    else if :P_source_type_id = 8 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id is null then
    return(',MTL_SALES_ORDERS      mkts,
    MTL_GENERIC_DISPOSITIONS mdsp,
    GL_CODE_COMBINATIONS gl ');
    else null;
    end if; end if; end if; end if; end if; end if;
    RETURN NULL; end;
    this is forumula column i hope that you understand what iam saying
    please help me in this regard....
    thanking you...

  • How to make an order on repeating frame using Formula Column?

    Hi All,
    I have a repeating frame dependent on some query, how to make an order on this repeating frame using a formula column defined in its group and dependet on values from the query?
    Note: I'm using Reports 6i

    Place your formula column at the top of the itm group and set the BREAK_ORDER to assc.. or desc...
    Hope this helps
    Hamid
    if problem solved, close the thread.

Maybe you are looking for

  • Opening Balance

    Hi, How do i get opening balance and closing balances in reports? where i have the time chars 0fiscper3 and 0fiscyear and the values for the 0fiscper3 are 1 to 16. Thanks, Venu.

  • How to open the popup with in Tab navigator  working area.

    Hi,           I using the customized  panel to open it as popup by using  popup manager in the Tab navigator . The popup should be able to  move with in the tab navigator's  content area. Not outside of the tab navigator's  content area. How to do th

  • "Net use" not working in application that runs as "system"

    Hello, I am trying to create an application object to distribute a program which during the setup procedure creates two local users on the workstation. I tried to set up the application to run as an unsecure system user and start the setup.exe. This

  • How to generate row numbering over several pages in PAGES??

    How can I generate row numbering over several pages in PAGES?? e.g. Page1 1-35 Page2 36-...

  • First page load issue in JDeveloper10g with R12 OAF

    Hi All, I have installed the JDeveloper 10g with OA Framework R12,when i run the page first time i am getting the following error after making all connections and assigning DBC file to the project. Exception Details. oracle.apps.fnd.framework.OAExcep