How to do this in Oracle forms

hi Freinds I am Using This Code in Oracle Forms
Declare
     var_m varchar2(20) := 'employee_no';
Begin     
select var_m into :records.column_1 from pay_employee
    where employee_no = 1 and
              company       = 10;
End;Now this is Selecting one row and giving me output as
"employee_no"
But I do not Want This Ouput.
Now this employee_no is the name of column in table.....so I want Its value to be Shown ,Instead of Text ?
I want this query to get Execute
select employee_no from pay_employeebut it is doing this
select "employee_no" from pay_employee

Declare
     var_m varchar2(20) := 'employee_no';
Begin     
select var_m into :records.column_1 from pay_employee
    where employee_no = 1 and
              company       = 10;
End;Of course you are getting the string 'employee_no' from your query as this is what you are selecting:
SQL> create table testselect as select level lvl from dual connect by level < 5;
Table created.
SQL> select * from testselect;
       LVL
         1
         2
         3
         4
SQL> select 'hello' from testselect where lvl = 1;
'HELL
hello
SQL> select lvl from testselect where lvl = 1;
       LVL
         1have a look here:
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17126/fundamentals.htm#CIHGGGGI
what you want to do would be
Declare
     var_m varchar2(20) := 'employee_no';
Begin     
select employee_no into :records.column_1 from pay_employee
    where employee_no = 1 and
              company       = 10;
End;However; the result of your query would be either +1+ or a no_data_found ...
cheers

