How to pass parameter from one form to another

Hi,
I have created a form based on a procedure . Now i want to pass a filed value from this form to another form . How can i do this.
How can i pass a vlue from one form to another form in oracle portal.
Thanks

At last - I've managed to get this to work! Is this documented anywhere at all - I just guessed it based on other people's code!
OK, to prove the example here is what I did:
I have a form referencing the DEPT table.
I created a item called 'Search' and of type button.
I created a 'custom' PL/SQL block and added the following code:
declare
v_deptno NUMBER;
begin
v_deptno := p_session.get_value_as_NUMBER(
p_block_name=> 'DEFAULT',
p_attribute_name => 'A_DEPTNO');
PORTAL30.wwa_app_module.set_target('http://server/pls/portal30/app_schema_name.EXAMPLE_SQL_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values= 25&p_arg_names=_portal_max_rows&p_arg_values=25&p_arg_names=DEPTNO&p_arg_values='| |LTRIM(TO_CHAR(v_deptno)),'CALL');
end;
Note: you need to reference the column with an 'A_' prefixing the columm name.
I left the name 'DEFAULT' as it is.
OK so I set this to a variable and now want to call a Report called EXAMPLE_SQL_REPORT which was created with the following code:
select * from scott.emp where deptno = :deptno;
The bind variable being the custom parameter for the report.
I called the new report with the PORTAL30.wwa_app_module.set_target procedure and put in the full URL path (in this example) of the server and report.
I hope this helps!
John
null

