Declaring variables in ORACLE Forms Builder 10g

Dear Sir/Madam.

I'm new in Oracle (Forms builder 10g) developer costume.
I would like to declare three variables in the form builder and when I press the button it will run the querey / extract data from the specific table.

Name of the table = Department
Column names: dept_code number (5), dept_name varchar2 (20), dept_location varchar2 (25)
Database user name; Yassen
database: test.
Please, help me to understand this problem.

Thank you and best regards,
Ghulam Yassen

Published by: Ghulam Yassen on October 6, 2011 15:46

Yassen,

Try,

DECLARE
  Num_Code DEPARTMENT.DEPT_CODE%TYPE;
  Str_name  DEPARTMENT.DEPT_NAME%TYPE;
  Str_Location DEPARTMENT.DEPT_LOCATION%TYPE;
BEGIN
   SELECT DEPT_CODE, DEPT_NAME, DEPT_LOCATION INTO Num_Code, Str_name, Str_Location FROM DEPARTMENT WHERE DEPT_CODE = ;
END;

I hope this helps.

Kind regards

Manu.

Tags: Oracle Development

Similar Questions

  • Global variable in Oracle form 6i

    Hello

    How and where to set global variable in Oracle form 6i and also I would like to know how to access.


    Thanks in advance

    Kind regards
    Sanket

    Hello

    Global variable are variable specifice forms.
    It can store up to 255 for all uses character value.
    We can initialize when we declare otherwise give error if we has not assigned a value any.
    Oracle 10g, it can take up to 4000 bytes

    GLOBAL.ur_globalvar := TO_CHAR(15);
    
    or
    
    :GLOBAL.ur_globalvar:= '15';
    
    or 
    
    Remmber numeric values are implicitly converted by oracle 2 character
    
    :GLOBAL.ur_globalvar:= 15;
    
    -- which can then subsequently be accessed using...
    
    :GLOBAL.ur_globalvar;
    
    -- To destroy a global variable and release its memory, use the ERASE built-in procedure:
    
    Erase('GLOBAL.my_var'); 
    

    Kind regards

    Abdetu...

  • Oracle Forms Builder FRM-91129 error

    Hello world

    I am trying to run Oracle Forms Builder that comes with the installation of Oracle Fusion Middleware 11.1.1.2.

    I double clicked on "C:\Oracle\Middleware\as_1\bin\frmbld.exe".

    Then, I received the following message:

    ' FRM-91129: fatal error: no value specified for the required FORMS_BUILDER_CLASSPATH environment variable.

    Y does it can someone help me on this message?

    I spend the extra parameter when running "frmbld.exe?

    Or y at - it another way to run Oracle Forms Builder?

    Published by: user3605415 on 25.Oca.2011 15:39

    http://devio.WordPress.com/2010/09/22/forms_builder_classpath-not-set-after-installation-of-Oracle-Forms-Builder-11-1-1-2-0/

  • Oracle Forms Builder 12 c, crashing when generating a big mmx

    Hello

    I installed Oracle Forms Builder on Windows x 64 8 12 c. When I compile my menu I have no problem, but when I try to generate the file mmx, forms crash and close. Can someone tell me if I need a group of hotfixes or the value of any configuration on my Forms Builder?

    Best regards

    It's a bug I can reproduce it. It has nothing to do with the language or the size of the file, but the length of a Menu name here how it worked for me...

    The work around:

    Change the menu with 12cFormsbuilder.

    Open the file .mmb with Formsbuilder. Open the Menu tree. Look for the Menu titles that are more than 30 characters. Change the name< 31="" characters="" by="" clickiung="" on="" the="">

    If you click on it it will be automatically reduced to 30 characters. Save the file, generate

    The example which worked for me:

    MENU:

    ANDERE_STAMMDATEN_UND_VERKNUPF_MENU-> ANDERE_STAMMDATEN_UND_VERKNUPF

  • How to connect to Oracle Form Builder - Oracle Developer Suite 10 g - Windows 7

    Hi brothers and sisters.

    Hope that you are well. I installed Oracle Developer Suite 10 g on Windows 7 successfully and that it works correctly. But when I connect to Oracle Form Builder using Connect window asking:

    a. user name of
    b. password
    c. database

    a message box appears: "ORA-12154: TNS: could not resolve the connect identifier specified '.

    I check my String to connect with: ' SELECT * FROM database of v$ ', but the problem remains the same.

    Please help me how can I connect to Oracle Form Builder.

    Noor

    Hello

    Please use Net Configuration Wizard or set tnsnames.ora with string and computer name to connect.

    NET Configuration Assistant.
    When its open then go to.
    * The local Net Service name configuration.
    * Click Next.
    * Add.
    * Click Next.
    * Name service - Type here connect the String which is XE or any connection string.
    * TCP.
    * Click Next.
    Host name - enter computer name or Ip address.
    * Yes, perform a test.
    you enter the right password and username here.

    Note:-your database should be Up if it's not high, it will be by the same error please start your database first.
    Sarah

  • Webutil on Oracle Form Builder

    Hi all,

    I installed on my computer the Devsuite Oracle 10 g and Oracle Forms and reports Service 10 g.

    Now, Webutil installed in Oracle Forms & reports Service ORACLE_HOME and all work fine.

    If I try to edit a form using a JavaBean such oracle.forms.webutil.ole.OleFunctions, the FRM-13008 error is returned.

    Please how can put Oracle Form Builder in order to sove the problem?

    Thank you and best regards
    Gaetano

    If you want to update the registry (Windows), you'll need locate the key specific to your installation.

    For version 10, the key should appear something like this:

    HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_

    In this node, you should be able to find the FORMS_BUILDER_CLASSPATH key. Change the value of this key by adding the webutil jar file. Use a semicolon to add entries. For example:

    C:\oracle\FRHOME\forms\java\frmbld.jar;C:\oracle\FRHOME\jlib\importer.jar;C:\oracle\FRHOME\jlib\debugger.jar;C:\oracle\FRHOME\jlib\utj.jar;C:\oracle\FRHOME\jlib\dfc.jar;C:\oracle\FRHOME\jlib\help4.jar;C:\oracle\FRHOME\jlib\oracle_ice.jar;C:\oracle\FRHOME\jlib\jewt4.jar;C:\oracle\FRHOME\jlib\ewt3.jar;C:\oracle\FRHOME\jlib\share.jar;D:\oracle10g\iDS1012\forms\java\frmall.jar;C:\oracle\FRHOME\forms\java\frmwebutil.jar
    

    Notice that frmwebutil.jar is added to the end.

  • JavaBeans and oracle form builder

    Hello world
    I want to learn more about the oracle java library especially frmall.jar, I want to learn more about interactivity with the form builder and java, I searched on the internet and saw some very simple examples.
    any body know where I can download a reference on oracle form builder and java book?
    Thank you

    It is not a huge amount of documentation on that, but there are some.


    One of the best sites non-Oracle Forms Java Bean and pluggable Java components is: Oracle Forms PJCs/Java Beans

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • Cannot start Forms Builder 10g on Windows 7

    I use custom.pll to 11.5.10.2 instance. I installed the developer 10g on windows 7 following the instructions on "how to install Oracle Developer Suite 10 g (10.1.2) on Windows 7 (32-bit) [ID 1292919.1].

    Regedit has 'C:\Ora2\cgenf61\admin; C:\Ora2\forms' as FORMS_PATH. I placed the files in the directories. But I get an error "Forms Designer has stopped working". No idea how to solve this problem.

    Any help is appreciated. Thank you!

    901524 wrote:
    When I try to open the custom.pll in the form builder

    First, open the form's constructor. Then connect to any schema. Now, try to open the custom.pll.

    hope this will help you.

  • Oracle Forms Builder - YOU INSERT at the level of detail should take into account the change in amount level header

    Hello

    I have the form master / detail that are both at the level of the table.

    Header block has a MATCHED_AMOUNT column. Detail of block as DETAIL_AMOUNT.

    When the user inserts a record into the retail block, we conduct an insert statement in ONE INSERT trigger block of detail that makes integration with all the problems.

    Question is how can I get the DETAIL_AMOUNT newly added to MATCHED_AMOUNT. I tried to use UPDATE statement in trigger to INSERT the block of retail, but the UPDATE happens.

    Please suggest how to handle this logic.

    Thank you

    Sree...

    Ok.

    Remove the column MATCHED_AMOUNT of block shapes (if the point data base)

    Use INSERT after trigger to the block of retail and update the MATCHED_AMOUNT column to the database with the update command.

    Use a post REQUEST will trigger to the Header_block and show the MATCHED_AMOUNT in a display element with the SQL to the database.

    Hope this helps

    Hamid

  • Arab police is coming as junk in the interface of oracle report builder 10g

    Hi all
    I am facing a problem of Arab police in interface builder to report, happens to be undesirable (such as?).
    Please suggest.

    Thank you
    Soilihi

    Sayeed says:
    Hi all
    I am facing a problem of Arab police in interface builder to report, happens to be undesirable (such as?).
    Please suggest.

    As salamu Asalam, Sayeed

    Click on the following link

    1 re: PDF reports to Unicode / Arabic & English
    2 http://www.orafaq.com/forum/t/162197/149761/

    Hope you find the solution to these two.

    If someone useful or appropriate, please mark accordingly.

  • How to change a global variable of b form to form.

    Oracle forms builder 10.1.2.0.2 version
    version 10.1.2.0.2, Oracle database

    I try to pass a global variable of the form b to form one; I have an error frm-40815
    does not define a global variable in a form file.
    without doubt, I missed something. could you tell me what I missed?

    Here is my sample code;
    form a
    in when new forms instance trigger;
    :myblock.getvalue := :global.p_ck;
    .....
    
    forms b
    in when button pressed;
    call_form('a');
    :global.p_ck := :myblock2.checked;

    I assume that null value passed.
    you have an idea?

    If this previous error is resolved means that now form works well. Now, if there is then no value. So I think that the domain that you assign is not having any value for the test, you can use like this...

    :global.p_ck := NVL(:myblock2.checked,'Blank');
    call_form('a');
    

    -Clément

  • Development of Application Forms with Oracle Forms 11g on Windows 7

    Computer configuration
    -----
    CPU: Intel® Core™ 2 Duo Processor T5600
    RAM: 2 GB
    OS: Windows 7
    -----
    Installation
    -----
    First I installed Oracle Database 11 g Release 1 (11.1.0.6.0) ( this ), then using [Installetion Guide | http://download.oracle.com/docs/cd/E12839_01/install.1111/e10421/overview.htm#sthref12] I installed Oracle Fusion Middleware 11 g in this order:
    -Error UCR ( this ) with the number of processes (150 to 500)
    -Oracle WebLogic Server 11 g 1 (10.3.2) material + EPCO - Package Installer ( this ) no error
    -Portal, forms, reports and discoverer (11.1.1.2.0) no error
    -----
    Satisfied I finally installed all components (5-6 hours) I've wound up to the bottom of all the oracle services.
    On the next day service, OracleDBConsolesid has not started (after some googling I found the solution - the added folder names env variable ORACLE_HOME, ORACLE_SID and ORACLE_HOME/oc4j/j2ee) after restart windows started.
    It's background, the problem occurred when I launched Oracle Forms Builder
    First error:
    [MISTAKE 1 | http://imageswink.com/show.php/1327_oracle-error-4.png.html]
    When I click ok it sounded there works fine but when I added the canvas has attempted to open the layout editor another error occurred:
    [ERROR 2 | http://imageswink.com/show.php/1328_oracle-error-2.png.html]
    And after a few seconds just application stopped responding
    [ERROR 3 | http://imageswink.com/show.php/1329_oracle-error-3.png.html]
    And another error when I tried to add menu (click "Menus" twice):
    [ERROR 4 | http://imageswink.com/show.php/1330_oracle-error-5.png.html]

    What I am doing wrong?
    What is the best windows (stable) + oracle configuration?

    I am a student and I just have to do for my class...

    Thanks in advance

    Oracle Database XE with Weblogic 10.3.2 + PFRD installed 11.1.1.2 should work perfectly for a stand-alone development environment.

    For a development environment independent (assuming that's what you try to do) you don't need RCU, or OID or SSO, something like that.

    Hope that helps you.

  • Tutorials Oracle Forms and reports

    Hi all

    I recently started a new job in collaboration with Oracle forms and reports using PL/SQL. I have little or no experience with either, I'm looking for some tutorials online. I found the following on Udemy me begin with PL/SQL - <-moderator removed link as we do to the business side--> but I find it difficult to find some tutorials on Oracle forms and reports. Can anyone suggest where I might find some good tutorials?

    Thank you

    -Action Moderator: removed link to a commercial side. The user don't please add links to commercial messages to any forum OTN in side. -----

    Tutorial Oracle...

    Although the first two of the following links are for older versions of forms, the concepts are still valid for all versions of forms.

    A tutorial on Oracle9i forms and reports

    http://www.holowczak.com/Oracle/dev9i/ iSelfSchooling - Introduction to forms Oracle Forms

    10g: demos, tips, and Techniques

    http://SheikYerbouti.developpez.com/index_en/

    http://www.SlideShare.NET/magupta26/Oracle-Forms-tutorial

    http://www2.cs.uh.edu/~ceick/3480/Customized_Oracle_Forms.pdf - create custom Oracle Forms

    http://www.youtube.com/watch?v=0BBiHvHzPYE - video

    Tutorial for Oracle reports...

    Here's some link...

    1. http://docs.oracle.com/html/B14364_01/title.htm

    2. http://www.scribd.com/doc/3960412/Basic2-Oracle-Reports-10g-Tutorials

    3. http://report10gsanamqa.blogspot.com/2010/08/triggers-in-reports-types-of-triggers.html

    Video tutorial

    http://www.YouTube.com/watch?v=Fum3MJm5yKU

    Hope this helps,

    Hamid

  • by selecting only the time in oracle forms

    Hi all
    as a picker of oracle forms can I select the time in oracle forms in a text element.
    I want to display the time in this format 10:10:30, and I would also like to insert into the table
    I took the data type of this column as varchar2 (15) if I take date can I insert time or varchar2 is ok.
    my version of oracle forms is 10g.


    Please answer...

    Hi, extreme

    extreme wrote:
    Hi all
    as a picker of oracle forms can I select the time in oracle forms in a text element.
    I want to display the time in this format 10:10:30, and I would also like to insert into the table
    I took the data type of this column as varchar2 (15) if I take date can I insert time or varchar2 is ok.

    Better take column with the data type date. You can insert the date and time in the date field.
    You just change the forms.
    Change the data type Date to Datetime

    to view a single moment, use the format mask.

    Hope this helps

  • connection to the base Forms builder

    When I try to connect to database form oracle forms builder... his throw an error message like "TNS: no listener".

    Can you guys help me to get rid of this shit

    I read on some forums and pasted the oracle tnsnames.ora file in the base directory of forms still its irritating me a lot.

    Pls help me.

    Thanks a bunch

    Try this.

    Call the command line. CD to the folder where frmbld is present.
    The value TNS_ADMIN folder where you have your tnsnames.ora file. Call frmbld.exe and try to connect to the database.

    Let us know if it works / you get the same error.

    Arun-

Maybe you are looking for