passing parameters between Forms

Hello

I want to pass the parameter between the forms. I use forms6i.

Have two forms, login and loginsuccess.
and in the login screen I need to pass parameter to the loginsuccess.

Trigger when_button_pressed of the login form I wrote
DECLARE    
   pl_id   ParamList;    
   pl_name VARCHAR2(10) := 'tempdata';  
BEGIN
   pl_id := Get_Parameter_List(pl_name);    
     IF Id_Null(pl_id) THEN      
          pl_id := Create_Parameter_List(pl_name);  
          Add_Parameter(pl_id,'name',TEXT_PARAMETER,:txtbx1);     
          CALL_FORM('C:\test_forms\loginsuccess',hide,no_replace,no_query_only,pl_id); 
     end if;
Now in order to get the value of 'name' in the loginsuccess what code I have to wrie?

Pls help

Hello
Use a code like this...

DECLARE
     pl_id   ParamList;
     pl_name VARCHAR2(10) := 'tempdata';
BEGIN
     pl_id := Get_Parameter_List(pl_name);
     IF NOT Id_Null(pl_id) THEN
          DESTROY_PARAMETER_LIST(pl_name);
     END IF;
     pl_id := Create_Parameter_List(pl_name);
     Add_Parameter(pl_id,'name',TEXT_PARAMETER,:txtbx1);
     CALL_FORM('C:\test_forms\loginsuccess',hide,no_replace,no_query_only,pl_id);
END;

Now in order to get the value of 'name' in the loginsuccess what code I have to wrie?

You must create a parameter called name in the form of loginsuccess in the browser of the object under the settings option.
And you can use the value for this parameter in the form loginsuccess as...

My_Variable:=:PARAMETER.NAME;

-Clément

Tags: Oracle Development