Similar Messages

  • How to do this in oracle forms 10g

    hi all,
    any idea about how to format a drive using oracle forms 10g and shutting down the remote pc and a personal pc using oracle forms 10g.
    i am using windows XP2 as os.
    please replay..

    Hi Inol and Weiden,
    thanks for your help,
    i have cretaed a form xyz.fmx with a button , i wrote in when-button-pressed and also attached the default webutil.pll(which is in forms path) library in attached-library section
    Client_host('cmd c/ shutdown -i');
    but my problem is that when i run the form i am getting error that
    FRM-40039: Cannot attach library webutil.pl while opening form xyz.fmx.
    Cause: The given library is attached to the form but
    cannot be located in the search path for PL/SQL libraries.
    Action: Make sure that the given library can be found
    and that it has read permissions set.
    Level: 99
    Type: Error
    i think i have to configure the webutill.pll but i don't how to configure
    can you tell me how to configure the webutil.pll file..
    please reply..

  • How can I code this in Oracle Forms?

    I have a master-detail form. In the detail block, I have several records. Here is my name table.
    ID Name_Type Name
    1 old Mike
    2 Current John
    3 old Peter
    4 old Andrew
    I would like to create a button trigger which shall perform the following:
    1) insert a record into database with a copy of current value. In the above case it will insert create a record for John as name_type = 'OLD'. So we have total of 5 records. Commit the transaction.
    2) Scroll through my detail records (5) and go to one specific record and erase the values from it. In the above case, it should find John's record with name_type = 'Current' and erase John from it.
    How can I accomplish this in Oracle forms using a button-pressed trigger?

    Hi,
    Simple, using current values you can create new id , 'old' and name so oracle will create record, now refresh block, next using next_record in loop you can find record,erase one and refresh block.
    Adinath Kamode

  • How can hide the word oracleas forms service in applet

    my dears :
    if I want to appear the name of our company in applete instead of this word oracleas forms service
    how
    thanks in advance

    Hi,
    Copy your image (either .gif or .jpg) in %devsuite_home%/forms/java for example for me it's : C:\oracle\DevSuiteHome_1\forms\java
    Then in your formsweb.cfg point to your image begining with /forms :
    # Forms applet parameter
    background=/forms/java/logocca.gif
    Restart your oc4j
    Launch your application.
    NB : The names are case sensitive, i.e /forms/java/logocca.GIF will not work
    It's important to mention /forms/java/ because your c:/ is not seen by the web server
    Regards
    Mohamed Dadi

  • How to enable tracing in Oracle Forms 10g

    Hi Friends,
    I am interested to trace my running oracle forms application. When I googled it, I got below useful information. But theory and practical has mismatch somewhere, I am not able to create the trace file(s).
    **************************** Some Notes ****************************************************
    How to Enable Tracing in Oracle Forms 10g
    Enable Tracing from the url by adding the following to your forms url:
    &record=forms&tracegroup=0-98,100-199 (note: item 99 causes some issues, so we are skipping it here. See the Oracle documenation for a description of what is being traced for each item.)
    for example
    [http://machine:port/forms/frmservlet?config=myConfig&record=forms&tracegroup=0-98,100-199]
    You will get a trace file in the following location:
    %ORACLE_HOME%\forms\trace\forms_xxx.trc where xxx is the forms session ID.
    Open dos window and do the following:
    set ORACLE_HOME=
    set PATH=%ORACLE_HOME%\jdk\bin;%PATH%
    set CLASSPATH=%ORACLE_HOME%\jdbc\lib\classes12.zip;%ORACLE_HOME%\forms\java\frmxlate.jar
    java oracle.forms.diagnostics.Xlate datafile=%ORACLE_HOME%\forms\trace\forms_xxx.trc outputfile=%ORACLE_HOME%\forms\trace\html_xxx.html outputclass=WriteOutHTML
    you will get a file html_xxx.html in your %ORACLE_HOME%\forms\trace directory.
    I need information beyond this to make this practically successful.
    Thanks in advance,
    Amol Naik

    Hello,
    <p>Did you read this paper ?</p>
    Francois

  • How to call Reports in oracle forms 10g

    Dear All,
    How to call Reports in oracle forms 10g.
    I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
    Please give me the Solution.
    Thanks and Regards,
    Faziludeen

    Hi Omkar,
    Please check the following code.
    DECLARE
      repid REPORT_OBJECT;
      v_rep VARCHAR2(100);
      rep_status VARCHAR2(20);
      plid ParamList;
    BEGIN
      plid := Get_parameter_List('tmp');
      IF NOT Id_Null(plid) THEN
      Destroy_parameter_List( plid );
      END IF;
      plid := Create_parameter_List('tmp');
      add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
      Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
      repid := FIND_REPORT_OBJECT('POL_REP');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
      v_rep := RUN_REPORT_OBJECT(repid,plid);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
      WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
      LOOP
      rep_status := report_object_status(v_rep);
      END LOOP;
      WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
      '||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
      '&paramform=no');
    END;
    I am used to Start the Report sever   'Rwserver Server=prod_Report_Server Start'
    OracleAS Report Services
    Version :-   10.1.2.0.2
    Name    :-   prod_report_server
    Status  :-   Server is Shutting down
    Jobs in Queue  0
    Active Engines  0
    I got the Following Error when I trying to run the Report
    FRM-41211: Integration error:SSL failure running another product
    Thanks and Regards,
    Faziludeen

  • How to implement this in Oracle Apps 11i

    Hello Friends
    I am working as a consultant for a manufacturing company.
    They have a format for charging Excise and Sales tax on their products (example below). I dont know how to implement this using oracle apps. Please help me ASAP.
    eg.
    Product A:
    MRP = Rs. 100
    Assessable Value (i.e. the value at which I have contract with the Government to pay Excise Duty) = 60% of MRP = Rs. 60 in this case.
    Excise Duty = 16% of AV =0.16*60 = Rs. 9.6
    Now, let’s suppose I am selling my product to a dealer at 30% discount.
    Therefore, Sale Price = 70% of MRP = Rs. 70
    Sales Tax = 4% of Sale Price = 0.04*70 = 2.8
    Therefore, total revenue from the deal = 70-9.6-2.8 = Rs. 57.6

    you can use Advance Pricing or creating discount or attiribute while calculating.
    this is not much complex, possible even with Advance Pricing too. Thanks
    Shiv

  • How to use css in oracle forms

    Hello,       I am using oracle forms 11g with weblogic server 10.3.5 at windows 7.I have to use CSS in oracle forms.i have tried to search it but no profit.please some one else tell me that how can use css in oracle forms. Thnak You regards aaditya

    Hi
    As Francois pointed out Oracle forms has nothing to do with html based technology. The way you can get the equivalent effect of creating consistancy in the way your objects are displayed is by creating a set of items you want and alter their apperance and behaviour and place them into object libraries (one library should do the trick).  From there you subclass all of you forms items off these libraries.
    Regards
    Quintin

  • How to build wizard in Oracle Forms?

    How to build wizard in Oracle Forms? Is it possible only in JDeveloper?
    Regards
    Rajesh Kumar

    What do you mean here - you want to extend the Forms Builder with your own wizard, or you want to build a Forms Application with a Wizard Style interface?
    If it's the First then you can't, if it's the second then check out the 9i demos there is a re-usable wizard component that shows you how to do it.

  • How to use LDAP with Oracle forms 10g on Oracle application server

    Hi,
    I need some help on this. I have developed oracle forms 10g on application server 9iAS. The client want to use the existing LDAP authentication to the software we wrote. I do not know how I could configure to use the existing LDAP authentication . If anyone know how would I use the existing LDAP on different server to use when they logon to our menu in 10g to validate the user. Do I need to add any varibales in formweb.cfg or any other method. Please help.
    Thanks
    Luksh

    I am not quite sure if this works out of the box. According to an Oracle FAQ:
    4.2 Can I use LDAP to authenticate Forms Services?
    Not directly. However, Oracle Login Server is able to authenticate against a LDAP directory and thus a Forms application can take advantage of this in a SSO environment. But you cannot use access control information stored in a LDAP directory with Forms.

  • How to call refcursor in oracle forms

    How to fetch a column in oracle form by using DB prcedure's refcursor.
    There was not isseu to create and call the procedure in oracle forms but when I was trying to fetch
    a particular column and assing the value to text box, I got an error invalid reference.

    DECLARE
       TYPE emp_ref_cur IS REF CURSOR;
       v_emp_curs_qry   emp_ref_cur;
       v_sql            VARCHAR2 (32767);
       v_column1        VARCHAR2 (32767) := 'EMPNO';
       v_column2        VARCHAR2 (32767) := 'ENAME';
       TYPE emp_rec IS RECORD (
          empno   emp.empno%TYPE,
          ename   emp.ename%TYPE
       TYPE emp_rec_ty IS TABLE OF emp_rec;
       v_emps           emp_rec_ty;
    BEGIN
       v_sql := 'select ' || v_column1 || ',' || v_column2 || '  from emp ';
       OPEN v_emp_curs_qry FOR v_sql;
       FETCH v_emp_curs_qry
       BULK COLLECT INTO v_emps;
       CLOSE v_emp_curs_qry;
       FOR i IN v_emps.FIRST .. v_emps.LAST
       LOOP
          DBMS_OUTPUT.put_line ('Empno =' || v_emps (i).empno);
          DBMS_OUTPUT.put_line ('Ename =' || v_emps (i).ename);
       END LOOP;
    END;
    /i hope this is what you want ..

  • How to use Javascript in oracle forms

    Hello Experts,               I am new in Oracle forms using weblogic 10.3.5 with oracle forms 11g at windows 7.I have need to run a javascript code block inside my oracle form.Please suggest me that how can i do this.Actually I have need to validate my item field alike for email address for this I have to use Java script code. thank You regrads aaditya.

    Hi
    As Francois pointed out Oracle forms has nothing to do with html based technology. The way you can get the equivalent effect of creating consistancy in the way your objects are displayed is by creating a set of items you want and alter their apperance and behaviour and place them into object libraries (one library should do the trick).  From there you subclass all of you forms items off these libraries.
    Regards
    Quintin

  • Import Java Classes - How manipulate Java List in Oracle Form

    Good afternoon,
    I call a Web Service from Oracle Application Server 10g Forms Services but the object returned by the method is a java list. I created a stub/skeleton with JDeveloper and the communication between WebService and Oracle form works fine. The problem is how to desencapsulate the list within ORA_JAVA. I imported java.util.List it does not solve my problem.
    Method called: public List DecryptToken(Context context, String token) throws Exception
    This list will have in List.get(0) -> Context object
    List.get(1) -> String
    List get(2) -> String
    List get(3) -> Param []
    Thanks for your help.
    best regards,
    TT

    hi,
    try java stored procedure loop ur java list and get data in "type table" of requried data type
    and use it as u desired.
    piyush

  • How can integrate/call the Oracle Forms in ADF pages or task flow.

    Hi ,
    I Have requirement to integrate the ADF and EBS.
    I have done the ADF pages calling in ESB.
    Right now i am struck up to call the OAF froms in ADF page/taskflow.
    it's high appriciate if any one provide me the any info or how to do this requriment.
    Thanks,
    Madhava.

    Hi,
    Forms integration can happen using af:inlineFrame or by a redirect to a Forms web URL. In the latter case navigation should be from an unbounded task flow ensuring the return address required to resume the ADF application is provided. See: https://blogs.oracle.com/jdevotnharvest/entry/how_to_efficiently_redirect_an for how to construct the return URL
    Frank

  • How to set connection between oracle forms and DB?

    I have installed win xp,
    oracle database 10g in c drive ,
    oracle forms and reports 10g in d drive ,
    how do i set the connection between forms and DB ?
    i know its an old question but i am very new to this !
    thanks in advance.

    You didn't mention the versions or whether you are using Developer Suite or Application Server. I guess it really doesn't matter in this case, but please provide complete information in the future.
    In order to connect the F/R home to a db you will need to make the appropriate configuration entries in tnsnames.ora found in the F/R home (\NETWORK\ADMIN). The entry you add will be similar to the one found in the tnsnames.ora for the db which is found in a similar directory in the db home. The entry will look something like this:
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myMachine)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = myMachine)
      )

