Need help in passing parameter from base page to popup page

Dear ALL,
I have a requirement as below.
I have a page having one LOV, I need to select one value from that LOV and select one button from the page then it should open a popup page with the required data in tabular format for the field i selecetd.
so i created a lov in my page and able to invoke the popup page through java script but how i can execute the query in popup page by taking the parameter whta i selected from base page.
Please help me out.

Mukul's Oracle Technology Blog: JavaScript In OA Framework
--Sushant

Similar Messages

  • Need help in passing data from one page to other page in oaf

    Dear All,
    I have a requirement as below.
    I am doing some selection in one page and populating the data in another page table region, next time when i am selecting another row and pressing the button i need to display the previous row as well as new row, how can i achieve this, currently i am able to see only the first row what i selected first.
    Ex: 1 st scenario: after passing the selected data from one page to base page the data looks like below in base page.
    1 test desc
    2nd scenarios: when i am again selcting data and passing to the base page it should be like that
    1 test desc
    2 test desc
    but currently it is showing
    1 test desc only for the 2nd case, can any one please help me on thsi , its little bit urgent
    Thnaks

    How are you passing the values to the base page? Are you using setting the retainAM parameter to true while doing a forward.

  • Need help in passing parameters from one page to another!

    Hi,
    I need to pass values that are retrieved from database from one page to another.
    But even when I use pageContext.putParameter(), I am not able to view the value in the 2nd page.
    Any pointers on how to pass parameters would be helpful..
    Thanks in advance!

    The requirement is on the main page there are 6 fields out of which 4 are read-only and are taken from the database and 1 is taken from database, but can be edited, and the 6th one is completly editable for the user. I am trying to pass these parameters using setForwardURL, and on the second page (Preview page, where all these fields are read-only), I am able to retrieve these parameters using pageContext.getParameters() and am able to display it as an exception but I am not able to set these into the fields using pageContext.putParameters().

  • Need HELP to pass results from procedure

    Hey Gurus,
    I need your help. I got a package (test) and inside the package two procedures (step1, step2). Now I want to pass the results from the procedure step1 (stat_rec.lev, stat_rec.chi_sq, stat_rec.chi_sig) to the other procedure step2 and make a select with where-clause. How can I manage this?? Got someone a idea??
    Here my package:
    CREATE OR REPLACE PACKAGE test1
    AS
    PROCEDURE step1(table_in IN VARCHAR2, column1 IN VARCHAR2,column2 IN VARCHAR2);
    TYPE stat_tab_rec IS RECORD(lev NUMBER, chi_sq NUMBER, chi_sig NUMBER, rank NUMBER);
    stat_rec stat_tab_rec;
    PROCEDURE step2(table_in IN VARCHAR2, column1 IN VARCHAR2,column2 IN VARCHAR2);
    END test1;
    Thanks for your help!!
    CREATE OR REPLACE PACKAGE BODY test1
    AS
    PROCEDURE step1(table_in IN VARCHAR2, column1 IN VARCHAR2,column2 IN VARCHAR2,column3 IN VARCHAR2,column4 IN VARCHAR2,column5 IN VARCHAR2)
    IS
    TYPE cur_crosstab IS REF CURSOR;
    cur_cross cur_crosstab;
    BEGIN
    OPEN cur_cross FOR 'WITH '
    ||'att_grp AS '
    ||'(SELECT '||column1||' as x1 , lev AS lev, '||column2||', '
    ||' CASE'
    ||' WHEN '||column2||' <= lev '
    ||' THEN 1 '
    ||' ELSE 2 '
    ||'END attribute_group '
    ||'FROM '||table_in||', '
    ||'(SELECT level AS lev '
    ||'FROM dual '
    ||'WHERE level >= (SELECT MIN('||column2||') FROM '||table_in||') CONNECT BY level <= (SELECT MAX('||column2||') FROM '||table_in||'))) '
    ||'SELECT lev, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS''),4) AS chi_square, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_SIG''),4) AS significance, '
    ||'dense_rank() over (order by ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS'' ),4) DESC) AS rank '
    ||'FROM att_grp '
    ||'GROUP BY lev '
    ||'ORDER BY lev';
    LOOP
    FETCH cur_cross INTO stat_rec;
    EXIT WHEN cur_cross%NOTFOUND;
    IF stat_rec.rank = 1 THEN
    DBMS_OUTPUT.put_line(column2);
    DBMS_OUTPUT.put_line(stat_rec.lev|| ' = ' || TO_CHAR(stat_rec.chi_sq,'99.99') || TO_CHAR(stat_rec.chi_sig,'99.99'));
    END IF;
    END LOOP;
    CLOSE cur_cross;
    END step1;
    PROCEDURE step2
    IS
    BEGIN
    END step2;
    END test1;

    Thank you Massimo. I tried your example but I recieve an error: PLS-00306: wrong number or types of arguments in call to "procedure1"
    Here my Codes:
    CREATE OR REPLACE TYPE stat_obj IS OBJECT(zeilen NUMBER,lev NUMBER, chi_sq NUMBER, chi_sig NUMBER);
    CREATE OR REPLACE TYPE stat_tab IS TABLE OF stat_obj;
    CREATE OR REPLACE PROCEDURE procedure1(table_in IN VARCHAR2,column1 IN VARCHAR2,column2 IN VARCHAR2, v OUT stat_tab)
    IS
    TYPE cur_crosstab IS REF CURSOR;
    cur_cross cur_crosstab;
    TYPE stat_tab_rec IS RECORD(lev NUMBER, chi_sq NUMBER, chi_sig NUMBER);
    stat_rec stat_tab_rec;
    BEGIN
    OPEN cur_cross FOR 'WITH '
    ||'att_grp AS '
    ||'(SELECT '||column1||' as x1 , lev AS lev, '||column2||', '
    ||' CASE'
    ||' WHEN '||column2||' <= lev '
    ||' THEN 1 '
    ||' ELSE 2 '
    ||'END attribute_group '
    ||'FROM '||table_in||', '
    ||'(SELECT level AS lev '
    ||'FROM dual '
    ||'WHERE level >= (SELECT MIN('||column2||') FROM '||table_in||') CONNECT BY level <= (SELECT MAX('||column2||') FROM '||table_in||'))) '
    ||'SELECT lev, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS''),4) AS chi_square, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_SIG''),4) AS significance, '
    ||'dense_rank() over (order by ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS'' ),4) DESC) AS ranking '
    ||'FROM att_grp '
    ||'GROUP BY lev '
    ||'ORDER BY lev';
    LOOP
    FETCH cur_cross INTO v;
    EXIT WHEN cur_cross%NOTFOUND;
    --IF v_stat_tab.rank = 1 THEN
    --DBMS_OUTPUT.put_line(v_stat_tab.lev || '=' || TO_CHAR(v_stat_tab.chi_sq,'99.99') || TO_CHAR (v_stat_tab.chi_sig,'99.99'));
    --END IF;
    END LOOP;
    CLOSE cur_cross;
    END;
    CREATE OR REPLACE PROCEDURE procedure2
    IS
    v_zeilen NUMBER;
    v_lev NUMBER;
    v_chi_sq NUMBER;
    v_chi_sig NUMBER;
    v stat_tab;
    BEGIN
    procedure1(v);
    SELECT zeilen,lev,chi_sq,chi_sig INTO v_zeilen,v_lev,v_chi_sq,v_chi_sig
    from table(v);
    DBMS_OUTPUT.put_line(v_zeilen||v_lev||v_chi_sq||v_chi_sig);
    END;
    Hope u can help me!!

  • UPDATE: Pass Parameter from Form to Form While on Seperate Pages

    I'm running 9iASR2 on Linux
    My issues is that In need to Take a Parameter entered on Form1 one a page then upon click of insert I need to pass a parameter entered into that form and naviagate to another page containing 2 portlets 1 being another form and 1 being a dynamic page both of the portlets on the second page need to beable to access the parameter.
    Since my last post I updated the PL/SQL code to better fit the situation and now have a different problem.
    Ok.. So I'm still attempting to do the same thing a about. Here what I tried and the outcome.
    1. I put following code in the succeful submission pl/sql procedure of the first form(the calling form).
    What a suspected the follow code to do was navigate to the page containing my other from in a portlet. Which it did. Cool!
    declare
    url varchar2(220);
    v_FLOWNAME varchar2(220);
    begin
    v_FLOWNAME := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_FLOWNAME');
    url:='http://ebalpha3.us.oracle.com:7778/portal/page?_pageid=36,31629&_dad=flowmanager&_schema=PORTALSCHEMA&a.FLOWNAME='||v_FLOWNAME;
    call(url);
    end;
    2. It passed the follow URL http://ebalpha3.us.oracle.com:7778/portal/page?_pageid=36,31629&_dad=flowmanager&_schema=PORTALSCHEMA&a.FLOWNAME=MyFLow
    3. In the accepting form I input the following code in the before displaying the page section of the the form.
    declare
    FLOWNAME varchar2(200);
    begin
    FLOWNAME := portalschema.wwpro_api_parameters.get_value('FLOWNAME','a');
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_FLOWNAME',
    p_value => FLOWNAME);
    end;
    What I expected it to do is take the a.FLOWNAME from the url and input it into the FLOWNAME variable, but the FLOWNAME variable came across as blank and the FLOWNAME text area came accross as blank because the FLOWNAME parameter was never pulled.
    What do you think?
    Thanks for you help!

    I have a similar problem where I have a portlet X which accepts parameters using the <passAllUrlParams>true</passAllUrlParams> tag in the provider.xml and it works if portlet X is directly on page A. However, because I need to wrap portal security around this portlet declaratively, I will need to apply security on this page A and then publish page A as a page portlet Z, then drop page portlet Z on another page, page B. (I hope you all been through this before to apply security around a portlet). By doing this - the parameters are no longer being passed into portlet X anymore.
    To get around this - I will need to define page parameters for page A and map them to portlet X via the "Parameters" tab in edit mode and then define the same set of page parameters on page B and map them to the page portlet Z just to get the parameter passing working and flowing through to portlet X.
    Is there anyway around this?
    Do we always need to define page portlets in 10.1.4?
    What does the <passAllUrlParams>true</passAllUrlParams> tag do in 10.1.4?
    In 10.1.2 - the <passAllUrlParams>true</passAllUrlParams> tag was all you need to pass any number and type of parameters from a page B->page-portlet Z->portlet X
    This feature seems to be missing in 10.1.4.
    Please respond.
    Thanks
    Stanley

  • Pass Parameter from Form to Form While on Seperate Pages

    I'm running 9iASR2 on Linux
    I know there are allot of postings on Passing parameters and I'd hate to bring it up again, but I've been attempting this for a few days now and can't seem to figure it out.
    My issues is that In need to Take a Parameter entered on Form1 one a page then upon click of insert I need to pass a parameter entered into that form and naviagate to another page containing 2 portlets 1 being another form and 1 being a dynamic page both of the portlets on the second page need to beable to access the parameter.
    I am abable to pass the parameter between the forms when not running in a portlet with the code below.
    declare
    url varchar2(220);
    v_FLOWNAME varchar2(220);
    begin
    v_FLOWNAME := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_FLOWNAME');
    url:='portalschema.wwa_app_module.link?' ||
    'p_arg_names=_moduleid&p_arg_values=1082756362' ||
    '&p_arg_names=_show_header&p_arg_values=NO' ||
    '&p_arg_names=FLOWNAME&p_arg_values=' || v_FLOWNAME;
    call(url);
    end;
    Thanks for You Assistance!

    FRM 41213 : unable to connect to the report server repsrv+
    Look at this ....
    Did u created the report server from the command prompt
    If yes
    Did u started the report server
    if not
    use this from the command prompt
    rwserver server = yourservername start

  • Passing parameter from workitem to bsp page

    Hi,
    is it possible to pass parameter from workitem to bsp page and also vice versa?

    SAP_WAPI_READ_CONTAINER function works well.but i need to pass a parameter to workitem container.
    what i am trying to do is;
    1-get data by using sap_wapi_read_container
    2-change data
    3-send changed data back to workitem
    my problem is in third step.I am using SAP_WAPI_WRITE_CONTAINER. but it doesnt work.After execution the FM return_code set to 1.
    Do u know how to set a variable in workitem?

  • 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

  • How to pass parameter from form6i to report6i

    when i passed parameter from form6i to report6i, while previewing report the data was not displaying only fields heading was displaying, but in report6i there is a parameter form thru that it was displaying data, but thru form6i to report6i it was not. Please kindly help me and give me the some sample or example of it.
    Thanks
    Best regards
    Zaheer

    ADD_PARAMETER(pl_id,'P_SCRIPT',TEXT_PARAMETER,:b1.script);

  • Master-detail relationship - passing parameter from form to form

    Hello.
    I have a question about master detail relationship.
    In first form we have master-detail relationship.
    Example on dept, emp tables:
    We query dept (master), so we can get one or many emp (detail) records. Then we have a third table - tasks. Tasks table (detail) can have many records for one employee.
    Tasks table is in another form, which is called with call_form built_in. So we pass a parameter from master to detail - parameter empno. Because of that, we can only see tasks for one employee and can't navigate to another employee. This is normal.
    Now comes the question.
    Is it possible to call a form (with tasks table) with deptno parameter (so we can navigate through all employees with that department), but first show employee that was last used in first form?
    Example of our goal.
    Master: deptno = 20
    Detail: navigate to JONES employee
    Call new form (tasks)
    Tasks for JONES employee are first shown
    Can navigate to another employee - without requery
    Is this possible?
    If we pass deptno parameter, we can navigate through all employees - but must navigate to the employee we last used in first form.
    If we pass empno parameter to second form, we see last used employee but cannot navigate to another employee without requery.
    Hope you understand my problem.
    Thanks.

    Hi
    yes you can pass parameter from one form to another.
    In your master detail form set the trigger when-new-instance and there define the global variable like
    :GLOBAL.G_CIRCLE_ID := NULL;
    and in your task table set the trigger when-new-instance and there define the global variable like and also write this code
    :GLOBAL.G_DIVISION_ID := NULL;
    IF :GLOBAL.G_CIRCLE_ID IS NOT NULL THEN
         GO_BLOCK('DIVISION');
         SET_BLOCK_PROPERTY('DIVISION',DEFAULT_WHERE,'CIRCLE_ID ='||''''||:GLOBAL.G_CIRCLE_ID||'''');
         EXECUTE_QUERY;
    END IF;
    :GLOBAL.G_CIRCLE_ID := NULL;
    now you maintain your trigger according your need.
    Regards,

  • How can I pass parameter from report to form?

    Hi :)
    Now I try to build conference room like this by using form
    and report. And i design that when users click at group report
    then i'll show page that contain questions report and add
    question form. And question form and report must receive the
    same parameter from group report.
    First Problem: is I don't know how group report send the
    same parameter to question report and add question report at the
    same time. And is it possible??? If not please suggest me what
    should I do???
    Second Problem: is I don't know how can I pass parameter from
    report to form. I don't know the way to do it.
    Please tell me!!! Please...
    I look forward to hearing from all of you.
    Thank You.

    One way is to create a link based on that form and attach that
    link with the report. Through links you can pass parameters

  • How to   Pass Parameter from BIP  to Dashboard  Report

    Hi,
    Parameter from BIP to Dashboard Report
    If I select BIP report paremeter should pass value to dashboard report
    thanks in advance.
    CHEERS ,
    Jel

    Hi Saichand,
    I hav gone through above link its passing values from Dashboard prompt to BIP report only..
    just i need like reverse (if i click on BIP report value then it should pass that value to Dashboard reports) in this this case how to pass parameter from BIP to dashboard report
    Thanks in advance
    Cheers,
    Jel

  • How to pass parameter from 1 stored procedure to another stored procedure inside crystal report

    Hi
    I have several stored procedure in my Crystal Report. I am wondering if it is possible for me to pass a parameter to one of the stored procedure and to use the result of that stored procedure E.g. CustomerCode. To another 2 stored procedure to generate the report dynamically?
    I have 3 stored procedure
    The 1st one is used to gather information and process the calculation
    another 2 stored procedure is used for generate the graph and both of them required to take 2 parameters. The 1st stored procedure will require 1 parameter (E.G. Reference Code) and will return a set of information including the data that could be use on the other 2 stored procedures.
    After I added these 2 stored procedure, it requires me to pass 3 parameters to the report. I would like to know if I could only pass the Reference Code for stored procedure 1 and use it to retrieve the information for the other 2 parameter?
    Thanks in advance
    Chi

    Hi Chi
    To pass parameter from 1 stored procedure to another stored procedure, you will have to create sub report. In your case you will have to create 2 sub reports for 2nd and 3rd stored procedure and link those sub reports with the main report using Reference Code field in order to pass the values.
    After creating the report when you will refresh the report, it will ask 4 parameters, one parameter for main report, one for the first subreport and two for second subreport to fetch the data correctly.
    Regards
    Poonam Thorat.

  • I need help to transfer CS4 from a dead G5 to a new Macbook Pro. Can't find my program discs but purchased CS4 in 2008 and have record of it.

    I need help to transfer CS4 from a dead G5 to a new Macbook Pro. Can't find my program discs but purchased CS4 in 2008 and have record of it.

    Sounds like you got it installed and activated. Don't forget your updates.
    Adobe - Photoshop : For Macintosh
    Gene

  • Problem while passing parameter from report to report.

    Hi
    I'm using forms and reports 10g, hava a problem while passing the parameter from reports to report.
    i'm using srw.set_hyperlink to call report from report.
    i have created a key value in the cgicmd.dat file called
    faccre802005-2006: report=faccre80 destype=cache desformat=pdf userid=<userid/passwd@cs> server=<servername>
    Now in the format trigger i'm using this key value
    function BTN_DEBITFormatTrigger return boolean is
    temp varchar2(5000);
    IP_ADDRESS VARCHAR2(50);
    SERVER_NAME VARCHAR2(10);
    L_ACCT_CODE VARCHAR2(14);
    begin
    SELECT MAST_INT_DESC,MAST_USER_PGM_ID INTO IP_ADDRESS,SERVER_NAME FROM MAST_INT_INFO WHERE MAST_INT_ID='VISHWA';
    temp := IP_ADDRESS||'?faccre80'||:P_FIN_YEAR||'+server='||server_name;
    temp :=temp ||'+'||'P_PREVIOUS_CODE='''||:ACCT_CODE||''''||'+'||'P_COMPANY_CODE='''||:P_COMPANY_CODE||'''';
    temp :=temp ||'+'|| 'P_FROM_DATE='''||TO_CHAR(:P_FROM_DATE,'DD-MON-RRRR')||''''||'+'|| 'P_TO_DATE='''||TO_CHAR(:P_TO_DATE,'DD-MON-RRRR')||''''||'+'||'P_TRUST_CODE='''|| :P_TRUST_CODE||'''';
    temp :=temp ||'+'|| 'P_UNIT_CODE='''||:P_UNIT_CODE||''''||'+'||' P_FIN_YEAR='''||:P_FIN_YEAR||'''';
    temp :=temp ||'+'|| 'P_LEVEL='''||:P_LEVEL||''''||'+'||'P_HEADER='''||replace(:P_HEADER,' ','%20')||''''||'+'||'P_FORMAT='''||:P_FORMAT||'''';
    SRW.Set_Hyperlink(temp);
    END;
    return (TRUE);
    end;
    Report is coming but not the expected result because parmaeters are not coming from first report to second report.
    If i dont use cgicmd file userid and password are displyed in the URL.
    Pl tell me how to pass parameter from one report to another.
    thanks and regards

    Hi
    I got the solution.
    I forgot to add %* at end of the KEY value.

Maybe you are looking for

  • Creative Cloud Software Sloooow to start and crashes

    Hi Everyone Does anyone have any problems with their CC programs (AI, PS and PP) taking forever to start up or crashing? It takes me about 75 seconds for PS to start up, over 2 minutes for AI and Premier pro starts, but once I try to open an existing

  • Pdf display problem in Adobe Reader (NOT plugin)

    I looked around and found a lot of people having problems with the .pdf plugin inside Safari... that is NOT my problem... just to get it out of the way... I have .pdf files on my iMac, files in which I work, like forms. They are standalone and have n

  • Bridge, no thumbnails

    Just started to work with cs5 in win7, saved altered image to Bridge, why is there no thumbnail only file number ?

  • Creating a Demo Version

    I finished an interactive project for a client. Here's a rundown of the project to give you an idea. It opens with a movie and when the movie ends there is a series of buttons with several pics per button. When the user wants they can click a button

  • Integration between JDeveloper & PL/SQL

    In an internet database application can I do the client side by JDeveloper and server side by PL/SQL ? How ? Please guide me.... Ahmad.