Similar Questions

  • pass variables between form

    Hello

    I use oracle forms 6i.
    How can I pass variables between Forms?
    Consider the scénarion of a login form.
    Once a user logged in successfully, a new form is displayed, where his name is to be displayed
    like '< user > welcome. '
    If name must be past form at the home page login form.

    Is this possible with Oracle?

    Adkins

    Adkins,

    For Global Variables just assign a value to that, and it's initialization. Or you can use

    DEFAULT_VALUE(NULL, 'GLOBAL.');
    

    Make sure that you assign the appropriate value to the global variable before opening the new form.

    And for the parameter, try.

    DECLARE
         Pl_Id PARAMLIST;
    BEGIN
         Pl_Id := GET_PARAMETER_LIST('tempdata');
         IF NOT ID_NULL(Pl_Id) THEN
              DESTROY_PARAMETER_LIST(Pl_Id);
         END IF;
          Pl_Id := CREATE_PARAMETER_LIST('tempdata');
          ADD_PARAMETER(Pl_Id, '', TEXT_PARAMETER, '');
          Open_form('', ACTIVATE, SESSION, Pl_Id);
    END;
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

    Published by: Manu. April 14, 2010 09:16

  • Passing variables between Forms

    Hi, I am currently working on a rock, paper, scissors project in my class oracle. I was wondering if an oracle form to pass variables between them. I created a login form, and I would once a user logs on to change his user name to one opponent text fields username in the form of game. Is it possible and in this case you may be able to show me an example of passing variables between Forms? Thank you

    You can use the Globals for this purpose. I mean in your login form when your will enter its correct information then and it press OK to the newspaper by so you can for example store their username in the GLOBAL variable

    :GLOBAL.USERNAME:=:FORM.FIELD_NAME;
    

    This global variable, you can access a form any of the current session.

    -Clément

  • passing parameters between different areas to help Navigate the column

    Hi all

    I know I can pass parameters between the reports through a few subjects by using Url go. However, I want to keep the functionality of the menu displayed when you use defyining multi target in the s column Navigate with drop-down feature. So the problem I encountered is the sequel

    (1) when I set some goals to navigate - is it possible to transfer parameters to these links point to destinations? (I tried to add them at the end of the link in the field "Target", but without success)

    (2) or alternatively - when you use GoUrl, can I define a < would display a href link that might point to places menu and mulitple drop down?

    I really appreciate your help with above
    Best regards
    Wojtek

    Published by: user1291979 on October 7, 2009 11:51

    -without add nothing more to this link, selected GEOGRAPHY. COUNTRIES must be passed to destination and > must complete guest there? It works that way in my environment

    If you are using navigation on the current query column properties and component the dashboard then the query current source column is analyzed on the quick dash in both have SAME_TABLE. The names of SAME_COLUMN, else parameter is not parsed.

    Target: / shared/Adecco01/_portal/01 edge/weekly table dashboard
    You don't enter anything

    He must complete only the GEOGRAPHY. COUNTRIES in the reports within the area where the source report comes from?

    If you use the navigation on the properties of the column and the call to another then asks the current column is analyzed on the query target only if in the SAME_TABLE target. SAME_COLUMN value IS INVITED, another parameter is not parsed. Report of the target and the source may be on different areas but we need SAME_TABLE. Names of SAME_COLUMN.

    If you use GO URL, URL of the dashboard EDGE or the other, I already explained.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • passing parameters between pages

    Hello

    I have 2 custom pages, navigate from one page to another. I want to perform certain conditions on the other page-based features. For this I need to pass Boolean parameters between pages, but don't know how.

    I checked the putsession, putparameter, but somehow, they don't work.

    Thank you

    You can use pageContext.putTransactionTransientValue () and pageContext.getTransactionTransientValue () to pass values between pages.

    Prasanna-

  • Passing parameters between sessions in openscript.

    Hello

    I currently have 4 scripts (test1, test2, test3 test4 - all are web database load scripts). I have 5 script (criterion 5) calling Run method of all 4 test scripts in the test1 sequence
    test2
    test3
    test4
    using the active script feature. In the stream, 1 test result should be gone to the 2 test, then test 2 uses data from test 1 and test result 2 should go to 3 and finally test 3 to test 4. Is there anyway to control the flow of data between scripts. (Basically, I want to know if test 5 the main script, anyway to control the flow of parameters among other scripts.) Any help would be really appreciated.

    Thank you
    John

    Hi John,.

    You define a variable with global scope in test5. If this variable will be available in all internal scripts. So update the value of the variable by the internal script will help you to transmit data between scripts.

    Thank you and best regards,
    Rajesh

  • How to pass parameters to form Standard of Apps to a Custom Form

    Hi all

    I am using oracle apps R12

    I work in the Po

    I created a custom form attached on the special menu.

    When we sail in. - request summary - when you click search it will display the summary request header, and when we click lines it shows lines summaries.


    In their query first form summary field lines is number-(requisition number). Now I open my form custom from the Tools menu, then the number field to requisition summary lines is to say no requisition number to pass to the custom form.

    Can someone give me please the steps to do this.

    Concerning
    Srikkanth

    Published by: Srikkanth.M on August 18, 2011 10:51

    You do this using global variables.
    You set the global variable in the form of call.
    And then you use the global variable in the form called.

    All this can be done by using customizations.

    See http://erpschools.com/articles/forms-personalization-tutorial for a guide step by step.

    Hope this helps,
    Sandeep Gandhi

  • passing parameters between framework

    I have e buttons,

    I need pass a parameter between frames, like this:

    If I chose btn1 gotoframe 10 and the setting is 'pt', can I do this?

    How?

    assign the value of a variable in frame 1.  Subsequently, this variable will be set to any setting, you're in.

  • Passing values between form

    Hi all!

    I have a small question. I started to work on ORacle APEX today and have to pass on the value of my Login Page to the employee detail Page. I know that there is a similar to position
    How to pass a value in form
    But I could not get my reply in this way. As I am lack of time, I can't get a lot.

    Scenario:

    Login page has P111_EMP_NO AND P111_PASSWORD. On submit, there is a process called "Login", where he calls a custom authentication package and verifies its authenticity. After its success, I want this P111_EMP_NO to go to the details used report Page where it displays information about the employee.

    Your help is appreciated.
    Thank you

    Hello

    The value contained in P111_EMP_NO should be available in the APEX provided the substitution string "APP_USER.

    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/concept.htm#sthref166

    CITY

  • need help pass parameters to forms

    Hi guys a quick flow of my questions and I am hard to reach it.

    I have a form of a tree with a list of values in the tree. When you double-click one of the values, it opens a new form and pass in a parameter list that contains the value in the tree. On one of the triggers I can check the setting and ask the form based on this setting. This works perfectly right now.

    The problem comes when you double-click the value in the tree, but the form is already open.

    Currently, I check if it is already open and if the form is already open, use GO_FORM rather than OPEN_FORM.

    The problem is that then I can't move in my list of parameter by using GO_FORM and the form has no parameter to query the records.

    No idea how I can get this to work?

    I thought globals, but several people may access that form at the same time and this could cause problems if two people using it at the same time. Any other ideas?

    Hello
    instead of using the parameter you can use the global variable

  • Pass values between different areas on the same page.

    Hi guys!

    I'm developing a simple application where we have the list of students. I'm displaying information on a separate page for each student. Do you have any idea how and if I can pass parameters between regions, on the same page? I have a view showing, student card name information etc, and I want to create another view on the same page, which will be the student and will return a list of its subscribed courses.

    Part of my database is something like this:

    -------------

    Students

    ------------

    ID (PK)

    ------------

    -----------------------

    Student_course

    -----------------------

    ID (PK)

    Student_id (FK)

    Course_id (FK)

    ----------------------

    ----------------

    Course

    ----------------

    ID (PK)

    You have no idea how this can be done? I found information how to pass parameters between pages, but not on the same page.

    Thanks in advance!

    P.S. I am using the Application Express (declarative programming via a web browser), the use of the Application Builder.

    I discovered that I really had to. I just had to replace the "1" in my sql query with: P9_STUDENT_ID

    Thanks for your help anyway!

  • Pass parameters to the box of the HTML form to a stored procedure

    I'm always looking for a solution to my problem of forms. For the record, I don't use Express applications to create my application - I use PL/SQL right. I need to know how to pass parameters from the box to my Web form. I welcome people select one or more checkboxes in a form that calls a remove function to delete the selected records. What I read in Oracle of the "Guide to the developer of database applications - Fundamentals" is not useful to me. If someone could tell me some examples, maybe I could see what I'm doing wrong. Here is what I wrote in "the developer of database applications - fundamentals Guide ':

    All the boxes with the same NAME attribute are a group of checkbox. If none of the boxes in a group is selected, the stored procedure receives a null value for the corresponding parameter.

    If a check box in a group is selected, the stored procedure receives a single parameter of VARCHAR2.

    If more than one check box in a group is enabled, the stored procedure receives a parameter with the type of PL/SQL TABLE OF VARCHAR2. You must declare a type like this, or use a pre-defined as OWA_UTIL. IDENT_ARR. To retrieve the values, use a loop:
    CREATE OR REPLACE PROCEDURE handle_checkboxes ( checkboxes owa_util.ident_arr )
    AS
    BEGIN
    ...
    FOR i IN 1..checkboxes.count
    LOOP
    htp.print('&lt;p&gt;Checkbox value: ' || checkboxes(i));
    END LOOP;
    ...
    END;
    /
    SHOW ERRORS;

    I'm not sure that understand what your question is.

    If your web form has the following defined all with the same name:

    one
    two
    three
    

    You create and save a procedure to manage the sending of a form that contains a parameter with the name of attrib type owa_util.ident_arr for example:

    create or replace procedure handle_form(attrib owa_util.ident_arr) as
      iter number;
    begin
      for iter in attrib.first .. attrib.last loop
        -- do something with attrib(iter)
      end loop;
    end;
    /
    

    Now, the only problem with this Manager (or any other), is that if the user selects any of the boxes, or no value for the parameters expected, the Manager called with parameters missing or with on all of the passed parameters, as well as the call will error.

    To move, you need to provide default values for all parameters passed to your handler such as the settings of ident_arr, but with ident_arr settings, it's hard to do with autonomous procedures. If you place your procedure in a package you can define variables of package-level of the appropriate types that can be used as default values:

    create or replace package my_web as
      empty_arr owa_util.ident_arr;
    
      procedure handle_form(attrib owa_util.ident_arr := empty_arr);
    end my_web;
    /
    create or replace package body my_web as
      procedure handle_form(attrib owa_util.ident_arr := empty_arr) as
        iter number;
      begin
        for iter in attrib.first .. attrib.last loop
          -- do something with attrib(iter)
        end loop;
      end;
    end my_web;
    /
    

    now, when you hit in the situation where the user does not select the checkboxes, the call to handle_form will be no reviewable error on due to missing parameters, and the empty_arr will not have all the elements to iterate over so the loop in the body of the procedure will be fine and you will be able to retrieve each value of the checkbox selected attrib table when you iterate on it.

  • Unable to pass traffic between ASA Site to Site VPN Tunnel

    Hello

    I have problems passing traffic between two ASA firewall. The VPN tunnel is up with a dynamic IP and static IP address. I have attached a diagram of the VPN connection. I'm not sure where the problem lies and what to check next. I think I have all the roads and in the access lists are needed.

    I've also attached the ASA5505 config and the ASA5510.

    This is the first time that I've set up a VPN connection any guidance would be greatly appreciated.

    Thank you

    Adam

    Hello

    Regarding your opinion of configuration Remote Site ASA that you have not added the internal networks of the Central Site VPN L2L configurations at all so the traffic does not pass through the VPN.

     access-list outside_1_cryptomap extended permit ip 10.1.1.0 255.255.255.128 10.182.226.0 255.255.*.* access-list exempt extended permit ip 10.1.1.0 255.255.255.128 10.182.226.0 255.255.*.* access-list exempt extended permit ip 10.1.1.0 255.255.255.128 10.182.0.0 255.255.*.* access-list exempt extended permit ip 10.1.1.0 255.255.255.128 192.168.170.0 255.255.*.* access-list exempt extended permit ip 10.1.1.0 255.255.255.128 192.168.172.0 255.255.*.* access-list exempt extended permit ip 10.1.1.0 255.255.255.128 140.15.0.0 255.255.*.* 

    Take a look at ACL configurations above. The 'exempt' ACL is used in configurations NAT0 and tells the ASA what traffic of exempting from NAT. "outside_1_cryptomap" ACL is used to tell the traffic between the subnets should be using the L2L VPN connection.

    So in short on the Remote Site ASA these ACLs should be identical. Make additions to the LIST of VPN L2L, then try again.

    I would also like to point out that to ensure that the Central ASAs L2L VPN ACL Site contains the same networks. The ACL on the Central Site will, of course, its internal subnets as the source and the site LAN remote destination.

    THW out of ' crypto ipsec to show his " shows you that only the SA between binding Site Central network and the Remote Site LAN was established. Others have not formed as the configuration is lacking at LEAST on the Remote Site ASA. Can also be the Central Site.

    -Jouni

  • Passing parameters to the named method built-ins

    Hello

    Can I pass parameters with the "named" built-ins in forms 6i or another method?

    I tried this

    OPEN_FORM (FORM_NAME = > ' C:\Users\Roma\Desktop\NATIONAL TECH.) FMX');

    but failed ' wrong number or types of arguments error.»

    The name of the parameter is FORMMODULE_NAME in this version of the signature of OPEN_FORM.

    (Do not know why the parameter has different names in different versions of signature)

    Try

    OPEN_FORM (FORMMODULE_NAME => ' C:\Users\Roma\Desktop\NATIONAL TECH.) FMX');

  • Passing parameters from one page to another in ADF Oracle 11g Release 2

    Hello
    I'm developing an Application of Web Java EE very simple, in this I am filling a grid (table) on the first screen and on the selection of a line in this screen, I have to display the records in a form, in the next page.
    I want to transmit the information of primary keys from the grid screen to the shape of the screen (2nd page) and use this information to render the data, eventually, I'll have to perform CRUD operations.
    Please let me know how to pass parameters from page 1 to page 2 and use this data in the page 2 to return the records, Oracle ADF 11 g R2.

    Thank you.
    Rajat
    http://rajatnigam1.blogspot.com

    Published by: RajatNigam on July 4, 2012 13:16

    Same page or another page - it's all the same technique.

Maybe you are looking for

  • Best file format for 3 hours on a DVD project

    Three-hour edition dance recital. To send to DVD Copier for creating and copying. Shot on Sony cam 1920X1080p.  30 p Source camera Apple Pro Res 422. Share Main file Share as a Mastering/computer or Audio/video format? (H264 only option it) Save as M

  • compare the elitebook 8570p and 8570w

    I want to know the differences between the HP Elitebook 8570p and the HP Elitebook 8570w

  • can not get my f drive to recognize a dvd or cd is inserted?

    whenever I put in a movie or a game, I get a message asking me to insert the game

  • History of files on WIndows 8.1

    Original title: 8.1 history of files I have 8.1 pro on my home computer.  I planned history of file to run.  It backup my files, but it does not backup the files users on the computer.  Do you need to go in all profiles and select history file to run

  • How to query user on OBIEE 11 g sessions

    Hello everyone.I was asked if it is possible to save a Table, some of the information in the function "Administration > Session Management > manage Sessions", such as the user ID, last access and consultation: dashboards.Is there a system Table where