Query in Parameters in Oracle Forms 6i

Can any one explain me how to go with parameters in oracle forms 6i's Object Navigator.If explained with an example it will be of great help for me.
Thanks,
Prathap

Hello,
Forms parameters are usefull to receive a value from a calling form or for a command line.
You can pass a value to a form through these parameters, which value can be read inside the form.
Assume your form have to display only employees of departement 10.
In the parameter node, you create a new parameter then name it : DEPARTEMENT (number)
A the start of this form, you can filter the data in the Where clause property of the block:
  DEPTNO = :PARAMETER.DEPARTEMENTand, when the first form call this one, it pass this parameter in the CALL_FORM() built-in
Declare
  pl_id PARAMLIST;
  pl_name VARCHAR2(10);
Begin 
  -- create the parameter list --
  pl_name :=  'temp';
  pl_id :=  get_parameter_list(pl_name);
  IF NOT ID_NULL(pl_id) THEN
    destroy_parameter_list(pl_id);
  END IF;
  pl_id := create_parameter_list(pl_name);
  -- add the parameter to the list --
  add_parameter(pl_id, 'DEPARTEMENT', TEXT_PARAMETER, 10);
  -- call the employees dialog --
  call_form('EMP_DIALOG', HIDE, NO_REPLACE, NO_QUERY_ONLY, NO_SHARE_LIBRARY_DATA, pl_id);
End ;Hope this is clear enough.
Francois

