Processing forms in oracle 10g

hey i m a beginner in oracle, got stucked up at a place.
I need guidence as to how to pass the value entered dynamically in a text box in a SQL querry as a searching criterion.

You usually set the query criteria directly in the fields of the datablock (provided that those fields are database fields) at runtime after pressing the EnterQuery key.
Still, suppose you want for the datablock called 'x_data' to set a complex where clause, composed according to some complicated rules, then, in the pre-query trigger for that block you will have something like
declare
v_where varchar2(1000);
begin
v_where:=.... ;
-- here you compose the desired where clause. May possibly have some ifs...
set_block_property('x_data',default_where,v_where);
end;
HTH

Similar Messages

  • I am trying to connect oracle develper suit form with oracle 10g database

    i am trying to connect oracle develper suit form with oracle 10g database
    but when i pass username and password
    this message apperars
    ORA-12560:TNS:protocol adapter error
    every time even i try to connect Report or Designer each time same problem
    making no connection .
    can any body help can help me to reslove this prblem
    Arshad khan

    Duplicate thread:
    Re: connection problem

  • Exit the Browser window while closing the form in ORACLE 10g

    Hai,
    Is it possible to cIose the browser window while closing the form in Oracle 10g.
    I wrote a code EXIT_FORM in a "WHEN BUTTEN PRESSED" TRIGGER and
    web.show_document('javascript:window.close()','_self'); in "POST-FORM" trigger
    But it only closes the form.
    Please help me with the fast & useful responds.
    Bye

    create a file called close.html with the following code
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    window.close();
    </script>
    </body>
    </html>
    call close.html in post-form like this
    WEB.SHOW_DOCUMENT('/forms90/myhtml/close.html','_self');
    You have to do the directory mapping

  • Problem calling a form from another form in oracle 10g

    hi,
    i have created A basic STUDENT form with all fields and the STUDENT/COURSES master/detail form .
    I am trying to place to button on the STUDENT form that when pressed, will call the STUDENT/COURSES form and automatically query the COURSES for the employee being viewed on the STUDENT form.
    here is the code i used
    DECLARE
         pl_id ParamList;
    BEGIN
         pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) then
              Destroy_Parameter_list (pl_id);
         end if;
         pl_id := create_parameter_list ('tmpdata');
         add_parameter (pl_id, 'students_id',text_parameter, :s_id);
         run_product (forms, 'C:resubmission\stucourse.fmb', synchronous, runtime,
         filesystem, pl_id, null);
    end;
    although it successfully compiled,
    when i press the button on the form it is giving me
    frm-92101 : there was a failure in the forms sever during start up...
    i have tried everything i can think off, am fairly new to this
    please any assistance will be appreciated. am using oracle 10g
    thanks in advance.

    Ammad is right, in order to pass a parameter to another Form, the Form you call must have a corresponding parameter. In other words, if you go to the Parameters node of the Object Navigator you need to add a parameter called "STUDENTID" and set the data type and precision of the parameter to match the data you will pass to this parameter.
    Once you have this parameter in your called form, you will have to write code in the called form to use the value of the parameter. This code is typically in the When-New-Form-Instance (WNFI) trigger, but that all depends on your requirements. In your example, this seems the appropriate trigger as your intent is to pass the Student ID and query any Courses the Student is enrolled in. Your WNFI trigger needs to check if there is a value in the Student_ID parameter and then set the default where clause of your COURSES datablock and execute a query on the block. For example:
    /* Sample WNFI trigger */
    /* This example "ASSUMES" your courses block is called COURSES */
    BEGIN
       IF ( :parameter.STUDENT_ID IS NOT NULL ) THEN
          Set_Block_Property('COURSES', OneTime_W.here, 'STUDENT_ID = :Parameter.Student_ID');
          Execute_Query;
       END IF;
    END;
    Note: I had to put a period into the "OneTimeW.here" statement in order to get the Editor to accept my post.  Please remove the period if you use this sample code.
    Hope this helps,
    Craig B-)
    If a response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on May 24, 2010 8:23 AM
    Edited by: CraigB on May 24, 2010 8:23 AM
    Edited by: CraigB on May 24, 2010 8:26 AM

  • Runnig forms in oracle 10g after  migrating them from oracle 6i

    Guyz ....i have developed forms in oracle 6i and when i presented them to the my manager he says that he wants them to be web based.....arghhhh.!!!!!! shud have told me at the beginning itself....anyways i downloaded the forms 10g from oracle website and migrates my forms from 6i to 10g ....
    1.The forms are getting compiled and i can run them on my laptop.. i wanna noe whats the procedure to run them on other system .....the port number is 8889
    I mean running them on a web on some other LP or system.???
    2.And my 2nd problem is that ...The records are not being saved in 10g as in 6i. I created the forms in 6i using the data block wizard and set the block accordingly as told by u people in this forum

    Look at the existing formsweb.cfg configuration file located in your <DEVSUITE_HOME>/forms/server folder. It allows you to create different sections to start your Forms applications.
    For instance, if you create a application_1 section, give this name in your URL.
    Francois

  • Number Dedicated Processes running in Oracle 10g R2

    Hi,
    How Do I Check How Many Dedicated Processes runs in my Database Oracle 10g R2?
    Regards.

    SELECT server, COUNT(*)
    FROM gv$session
    GROUP BY SERVER;Should give you the information that you seek.

  • Migrating VB Applications on SQL Server to Oracle Forms on Oracle 10g RAC

    Hello All,
    I am looking at migrating a VB application built on a SQL Server database across to an Oracle Forms deployment with the data migrated to an Oracle 10g RAC database environment.
    My first question is whether the SQL Developer Migration Workbench can migrate the SQL Server data to a RAC environment?
    The second question is to ask whether there are any "toolkits" or tips from the community migrating VB applications to Oracle Forms.
    Any advise or suggestions greatly accepted.
    Kind Regards,
    Gary.

    SQL Developer Migration Workbench definitely can migrate SQL Server data to Oracle RAC setup.
    However, I don't think VB application can be easily converted to Oracle Forms.
    You can post your question in Oracle Form forum to double check.

  • Generating a pdf form from oracle 10g databse.

    Hi,
    i am looking at some procedure/a code that will enable me to fetch data from oracle tables into tabular form and print the same in the form of a pdf file and allow me to attach the same file as an auto attachment to mail it to someone who is using the application.
    wat i have been trying to do is get the data from database into .txt or .xls file format and convert it into pdf file.But for obvious reasons the tabular look isnt seen in the output pdf file.
    and i have no idea of auto attaching the generated pdf file as an attachment to mail it.
    any help would be of great use to me .
    thanks in advance!!

    If the database resides on a solaris environment, the operating system commands (if installed)
    a2ps (ascii to postscript) and
    ps2pdf (postscript to pdf) may be called to produce a pdf file out of an ascii file.
    Creating the ascii file, converting it and sending it through email are different tasks
    and there a few options for doing so.

  • Form on oracle 10g AS, crashes if no event is handled

    Hi All,
    I have a form, that do no have any events like Key next item in all the levels (form / block / item). When this form is opened and the tab key is pressed, then the application is closed automatically due to error "FRM-92100: Your connection to the Server was interrupted. This may be the result of a network error, or a failure on the Server. You will need to reestablish your session". But the Jinitiator is not closed / affected.
    The same form works fine in Forms 6i.
    Once I add a Key-next-item trigger (can code it to null), the form does not close.
    The same problem happens F5, Shift + tab, Shift + F5 .......
    Instead of fixing this in every trigger, is there any specific settings / properties that cause this crashing only in Forms 10g.
    Please suggest.
    Thanks,
    Gopal.

    Hi Francois,
    Thanks for your reply.
    FYI, I am compiling the form and same system and then executing the .fmx.
    Also I had a veritcal toolbar canvas and a stacked canvas on form.
    Only one block with two items A and B (one each on the canvases).
    Once I move the item B from Vertical toolbar canvas to the stacked, the problem goes off.
    Is this something to do with Vertical toolbar canvas property?.
    Note: I have just hidden both the items A and B by setting the width and height as 1, but visible is set to Yes.
    Please suggest.
    Thanks,
    Gopal

  • ORA-00064 after changes processes, open_cursors in Oracle 10g Express

    Hi,
    I just run the following sql statements:
    alter system set processes=400 scope=spfile;
    alter system set open_cursors=5000 scope=spfile;
    After restart my computer, I can't connect to the oracle and in oradim.log i see the following error:
    ORA-00064: object is too large to allocate on this O/S (1,7999480)
    Any idea why and how can i solve it?
    Thanks a lot!

    Hi,
    Thanks for your help.
    I just open SQL and insert the following statement:
    create pfile from spfile;
    and i got the following error:
    SP2-0640: Not connected
    when i try to connect using conn user/pass@XE i got:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    any idea?

  • Form login problem in Oracle 10g AS, even form does display

    Dear All
    We are facing one problem, when we access form with oracle 10g AS, the form is displayed, but when we enter username and password, it doesnt go to the other screen, it remains hang there and doesnt do any thing, neither give any error.
    we would appreciate the help.
    thanks in advance

    Sounds like you cannot connect to the database....
    Is there a firewall between the app-server and the database? If yes, could you check with your firewall people that all traffice from db-server is allowed to app-server (from app-server to db-server just 1521, or another port that you used for the listener, is enough)
    If not all traffic is allowed, then check the USE_SHARED_SOCKET environment variable (this is the windows name, there is a setting like this for unix too, but I can't recall the exact name by heart. It might be different)

  • Menu in Oracle 10g form Builder

    I Build so many forms in ORACLE 10g form builder.
    Now I want to create a Menu form then i want to run it in Internet Explorer at my own PC at which i have build these forms.
    I also want to run seprate forms in internet explorer; as I can run form in Form builder but can't run then in Internet Explorer manually.
    Please help me to solve this problem

    Try the Forms forum @ Forms

  • I want to connect oracle 10g developer run time forms to oractle data base

    Hey,
    Would any body want to tell me, how come i can connect oracle dev 10g from its forms with oracle 10g data bases
    I am waiting
    bye

    Try asking this on the Oracle Forms forum:
    http://forums.oracle.com/forums/category.jspa?categoryID=19
    In any case you need to set-up a sqlnet connection from your client to your server. Use the Network Configuration Utility that comes with the Oracle Forms installation.

  • Oracle 10G Database Control and Scheduling OWB Process Flow

    Does anyone know how to go about scheduling an OWB Process Flow from
    Oracle 10G Data Base Control. I knew how to do this with Oracle Enterprise Manager 9.2 but we recently upgraded to Oracle Db 10G and the interface has changed significantly.
    Now the interface seems to require a PL/SQL stored procedure to be executed.
    Is there a template procedure that is installed with 10G Data Base Control as there was for 9.2 i.e. oem_exec_template.sql?
    Thanks! Deadline approaching fast...
    Marion

    I've used the oem_exec_template.sql successfully with OWB 10.1 and Oracle 10G Database Control, with a little trial and error at first.
    I'm assuming that your job execution environment is set up correctly, ie. that you can properly execute jobs via the host agent.
    1. Log on to Database Control as SYSTEM, select Jobs from the links at the bottom of the page
    2. In the Results section, Create Job, select "SQL Script" and press Go
    3. In the General section, enter Job Name, and as SQL Script enter e.g.:
    @/u01/app/oracle/owb_oracle_home/owb/rtp/sql/oem_exec_template.sql owb_runtime WF_LOC PROCESS MY_PROCESS , ,
    4. In the Databases section, add your target database
    5. In the Credentials section, I select "Override Preferred Credentials" and use the agent account (oracle on my Linux system) and db user owb_access (OWB Runtime Access user)
    6. Review Schedule tab and submit
    Comments on step 3:
    - the oem_exec_template.sql script must be installed according to the path specified in step 3, on the database host where the OWB Runtime Repository is located
    - owb_runtime is the owner of my OWB Runtime Repository
    - WF_LOC is the name of my Workflow Location as seen in OWB Deployment Manager
    - MY_PROCESS is the name of a deployed Workflow Process
    - the commas indicate that I don't supply any system or custom parameters.
    - step 3 is actually a shell command line that is interpreted by eg. /bin/sh on Unix or cmd on Windows, and must obey proper quoting rules. On windows, I had to specify the empty commas as "\," (including dblquotes)
    Regards, Hans Henrik

  • PDE- Per001 Internal Error deplu 3 - Oracle 10g Forms

    Hi all..
    When I'm trying to execute a form in Oracle 10g forms developer I'm getting this error... PDE- PER001-Internal Error deplu 3
    Please help me to correct this
    Thanks in advance,
    Nycy

    Hi Arniko,
    Thanks .. It worked...
    But I have one more doubt ...
    I saw in a forum that this happens due to :
    The error is a procedure builder error often seen while compilation when multiple forms are opened in a form builder and can be solved by reopening the form builder or open one form at a time and compile... ( This also works )
    Is that something related to any inbuilt procedure with Oracle 10g Forms builder...??Is there any way to correct that?
    Pls help me...
    Thanks in advance,
    Nycy

Maybe you are looking for

  • Including .as files in a custom component

    Can anyone tell me how to include an actionscript file in a custom component when the .as file resides one level above the component? All of my custom components are in the "src/components" directory and the actionscript file I need to include is one

  • Using the map/erase/lockout function on my Ipad

    I see I can remotely erase, lock out and locate my Ipad if it is stolen or lost. I don't have any other Apple devices, so how do I do this from my Win7 PC? I went to the Apple site and it said to download the Icloud panel for my PC (which I did), but

  • Strategy for product display in multi -multi categories??

    Hi guys, My client wants many many variations of product catalogs... too many to do effectively by creating catalogs for each one. I'm trying to figure out the best way of doing this and I realize there is a potential problem with keywords and tags. 

  • Solaris SWT error

    I am trying to run a jar file, packed using Eclipse, on a Ultra 5/SPARC Solaris machine but keep getting an error from: org.eclipse.swt.internal.motif.OS.XmCreateMainWindow After attempting to run the command ApplicationWindow.open() I am using all o

  • Conversation between 2 clients

    Apologies if this is a stupid question, but my mind has gone completely blank! I'm trying to write a program allowing 2 clients to connect to a server and exchange messages with one another. My problem is that I can't figure out how to allow the 2 cl