Query in Forms6.0

How to get more colors in forms6.0
as background .
There are a few colors provided but if we want to use the other colors ... How can we do that?
regards
satish

You may want to repost this question in the forms forum but before that you may also to search forms forum first to see if this question is already answered.

Similar Messages

  • Problem with a query in Forms6i

    Hello,
    hope someone can help me with this issue. I have a query like this:
    select c_id ,dat_tim,glo,utr
    from ce_pro
    where c_id IN ('X1200', 'X1210')
    and glo not like 'null' or utr not like 'null'
    group by c_id, dat_tim,glo, utr
    having dat_tim between '11-JAN-2001'
    and '29-JAN-2001'
    order dat_tim desc,c_id asc;
    If X1200 and X1210 have glo or utr like null, then this query give me other c_id(for example X909 and X880) values different from X1200 and
    X1210 because they have glo not like null or utr not like null.
    What I like to get is this:If X1200 and X1210 have glo and utr values like null, then my query shall only return X1200 and X1210 with glo and utr like null. It seems like the condition glo not like 'null' or utr not like 'null' decide the outcome of my query and not the condition c_id IN ('X1200', 'X1210'). Hope someone can help.
    Best Regards
    Roar

    Hello,
    thanks a lot for valuable suggestions related to my problem. Setting (glo IS NOT NULL OR utr IS NOT NULL) solved my problem.
    So again, thanks a lot.
    Regards
    Roar

  • Oracle Forms6i Query Performance issue - Urgent

    Hi All,
    I'm using oracle forms6i and Oracle DB 9i.
    I'm facing the performance issue in query forms.
    In detail block form taking long time to load the data.
    Form contains 2 non data blocks
    1.HDR - 3 input parameters
    2.DETAILS - Grid - Details
    HDR input fields
    1.Company Code
    2.Company ACccount No
    3.Customer Name
    Details Grid is displayed the details.
    Here there are 2 tables involved
    1.Table1 - 1 crore records
    2.Table2 - 4 crore records
    In form procedure one cursor bulid and fetch is done directly and assign the values to form block fields.
    Below i've pasted the query
    SELECT
    t1.entry_dt,
    t2.authoriser_code,
    t1.company_code,
    t1.company_ac_no
    initcap(t1.customer_name) cust_name,
    t2.agreement_no
    t1.customer_id
    FROM
    table1 t1,
    table2 t2
    WHERE
    (t2.trans_no = t1.trans_no or t2.temp_trans_no = t1.trans_no)
    AND t1.company_code = nvl(:hdr.l_company_code,t1.company_code)
    AND t1.company_ac_no = nvl(:hdr.l_company_ac_no,t1.company_ac_no)
    AND lower(t1.customer_name) LIKE lower(nvl('%'||:hdr.l_customer_name||'%' ,t1.customer_name))
    GROUP BY
    t2.authoriser_code,
    t1.company_code,
    t1.company_ac_no,
    t1.customer_name,
    t2.agreement_no,
    t1.customer_id;
    Where Clause Analysis
    1.Condition 1 OR operator (In table2 two different columbs are compared with one column in table)
    2.Like Operator
    3.All the columns has index but not used properly always full table scan
    4.NVL chk
    5.If i run the qry in backend means coming little fast,front end very slow
    Input Parameter - Query retrival data - limit
    Only compnay code means record count will be 50 - 500 records -
    Only compnay code and comp ac number means record count will be 1-5
    Only compnay code,omp ac number and customer name means record count will be 1 - 5 records
    I have tried following ways
    1.Split the query using UNIOIN (OR clause seaparted) - Nested loops COST 850 , Nested loops COST 750 - index by row id - cost is 160 ,index by row id - cost is 152 full table access.................................
    2.Dynamic SQL build - 'DBMS_SQL.DEFINE COLUMN .....
    3.Given onlu one input parameter - Nested loops COST 780 , Nested loops COST 780 - index by row id - cost is 148 ,index by row id - cost is 152 full table access.................................
    Still im facing the same issue.
    Please help me out on this.
    Thanks and Regards,
    Oracle1001

    Sudhakar P wrote:
    the below query its take more than one minute while updating the records through pro*c.
    Execute 562238 161.03 174.15 7 3932677 2274833 562238Hi Sudhakar,
    If the database is capable of executing 562,238 update statements in one minute, then that's pretty good, don't you think.
    Your real problem is in the application code which probably looks something like this in pseudocode:
    for i in (some set containing 562,238 rows)
    loop
      <your update statement with all the bind variables>
    end loop;If you transform your code to do a single update statement, you'll gain a lot of seconds.
    Regards,
    Rob.

  • Query,insert,update and delete in forms6i

    Hi
    i am new to forms6i, when i tried to update or delete the record it is giving error "FRM-40508 Oracle error: unable to insert record". when i hardcode the update statement it is executing fine. i have checked my sql statement at alert box, it is fine.
    is there any demo programes with insert, delete and update the database records. i have't find the these in forms6i demos. can refer some sites to check.
    thanks

    Hi,
    Before inserting be sure that you are in the correct block. Tables are tied to blocks. You can issue the code
    GO_BLOCK('insert blockname here');
    insert ...
    Hope this helps.
    Regards.
    Bob DJ

  • Query only for block forms6i

    dear sirs,
    I am using forms 6i
    and i have 3 blocks, and all i want to make these blocks for query only when another user access the form,
    pls help me
    thanks in advance
    yasser

    Will the blocks always be Query Only or only under certain circumstances?
    If always: set the I nsert, U pdate and D elete Allowed Properties to 'No' for each block in the Object Navigator.
    If under certain circumstances, then when you test for the condition use the Set_Block_Property() built-in to set these block properties. For example:
    BEGIN
       IF ( your condition is TRUE ) THEN
          Set_Block_Property('BLOCK1', I NSERT_ALLOWED, Property_False);
          Set_Block_Property('BLOCK2', I NSERT_ALLOWED, Property_False);
          Set_Block_Property('BLOCK3', I NSERT_ALLOWED, Property_False);
          Set_Block_Property('BLOCK1', U PDATE_ALLOWED, Property_False);
          Set_Block_Property('BLOCK2', U PDATE_ALLOWED, Property_False);
          Set_Block_Property('BLOCK3', U PDATE_ALLOWED, Property_False);
          Set_Block_Property('BLOCK1', D ELETE_ALLOWED, Property_False);
          Set_Block_Property('BLOCK2', D ELETE_ALLOWED, Property_False);
          Set_Block_Property('BLOCK3', D ELETE_ALLOWED, Property_False);
       ELSE
          Set_Block_Property('BLOCK1', I NSERT_ALLOWED, Property_True);
          Set_Block_Property('BLOCK2', I NSERT_ALLOWED, Property_True);
          Set_Block_Property('BLOCK3', I NSERT_ALLOWED, Property_True);
          Set_Block_Property('BLOCK1', U PDATE_ALLOWED, Property_True);
          Set_Block_Property('BLOCK2', U PDATE_ALLOWED, Property_True);
          Set_Block_Property('BLOCK3', U PDATE_ALLOWED, Property_True);
          Set_Block_Property('BLOCK1', D ELETE_ALLOWED, Property_True);
          Set_Block_Property('BLOCK2', D ELETE_ALLOWED, Property_True);
          Set_Block_Property('BLOCK3', D ELETE_ALLOWED, Property_True);
       END IF;
    END;Hope this helps,
    Craig
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Apr 5, 2011 2:01 PM

  • ORA-00164 Autonomous and Distributed Transactions in Oracle 8i - Forms6i

    Hi, in Forms6i I'm using Autonomous transactions (insert and update), and I want to use also a database link to make a query in a remote database (Distributed transaction). Even when this request are done in different PL/SQL within Forms6i, I get the error message ORA-00164 Distributed transactions disallowed within autonomous transactions. Is there a way to avoid this error message?
    Thanx

    Hello,
    I had a similar Problem, when I tried to log errormessages while selecting by db-link.
    I use pipes now to send the errormessages. The pipe is read at regular intervals and then I can Insert without using autonomous transactions.
    I hope, this will help you
    Marcus

  • Open cursor for a dynamic query

    Hi,
    I'm using forms6i and db 10g
    I want to create a procedure like below
         PROCEDURE pop_cursor (generic_cur IN OUT gencurtyp, querystring varchar2) IS
         BEGIN
              OPEN generic_cur FOR querystring;
         END;where generic_cur is a Ref Cursor and querystring will contain a query statement like 'select col1... from table1'
    The above way i'm not able to do that, i'm getting error
    Encountered the symbol 'QUERYSTRING' when expecting on of the following:
    select
    Is there any alternative??
    Please help

    You can only use that sort of dynamic sql in the database. maybe you can return the ref cursor to the form from a db-function, i don't know if it works in forms 6i.
    But you could tell us your requirement, maybe you can implement it without these dynamic things.

  • Query in query, how can i do this?

    hi,
    As we can use nested query in sql but unfortunately it cant be done in forms6i, e.g.
    INSERT INTO ARSP(QTY, amt )
    ( select bpmad.qty, ( select sum(CUTD.BGHANA) from CUTD)
    from bpmadIn sql this query work but in forms6i it doesnt work, i am using this query in key-commit trigger.
    Any help provided will be appreciated thanks
    Regards
    M. Laeeque A.

    in forms6i it doesnt workWhat does it doesnt work mean? Do you get an error? Is the insert not performed? Anyway, is this the original insert-statement or did you reduce it to show here?

  • Oracle 9i with Forms6i (having problems with objects)

    I am using Oracle 9i server and dev 6i (forms6i).
    i have a form based on Object tables (including REF's items). when i try to insert update, delete the reocrd in the form, it gives error.
    Insert/Update/Delete failed because of OCI_22132: hexadecimal string does not corresopond to a valid REF.
    when i remove REFs items from form (not from database) then it does all functions (insert,update,delete,query).
    Actually i haved used this form with Oracle 8i and it did all functions(insert,update,delete,query). i am using the same tables and types definations in Oracle 9i but it is not working.
    Note: Insert, Update, Delete, or Query is not being done through forms when using REFs items. Others tools like sql*plus are performing the same actions very well.
    Please help.
    I will be thankful to you.
    M. Faisal.

    Not laughing here. This is a long shot, and I have almost no experience with database links, but could you maybe keep an 8.1.7 server running for the Forms 3 forms, and create database links and synonyms on the 8.1.7 server linking to the data on the 9.2 server?

  • Oracle 9i Objects with Forms6i

    I am using Oracle 9i server and dev 6i (forms6i).
    i have a form based on Object tables (including REF's items). when i try to insert update, delete the reocrd in the form, it gives error.
    Insert/Update/Delete failed because of OCI_22132: hexadecimal string does not corresopond to a valid REF.
    when i remove REFs items from form (not from database) then it does all functions (insert,update,delete,query).
    Actually i haved used this form with Oracle 8i and it did all functions(insert,update,delete,query). i am using the same tables and types definations in Oracle 9i but it is not working.
    Note: Insert, Update, Delete, or Query is not being done through forms when using REFs items. Others tools like sql*plus are performing the same actions very well.
    Please help.
    I will be thankful to you.
    M. Faisal.

    Mohammad,
    If you have a Oracle Support customer id, you should go to http://metalink.oracle.com to file an iTAR about this.
    Regards,
    Geoff
    I am using Oracle 9i server and dev 6i (forms6i).
    i have a form based on Object tables (including REF's items). when i try to insert update, delete the reocrd in the form, it gives error.
    Insert/Update/Delete failed because of OCI_22132: hexadecimal string does not corresopond to a valid REF.
    when i remove REFs items from form (not from database) then it does all functions (insert,update,delete,query).
    Actually i haved used this form with Oracle 8i and it did all functions(insert,update,delete,query). i am using the same tables and types definations in Oracle 9i but it is not working.
    Note: Insert, Update, Delete, or Query is not being done through forms when using REFs items. Others tools like sql*plus are performing the same actions very well.
    Please help.
    I will be thankful to you.
    M. Faisal.

  • Problem with Cursor Query in forms

    Encountered the symbol 'ORDER' when expecting one of the following:
    . ( ) * @ % & - + / mod rem with an exponent (**) and or group having intersect minus start union where connect ||
    The symbol ")" was substitued for "ORDER" to continue.
    I'm recieving this error in my form even though the query it runs off works fine in SQL*PLUS.
    The query is:
    SELECT *
    FROM (SELECT a, b FROM tableA WHERE a >= 18 ORDER BY a ASC)
    WHERE ROWNUM <= 8
    Any ideas?

    rownum is evaluated before order by, that's why.
    The SQL engine is out of date in forms6i.
    What you can do is create a view with order by in the database side, then reference that view in forms.

  • Non-Database items in enter-query mode

    I have a form with 2 base table blocks, typical master details situation. I wish to allow a field from the detail block to be queryable from the master block. I was considering adding a non-database item to the master block (visible only when in Enter-Query mode). In a pre-query trigger I would amend the DEFAULT-WHERE property of the master block when the appropriate where clause using the non-database item value. My prototype/test version works fine except the non-database item is not enabled while the master block is in enter-query mode.
    I think basically forms will enable only field s if they are database items and queryable set to yes. There are no more database items I can use to set the non-database item column name property.
    Any suggestions would be appreciated.
    Ralph
    Oracle Developer - Unisys Australia

    Hi Ralph,
    we have several Forms using non-database items as query-items which works fine.
    What we did is following:
    1) create non-database item xy in master-data-block
    2) set property database item to no
    3) set property query allowed to yes
    4) create a pre-query trigger on master-data-block where we change the where-clause (this is forms6i, in 9i we would use the one-time-where-clause)
    Peter

  • I want to connect Visual foxpro database through forms6i.

    Hi ,
    I want to connect Visual foxpro database through forms6i.
    actually i want to access Visual foxpro database in forms6i and retrive and update data from forms6i.
    please help me urgently how can i do this in forms6i.
    Thanks,
    Md.Muniruzzaman Khan
    Email : [email protected]

    do the following steps for hetrogenous service
    Step 1
    Create ODBC named Access1.
    Step 2
    Go to urs inithsodbc.ora file which reside at
    ORACLE_HOME\hs\admin\inithsodbc.ora
    and overrite by
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Access1
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Step 3
    Add the following entry to the tnsnames.ora file:
    ACCESS1.WORLD =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=ACCESS1))
    (HS=OK)
    Step 4
    Add the following entry into the listener.ora file:
    (SID_DESC=
    (SID_NAME=ACCESS1)
    (ORACLE_HOME=D:\Oracle)
    ---Define urs oracle home path in mine case it is at D:\Oracle--
    (PROGRAM=hsodbc)
    Step 5
    Reload the listener from contol panel services yours listener service
    Step 6
    Create a database link using:
    CREATE DATABASE LINK access1.world CONNECT TO "MyUser" IDENTIFIED BY "MyPassword" USING 'ACCESS1.WORLD';
    Step 7
    Connect to scott/tiger
    Query the table using:
    SELECT *
    FROM [email protected];
    Step 8
    Same you can connect to urs forms and write above sql in cursor
    Acknowledge me.
    Khurram Siddiqui

  • Insert/Update/Delete in forms6i using Objects table in Oracle9i server

    I am using Oracle 9i server and dev 6i (forms6i).
    i have a form based on Object tables (including REF's items). when i try to insert update, delete the reocrd in the form, it gives error.
    Insert/Update/Delete failed because of OCI_22132: hexadecimal string does not corresopond to a valid REF.
    when i remove REFs items from form (not from database) then it does all functions (insert,update,delete,query).
    Actually i haved used this form with Oracle 8i and it did all functions(insert,update,delete,query). i am using the same tables and types definations in Oracle 9i but it is not working.
    Note: Insert, Update, Delete, or Query is not being done through forms when using REFs items. Others tools like sql*plus are performing the same actions very well.
    Please help.
    I will be thankful to you.
    M. Faisal.

    user563114,
    As James (padders) told you in his reply to a similar question that you posted (Typed tables is treated in the same way as a relational table?) in the Typed tables is treated in the same way as a relational table? forum, the only way you can tell for sure is to try it out both ways, measure and compare the times.
    Of-course, there are many factors that effect the time, apart from whether you use a nested table or a regular table.
    Good Luck,
    Avi.

  • Can i use case in query in oracle form 6i

    sir can i use case in query in oracle form 6i
    such as
    select empno, case when deptno=10 then dptno end from emp;
    please gice me

    Hello,
    Does this code compile ?
    If not, I'm afraid that the PL/SQL engine of Forms6i does not recognize this syntax.
    Francois

Maybe you are looking for

  • How to restrict the options available in variables while reporting

    Hi all,    i am having a requirement, while generating the reports the end user able to see the codes for the other sales office when he press f4 in the variable field. how ever he is not having authorization to view the report but ther requirement i

  • Constant in a var?

    Hi Before I spend any more time trying, I was wondering if it's possible to use a var in place of a constant in dispatch event? I don't mean send var data as in a custom event, but use a var to dynamically change which constant you are refering to? S

  • Problems installing and uninstalling Cannon 620 printer

    I tried to install a Cannon 620 printer.  It seemed to go ok, showed up on the printer list when I tried to send a job, but it wouldn't come online and print.  I fiddled around (bad idea) and changed the printer sharing parameters, and now whenever I

  • Getting an unknown error message when i try to sign into iTunes

    getting an unknown error message when i try to sign into iTunes

  • Tab keys and access keys

    I filled in the required info for dynamic textboxes in the accessibility panel but the tab keys still do not work in the exe file. Flash CS3. Any clues? Thanks.