Similar Messages

  • Regarding Query/Where box in oracle forms

    Hi,
    I have a query regarding query/where box in oracle.
    When I enter ":" in one of the field query box pops up and when I enter some query and press F12 to execute query.
    The OK button has to be pressed twice to retrieve the result.
    Can anyone please let me know why this is happening, instead of retreiving results at one go by pressing OK once.
    When does query box pos up? I have to avoid hitting OK button on query box twice.
    Thanks for your advice in advance.
    Thanks,
    KLC
    Edited by: user5411765 on Nov 22, 2010 10:44 PM

    Hi,
    Were you able to get around this problem? I am facing the same and need help! :(
    Regards,
    Arun

  • Query about to download Oracle Forms and Reports 11g

    I have a Windows vista (Home basic).
    I am trying to download Oracle Forms and Reports 11g to learning purpose from this link.
    [http://www.oracle.com/technetwork/developer-tools/forms/downloads/index.html]
    there is two links to download Oracle 11g for windows:
    Windows x86
    Windows 64
    Should i use Windows x86 link?
    please suggest.
    Thanks!
    Edited by: 968895 on Dec 8, 2012 2:36 AM
    Edited by: 968895 on Dec 8, 2012 2:58 AM

    Should i use Windows x86 link?Well, it depends on your OS. Anyway, look at Installation of forms 6i and 11gR2 in a home PC

  • Query Performance issue in Oracle Forms

    Hi All,
    I am using oracle 9i DB and forms 6i.
    In query form ,qry took long time to load the data into form.
    There are two tables used here.
    1 table(A) contains 5 crore records another table(B) has 2 crore records.
    The recods fetching range 1-500 records.
    Table (A) has no index on main columns,after created the index on main columns in table A ,the query is fetched the data quickly.
    But DBA team dont want to create index on table A.Because of table space problem.
    If create the index on main table (A) ,then performance overhead in production.
    Concurrent user capacity is 1500.
    Is there any alternative methods to handle this problem.
    Regards,
    RS

    1) What is a crore? Wikipedia seems to indicate that it's either 10,000,000 or 500,000
    http://en.wikipedia.org/wiki/Crore
    I'll assume that we're talking about tables with 50 million and 20 million rows, respectively.
    2) Large tables with no indexes are definitely going to be slow. If you don't have the disk space to create an appropriate index, surely the right answer is to throw a bit of disk into the system.
    3) I don't understand the comment "If create the index on main table (A) ,then performance overhead in production." That seems to contradict the comment you made earlier that the query performs well when you add the index. Are you talking about some other performance overhead?
    Justin

  • Passing parameters from oracle form to html

    Hello,
    I have an application that requires me to take data from an oracle web form and pass many fields as parameters into an html table.
    Is this possible?

    Hi Rose,
    There is a specific sample form for this kind of actions in the Oracle9i Forms Demos. It is called Save2HTML.
    from the help file: F90Write.Write_HTML Description
    Writes the data from the specified block to a file in HTML format.
    Maybe you can alter the code for your own use.
    succes,
    Mark

  • Passing parameters from oracle form to the outside Environment ??

    i hava an application in
    c:\program files\sms app\sms.exe
    this application can run in command prompt and accepts parameters to send sms to customers
    example of command to send sms from command prompt(cmd) ,
    - i navigate to application path c:\program files\sms app\sms.exe and run command below
    sms.exe /p:+1012121212 /m:"message body goes here" /l /t
    my question is how can i implement a form contains two text box items & one button
    in button press trigger i want code that can pass the textbox1.text to the
    command line application sms.exe /p:textbox1.text in the parameter position which accepts the phone_number like above example
    and pass the textbox2.text to the other parameter in application which accepts message_body with "" _Double caution marks around the message body
    so the final command line will look like this :
    Application_Path\sms.exe /p:+1012121212 /m:"message body goes here" /l /t
    Notes:
    textbox1.text = parameter_data_type = number
    textbox2.text = parameter_data_type = varchar2
    Oracle Developer Suite 10g , OS:Windows 7
    Thanks you very much

    thanks for replay poelger ,
    can y tell me the full command which i'll use ????
    the problem is to escape the "",/ characters ,, so the final result will look like this
    Application_Path\sms.exe /p:+1012121212 /m:"message body goes here" /l /t
    the host needs to check for the operating system??
    Again Thanks..

  • Passing parameters to oracle rports from oracle forms

    Dear all,
    Can anyone tell me how to pass parameters from oracle forms 10g to oracle reports 10g ,i want to hide my connection string and parameteres while open the report through web
    can anyone plese help me out to solve this problem.

    Hi,
    I had trail as advised, but anticipated results were not observed.
    Here is the named configuration in formsweb.cfg
    [NMPT]
    form=D:\NMPT\FORMS\FHOPENFORM.fmx
    userid=hmsprod/hmsprod@hindalco
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    imageBase=CodeBase
    separateFrame=True
    lookandfeel=oracle
    logo=none
    splashScreen=no
    pageTitle =Test Application
    background=no
    colorScheme=blue
    archive_jini=f90all_jinit.jar,icons.jar,frmwebutil.jar,jacob.jar
    archive=f90all.jar
    height=768
    width=1024
    envFile=nmpt.env
    otherparams=useSDI=yesLOCATIONID=NMPT # new parameter which I want to access in my form
    the URL is as follows:
    http://MyPC:8888/forms90/f90servlet?config=NMPT
    But I am unable to open the login page

  • Calling a procedure from Oracle Forms with OUT parameter

    HI,
    Can anyone tell me in detail how to call a procedure with OUT parameters from Oracle Forms 6i ?
    Thanks in advance.

    Hello,
    Just provide the out parameter in the call:
    Declare
      amount   number; -- OUT number argument populated by the procedure
    Begin
      -- call the X procedure --
      x( amount ) ;
    End;Francois

  • Search in Oracle forms

    Dear professionals,
    how to search in oracle forms by using toolbar: (press enter query key + press execute key) using next criteria:
    1. value in date item is less then some value (ex. date_item <01.02.2011) picture
    2. how to search NULL values in date items, and non date items (IS NULL doesn't work)
    it's not problem to define dynamically such criteria: set_block_property('block_name',default_where,'date_item IS NULL') OR set_block_property('block_name',default_where,'date_item <'01.02.2011'').
    is there any useful link for oracle forms search tips ?
    Thx in advance,
    Adnan
    Edited by: adnanBIH on Feb 8, 2011 11:18 AM

    Zaafran Ahmed wrote:
    You can use substitution variables like I mentioned in my previous post. In Enter-Query mode, enter :V and then execute query, it will popup a Query/Where dialog and in that you can type your condition like
    YourDateItem BETWEEN ADD_MONTHS(SYSDATE, -1) AND SYSDATE
    -- or
    YourDateItem < SYSDATEIf you are using Forms10g, then see the above link from Francois. It suggests you to enable this feature by setting FORMS_RESTRICT_ENTER_QUERY=FALSE in DEFAULT.ENV file.
    Hope it helps!
    Edited by: Zaafran Ahmed on Feb 8, 2011 9:09 AM
    maybe this could help.
    http://stackoverflow.com/questions/451047/query-where-dialog-in-oracle-forms-10g
    FrancoisThx a lot guys, it works now. I changed default.env file, and it's possible to search by complex criteria.
    But, it's still more complex for common user to learn sql in order to custom search then right click in MS Access and choose Filter by selection, for example...

  • Launching web aplication from oracle Forms

    1) How to launch any other web application from from oracle Forms application.
    2) Can we pass parameters from Oracle forms application to other web application? if yes how?
    Help me

    2) You can use global variables or you can use the call_form built-in and share_library_data = yes. Recommended by Oracle.

  • How to know query is fired from Oracle froms or Reports

    Hi,
    I am using oracle database 11g Release 2.
    I use oracle enterprise manager to find which query requires more time to execute but how can i find which user is firing this query and this query is fired from oracle form or from oracle reports.
    Database: 11g R2
    O.S: Windows 7 professional
    Forms & reports : 11.1.2
    Need Help..

    But how can i frind the query is run by user is from oracle forms or from oracle reports.
    How can i get the name of form or report from where user is running.did you read the document about v$session attached in the other post?
    You have the answer there.
    If you want the exactly query, this is not the place. We try to help, not do your job.

  • Developering ADF form in query mode (Oracle forms simulation)

    Hi,
    we have a requirement for developing the existing Oracle form using Oracle ADF. The existing Oracle form displays the form in query mode by default. We can enter the search criteria in any of the text fields and then execute query to get the results. If the user does not enter any search criteria, then the form loads specific record based on default criteria into the form. Could you please help developing similar form using ADF.
    At present I created the view object with one bind variable and dragged the view as ADF form to the jspx page. Then I am launching the form in query mode (executing the find method on the view object using operation binding at the time of loading the page). After entering the query criteria in the form, If I click on a button I am executing a method in the managed bean. In the managed bean I am executing the "Execute" operation on the view and it is working fine.
    But my problem is if the user does not enter the search criteria I have to pass default parameters to the view object and return the default record in the form.
    Can you please help in resolving the issue.
    Thanks and Regards,
    S R Prasad

    Hi Frank,
    Thank you for providing information. I created the query panel with the table by dragging all the named criteria. But this is not the look we are expecting for this form. As we have to deveop ADF form with the same behavior as oracle forms, the user must be in a position to edit the data in the same field as that of query field.
    As an example, we have to design a form for Dept table. We have to display all the columns of the dept view in the form at the time of launching the form in query mode. Once the user enters any search criteria in the form, we have to perform search and display the record(s) matching the query criteria in the same columns displayed in the form. User should not see any changes in the form layout.
    If the user does not enter any data in the form, then we have to display the record(s) in the form with the specific department id(This department id can be calculated based on the data in another table).
    Can you please help us in resolving the issue.
    Thanks and Regards,
    S R Prasad

  • For Update Query from ORACLE Forms

    Hi
    We are using Oracle Forms 10g running with 10g database 10.2.0.1.0. We happend to see a query which is getting generated in AWR report like Select rowid, all_columns from TableName for Update of C1 Nowait. But no such query is really written in forms and we are aware that, Any query prefixed with rowid is definitely executing from Forms. But how the ForUpdate and Nowait clause is appended to the query.
    We have checked the following properties in the database Block
    *1) Locking Mode is set to Automatic*
    *2) Update Changed Columns only is set to YES*
    *3) Query all records is set to No (Though this particular property may not be relevant to the issue)*
    What is the property or setting which might trigger such a query from ORACLE Forms with ForUpdate and Nowait clause.
    Any ideas/suggestions on why such behaviour. Please have a healthy discussion on this. Thanks in advance.

    you can't dynamically add a query to the data model in reports.
    You should look into the XML based customization of Oracle Reports. This will enable you to define a report dynamically by creating a definition in XML.
    Also another option is to have the report with a query in it and use lexical parameters in reports to pass the query definition or just the where part of it.
    Look at the reports online help for both of these solutions.

  • Index Usage from SQL query in Oracle Forms

    Would using LIKE/OR in where clause (of an indexed column) will force the the query to NOT use INDEX. We have these where clause in Oracle Forms Records Group.
    Below are two examples...
    1. If we have a where clause with LIKE would that NOT use the index?
    Example: ColumnName like :block.Column||%
    2. How about having an OR clause?
    Example: and (ColumnName = :block.column or :block.column is null)
    Thanks

    Hi
    Answer 1: Where with like clause WOULD use the index.
    In this example index on ColumnName
    Answer 2: Write better where:
    Example: and (:block.column is null or ColumnName = :block.column)
    When :block column is null then statement after 'or' is not used. Index will not be used with RBO, i think.
    The best way to be sure is to look at explain plan on the original query.
    Regards
    Kuba

  • Using a Sum query in Oracle Forms

    Greedings,
    I have the following query which works fine in PL/SQL but i cant get it working in Oracle forms as i get an error in SUM(SELECT...) . Any quidance on how i should fix my query to work in Forms?
    select
       Sum((SELECT kl.amount
                FROM S03_a_salfldg@oracle_to_sun kl
                WHERE Trim(kl.accnt_code)=Trim(a.acnt_code)
                AND kl.period between 2008001 AND 2008012 AND ROWNUM=1)) AS actual
       from so_budgets_cat a,a01_acnt@oracle_to_sun b,so_budgets_com c,so_budgets d
       where trim(a.acnt_code)=trim(b.acnt_code)
       AND a.cat=c.cat
       AND TRIM(d.acnt_code)=trim(a.acnt_code)
       AND d.business_object=10000103883
       AND d.business_object=c.bus_object
       AND d.business_object=a.business_object
       AND SubStr(d.period,1,4)=Trim(c.PERIOD_Y)
       AND C.period_Y BETWEEN substr(2008001,1,4) AND substr(2008001,1,4)
       GROUP BY a.cat,a.acnt_code,c.com,a.cat_desc,b.descr,d.acnt_code
       order by a.cat,a.acnt_code,c.com,a.cat_desc,b.descrThanks in advance

    And what error would that be? Also where are you using this query? In a from clause query? Also you didn't specify any version infos; as forms has it's own PL/SQL engine there is a possibility that you run in a version problem if the code runs fine in SQL*Plus but fails to compile in forms (e.g. when running Forms 6i against a 10g database). Without those informations answers to your question are based on guessings, and most likely will result in a question-answer ping-pong.
    cheers

Maybe you are looking for