Similar Messages

  • How to pass data from one Form to another Form

    I am writing a Login form to allow user to access MySQL but the Authentication is taking place in another form that actually does the work
    how do I pass the username and password form the Login form to the worker form.

    1. don't do these stuffs on the UI classes, let them only be responsible for displaying UI.
    As for the passing information back and forth from separate objects (forms are classes and form instances are objects) you can read up on the various appropriate design patterns, especially those implemented in MVC models.

  • How to Pass array from one form to another

    Hello Everyone,
    I have an array defined like this ....
    type array_type IS table of varchar2(4000) index by binary_integer;
    v_arr array_type;
    When I pass it next form I accept it like this...
    eEmail          IN owa_util.vc_arr     
    that works fine, as fas as user picked something......If user didn't pick anything....the form explodes....
    How can I do error handling by doing this....
    courses          IN owa_util.vc_arr          DEFAULT NULL
    as DEFAULT NULL doesnt work in case of an array....
    Thanks,
    Harsimrat

    and there is a fourth way in the database.
    Create a package with those variables in the package-spec you wish to transfer. Then create set- and get-functions on this structure.
    With this technique you can pass not only scalar-values - you can pass complex structures and a full set of data through an array for example

  • How to pass values from one form to another.

    Dear all,
    i have a table A i want to double a text item and open another form B. then setting values or adding values in it. i want to close the form and open the form A. the values selected in form B. i want to send to the form A.
    please help me.
    Muhammad Nadeem

    Hi
    To send value to the form A from B, you do this action.
    1. Declare a parameter list:
    pl_id paramlist;
    2. Create the parameter list:
    pl_id := create_parameter_list('ParameterLilst_FormA');
    3. Add all value to the parameter list.
    add_parameter(pl_id, 'variable1', text_parameter, 'valueOfVariable');
    4. Open the form B and you send it the parameter list.
    open_form('B', activate, session, pl_id);
    NOTE: In there form B you might have some parameters having the same name of the variable added to the parameter list:
    e.g.: :parameter.variable1

  • How to pass values from one form to another form

    Hi,
    I have two forms. Say Form1 and Form2. I am having a field called employee number in form1. I have button named Next in form1.
    When the "Next" button is clicked I want to pass the employee number entered in form1 to form2 and display this number in form2.

    Hi,
    You can make use of the call/go api in the success procedure of the form. Here is a sample code.
    declare
    ticket_no varchar2(20);
    flight_no varchar2(20);
    blk varchar2(30) := 'DEFAULT';
    begin
    ticket_no := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_TICKET_NO');
    flight_no := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_FLIGHT_NO');
    go('<product_schema>.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1384225689&p_arg_names=_sessionid&p_arg_values=&p_arg_names=ticket_no&p_arg_values='||ticket_no||'&p_arg_names=flight_no&p_arg_values='||flight_no);
    end;
    This sample passes the values of ticket_no and flight_no to another form.
    Thanks,
    Sharmil

  • Passing a parameter from one form to another

    Hi
    I'm trying to pass a parameter from one form to another. I've read lots of postings about this, and I have succeeded in calling the second form using code behind one of the existing Portal buttons (insert). Here is the code:
    DECLARE
    pro_id NUMBER;
    pro_link VARCHAR2(1200);
    BEGIN
    pro_id := p_session.get_value_as_number(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_PRO_ID');
    pro_link := portal30.wwv_user_utilities.get_url(
    'CINTRA_APP.PRO_LINK_1',
    'WKG_PRO_ID',pro_id,
    '_WKG_PRO_ID_cond','=');
    PORTAL30.wwa_app_module.set_target(pro_link,'CALL');
    END;
    Trouble is, the parameter does not get passed. This could be because:
    the field I'm trying to populate is based on an LOV ?
    the target form is not set up to receive parameters? (I read this somewhere, but how do you do it?)
    Thanks
    Manfred

    Dear InoL
    My Header Form coding as follows.
    When I press the button to move to the lines the following code executes
    PASSING FORM CODING;
    DECLARE
         pl PARAMLIST := GET_PARAMETER_LIST('PL_AT');
    BEGIN
         IF NOT ID_NULL(pl) THEN
              DESTROY_PARAMETER_LIST(pl);
         END IF;
         pl := CREATE_PARAMETER_LIST('PL_AT');
         ADD_PARAMETER(pl,'P_AT',TEXT_PARAMETER,:HWSI_ASSET_TAG);
         CALL_FORM('E:\IT_SYSTEM\6i\HWDYNAMICINFO.FMX',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY,PL);
    END;
    RECEIVING FORM CODING;
    Written on WHEN_NEW_FORM_INSTANCE
    BEGIN
         IF :PARAMETER.P_AT IS NULL THEN
              GO_ITEM('NZK_HW_DYNAMIC.OS_ASSET_TAG');
              ENTER_QUERY;
         ELSE
              SET_BLOCK_PROPERTY('NZK_HWSTATIC_INFO',DEFAULT_WHERE,'HWSI_ASSET_TAG ='||:parameter.p_at);
             SET_BLOCK_PROPERTY('NZK_HWSTATIC_INFO',DEFAULT_WHERE,'HWSI_ASSET_TAG ='||:parameter.p_at);
              EXECUTE_QUERY;
              GO_ITEM('NZK_HW_DYNAMIC.OS_ASSET_TAG');
         END IF;
    END;
    Created PARAMETER as P_AT, Data Type CHAR, MAX LENGTH 30
    Thank you
    NZK

  • How to pass Data from one form to the other

    Hi all
    Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
    I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
    If any one of u have any idea, give me a reply
    Thank you
    Suhasini

    If you choose the second alternative you should erase these global variables after the second form is opened
    You can erase the global variable using:
    erase('global_var')
    Greetings,
    Sim

  • OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.

      How to pass variable from one prompt to another prompt in dashboard page.
    I have two prompt in dashboard page as below.
    Reporttype
    prompt: values(Accounting, Operational) Note: values stored as
    presentation variable and they are not coming from table.
    Date prompt values (Account_date, Operation_date)
    Note:values are coming from dim_date table.  
    Now the task is When user select First
    Prompt value  “Accounting” Then in the
    second prompt should display only Accounting_dates , if user select “operational”
    and it should display only operation_dates in second prompt.
    In order to solve this issue I made the
    first prompt “Reporttype” values(Accounting, Operational) as presentation
    values (custom specific values) and default presentation value is accounting.
    In second prompt Date are coming from
    dim_date table and I selected Sql results as shown below.
    SELECT case when '@{Reporttype}'='Accounting'
    then "Dates (Receipts)"."Acct Year"
    else "Dates (Receipts)"."Ops
    Year"  End  FROM "Receipts"
    Issue: Presentation variable value is not
    changing in sql when user select “operation” and second prompt always shows
    acct year in second prompt.
    For testing pupose I kept this presentation
    variable in text object of dashboard and values are changing there, but not in
    second prompt sql.
    Please suggest the solution.

    You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.

  • Not able to pass parameter from one fragment to another fragment in another taskFlow

    Hi,
    I'm trying to pass parameter from one fragment to another fragment and want to print the parameter value in second fragment.
    i have inputtext in first frag---
    first fragment belongs to one taskflow1 and this taskflow1 i had darg and drop to one mainPage.
    Under taskflow1 itself i drag and drop one taskflow call activity and on top of that i drag and drop another bounded taskflow as taskflow2
    under taskflow2 i have one fragment as fragment2and in that i have one outputtext field, now here i want to print the value from fragment1--inputtextfield value
    to achive this i had tried many ways but somewhere doing mistake please explain step by step.
    Thanks
    Mahesh

    In addition you need to tell us your jdev version!
    Can you elaborate on your use case a be more?
    On which event this should happen?
    In general contextual events should allow you to implement this, however, as I don't understand the use case, I find it hard to help.
    Timo

  • Pass value from one form to another (Dev 6i)

    How to pass a value/variable from one form to another called form in Oracle Dev 6i

    1. One-way communication (calling form sends information to called form)
    - using Forms :PARAMETER variables:
    OPEN_FORM / CALL_FORM (form_name, ..., parameter_list);
    2. Two-way communication
    2.1. If Forms modules runs in different database sessions
    (using "OPEN_FORMS (..., SESSION, ...);" called form runs in a new database session),
    you can use:
    - Forms global variables (:GLOBAL)
    - global record groups, created using GLOBAL_SCOPE parameter:
    rec_grp_id := CREATE_GROUP_FROM_QUERY (..., GLOBAL_SCOPE);
    - database "global" Application Context (available from Oracle 9i)
    2.2. If Forms modules runs in the same database session you can use methods in 2.1 plus:
    - library package data; with SHARE_LIBRARY_DATA parameter,
    Forms that have identical libraries attached can share library package data:
    OPEN_FORM / CALL_FORM (form_name, ..., SHARE_LIBRARY_DATA, parameter_list);
    - database package data (but, you must use get/set methods)
    - database "private" Application Context (available from Oracle 8i)
    Regards,
    Zlatko Sirotic

  • Passing parameter from one LOV to another

    How can I pass a parameter from one LOV to another so I can restrict the number of recoder of the lower LOV based on what the user have selected in the upper LOV..This is being constructed on the customized page of a report.
    Thanks..

    If your using release 2, you may have a problem.
    A combobox LOV can be used to link 2 LOV's but, the form they are on can't do a query, it fails to return any records. See bug 2141909.
    A popup LOV can be used to do a query, BUT, there is a bug when you try to link 2 LOV's. See bug 2505560.
    They are trying to do a backport, so submit a tar about it.
    Larry

  • Passing parameters from one form to another

    Hi,
    I'm trying to pass parameters from 1 form to another. I would be able to call the form, but the parameters are not passed to the calling form. I do not know what's the problem. Basically, the 2nd form shows up with blank values in all the fields. Below is my code. Anybody expert in this, pl. help.
    By the way my 1st form is based on PROCEDURE.
    declare
    s_requestor           number(10);
    s_customer_impact      varchar2(4000);
    s_creation_date      date;
    l_url                varchar2(4000);
    blk               varchar2(10) := 'DEFAULT';
    begin
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_P_REQUESTOR',
    p_value => 88888);
    s_requestor := p_session.get_value_as_number
    (p_block_name => blk,
    p_attribute_name => 'A_P_REQUESTOR');
    s_customer_impact := p_session.get_value_as_varchar2
    (p_block_name => blk,
    p_attribute_name => 'A_P_CUSTOMER_IMPACT');
    s_creation_date := p_session.get_value_as_date
    (p_block_name => blk,
    p_attribute_name => 'A_P_CREATION_DATE');
    l_url:=('/pls/portal/PORTAL.wwa_app_module.link?
    p_arg_names=_moduleid&p_arg_values=1794837934&
    p_arg_names=_show_header&p_arg_values=YES&
    p_arg_names=REQUESTOR&p_arg_values='||s_requestor||'&
    p_arg_names=CREATION_DATE&p_arg_values='||s_creation_date||'&
    p_arg_names=CUSTOMER_IMPACT&p_arg_values='||s_customer_impact);
    PORTAL.wwa_app_module.set_target(l_url);
    end;

    the way to call one form from another and pass values for parameters from the procedure is like this:
    PORTAL.wwa_app_module.link (
    p_arg_names => PORTAL.wwv_standard_util.string_to_table2('_moduleid:_show_header:REQUESTOR:CREATION_DATE'),
    p_arg_values => PORTAL.wwv_standard_util.string_to_table2('1191314879:YES:'||s_requestor||':'||s_creation_date));
    and so on.
    Hope it works for you

  • How to concatenate values from one form to another form using calculated columns in sharepoint?

    Im new to Sharepoint.
     I need to know , how to fetch the x1 , x2 values from one form to another form x1, x2 fields, this wants to happen when 2 forms ID fields(Drop down field) are same.
    ex:
    first module I have 3 fields like, "Marketing ID" , "Company name" , "Vendor name".
    second module I have the same related fields like "Marketing ID" , "Company name" , "Vendor name" and some more fields.
    now i need to fetch the information from 1st module to 2nd module ( "Company name" , "Vendor name" ) when I select the Marketing Id(Drop down - field) 
    it should be want to show in Calculated columns.
    Can someone make a suggestion on how I can do this.
    Thank you so much for any help you may be able to provide.
    Sincerely
    Ahalya Babu

    Calculated Columns can only generate a value from fields of the current item. And only some types of fields (for example, it can't use a lookup column).
    Consider using a workflow to accomplish your goal.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to handle the date attribute,passing parameter from one page to another

    hi Friends,
    i want to pass data attribute from one page to another page-
    i am passing like below ,in jdev log window i am getting below error.
    String StatusUpdateDate = row.getAttribute("StatusUpdateDate");
    params.put("StatusUpdateDate",StatusUpdateDate)
    Error(121,50): incompatible types; found: java.lang.Object, required: java.lang.String
    Suppose i am passing like below , while moving one page to another i am getting below error in application
    String StatusUpdateDate = row.getAttribute("StatusUpdateDate").toString()
    Status Update Date - JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:26-MAR-2009
    please can any suggest me how to handle this error.
    Thanks and Regards,
    vamshi

    Hi Pratap, Thanks for your help
    it was my mistake that previously property it was varchar2, now i have changed as you suggested every thing. still i am getting error. this is my code-
    AM CODE-
    public void xxselection(String Name, String Email,String Product,String Region, DATE StatusUpdateDate)
    DetailVOImpl vo1=getDetailVO1();
    vo1.initQuery2(Name);
    Row detailRow = vo1.createRow();
    detailRow.setAttribute("Name", Name);
    detailRow.setAttribute("Email", Email);
    detailRow.setAttribute("Product", Product);
    detailRow.setAttribute("Region", Region);
    detailRow.setAttribute("StatusUpdateDate", StatusUpdateDate);
    vo1.last();
    vo1.next();
    vo1.insertRow(detailRow);
    detailRow.setNewRowState(Row.STATUS_INITIALIZED);
    Controller- Process Form Request- Source page
    if (pageContext.getParameter("Detail")!= null)
    String Name=row.getAttribute("Name").toString();
    String Email=row.getAttribute("Email").toString();
    String Product=row.getAttribute("Product").toString();
    String Region=row.getAttribute("Region").toString();
    DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
    HashMap params =new HashMap();
    params.put(" Name", Name);
    params.put("Email",Email);
    params.put("Product",Product);
    params.put("Region",Region);
    pageContext.putTransactionTransientValue("StatusUpdateDate",StatusUpdateDate); //As you suggested
    pageContext.forwardImmediately("OA.jsp?page=/xxm/oracle/apps/pos/stg/webui/DetailStagePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    another page Controller-Process request-Destination page-
    String Name = pageContext.getParameter("Name");
    String Email = pageContext.getParameter(" Email");
    String Product = pageContext.getParameter("Product");
    String Region = pageContext.getParameter("Region");
    DATE StatusUpdateDate=(DATE)pageContext.getTransactionTransientValue("StatusUpdateDate");
    Timestamp tstmpStatusDate=StatusUpdateDate.timestampValue();
    System.out.println("tstmpStatusDate"+tstmpStatusDate);
    Serializable[] parameters1 = {Name,Email,Product,Region,tstmpStatusDate};
    am.invokeMethod("xxselection", parameters1);
    Error - getting at while running the application page to page
    No method with signature - No method with signature - xxselection(class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String)
    every thing is getting passed except DATE Attribute, please check the code and update me
    Thanks in Advace-
    vamshi

  • Pass parameter from one page to another

    Hi,
    I have 2 pages:
    - the welcome page with a combo box P101_OLD (list of values) with a submit button wh'os opening the 2nd page with that region source:
    select
    "ID",
    "ID_POSTE",
    "PERIODE_ID",
    "ADMIS",
    "INSCRITS_RAMQ",
    "INSCRITS_AUTRES",
    "ENREGISTRÉS",
    "VENDUS",
    "AUTRES",
    "COMMENTAIRES",
    "DESCRIPTIONOLD",
    "VOLUME"
    from "#OWNER#"."STATISTIQUES"
    where instr(':'||:P101_OLD||':',':'||STATISTIQUES.DESCRIPTIONOLD||':') > 0
    What's wrong ? How to pass a variable from one page to another?
    Thanks

    are you submitting the form once they click on the combo box? or use select list with submit.
    I have a form with a drop down say for names. after selecting a value I have to click the search button (basically it submits the page and redirects to page 2)
    unless we save the state of the combo box, it won't retrieve a value in page 2
    in page 2 all I had to do was refer to the page 1 field name :P3_TEST

Maybe you are looking for

  • How to post the revenue on exchange rate in SAP ?

    Hi All, a Company gets a g.l. bank account in USD (account currency). The local currency is EUR. 2010.01.01: its balance was 9.527,23 USD (account currency). Given a currency exchange rate 1 USD x 1,4406 EUR, the amount of the account in local curren

  • My emac is too loud, how can that be fixed?

    Hello all macfans... my friend has an emac g4 superdirve that has gotten reallllly loud.. is there a way we can get it to keep it more quiet..? (the 5 year old PC is quieter than the 1 year old emac) Thank you all, I wish you a Macful day (i have to

  • Pls can any one suggest me the Existing Report Name for Active and InActive

    Hi all ,            pls can any one suggest me the Existing report name for displaying Active and inactive vendors . Rgds Rafi .

  • MV45AFZZ : GETWA_NOT_ASSIGNED

    Hi,   I'm getting error while sales order creation. select  MANDT           VBELV           POSNV           VBELN           POSNN           VBTYP_N           RFMNG           MEINS           RFWRT           WAERS           VBTYP_V           PLMIN     

  • Server performance requirements by platform

    Are there any whitepapers or internals documents on # of users, configurations and scalability testing? null