Maybe you are looking for

  • Connect an Officejet Pro Plus 6500 to a new mac running Yosemite

    If you are having a problem connecting an HP Officejet Pro Plus 6500 to a new mac running Yosemite, (10.10.1) this is what to do. Go to HP and get this driver http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4182&lc=en&cc=us&dlc=en&s w_lang=&pr

  • Solution manager with MaxDB 64bit NW7

    I am able to successfully complete ABAP stack and getting erro in "creating java user" step INFO 2009-11-03 06:59:36.582 Output of F:\usr\sap\CBM\DVEBMGS02\exe\jlaunch.exe UserCheck.jlaunch com.sap.security.tools.UserCheck "C:\Program Files\sapinst_i

  • Specific attributes for IDM implementation

    I am trying to integrate webcenter with Oracle IDM environment, to do the same i required to know the specific attributes for oracle webcenter users the input is required for the IDM team to create the schemas, Can anybody enlighten me about the same

  • Reading menu props for menus stored in repository

    Hi All, I need to come up with a way to read the roles on a menu item when the menu is stored in the database. The company I work for use to run a pl/sql routine that pulled this data from the tables in the repository. This no longer works becasue th

  • UIX tree, table-based example needed

    Has anyone ever used the UIX tree element (JDev help, UIX developer's guide, chapter 15) in combination with BC4J and/or Jheadstart generated UIX-pages? Any examples are welcome. I also can't get the (static :-/) example in the Help to expand when cl