Passing data from calling page to popup window

Hi All,
We are developing a BSP application for business card.I need to provide a preview button .
when the user clicks this button a
poopup window should open with the preview of business card.
My problem is how to pass the values like name , designation etc from the main page to popup window.
The code for previre image:
<h t m l b : i m a g e   s r c = " s _ b _ d e  tl . g i f  " a l t = " P r e v i e w   C a r d "  o n C l i c k="addr" on C l i e n t C l i c k = " c a l l W i n d o w ( ) ; "/>
<s c r i p  t t y p e = " t e x t / j a v a s c r i p t ">
f u n c t i o n  c a l l W i n d o w ()
w i n d o w .o p e n ( " p r e v i e w . h t m " ) ;
</s c r i p t >
preview.htm is a simple HTML page . i need to pass values from main page to this page.
OR
Is it possibel to restrict the size of a VIEW to use it as a popup window?
OR
is there any other way to achieve this like.. the <bsp:call comp_id=" " />
tag , but i have no idea how to use it.
Thanks,
Anubhav.
Edited by: Anubhav Jain on Sep 12, 2008 3:38 PM

Hi Raja,
I did as suggested by you...but it is behaving strangely.
It works fine in debuging mode but when executed directly ....it is not working.
the scenario is:
Thers an image for preview as follows:
<htmlb:gridLayoutCell columnIndex="3" rowIndex="13">
<htmlb:i m a g e   s r c = " s _ b _ d e t l . g i f "   a l t = " P r e v i e w   C a r d "   o n C l i c k = " a d d r "   o n C l i e n t C l i c k = " c a l l W i n d o w ( ) ; " /  >
</htmlb:gridLayoutCell>
The JS code is:
f u n c t i o n   c a l l W i n d o w ( )
<%
data: title(5),
         fname(20),
         lname(20),
         comp(20),
         addr(20),
         city(20),
         state(20),
         pcode(20),
         country(20),
         phone(20),
         fax(20),
         email(241).
         alt_addr-title = request->get_form_field( 'title' ) .
         alt_addr-firstname = request->get_form_field( 'fname' ) .
         alt_addr-lastname = request->get_form_field( 'lname' ) .
         company = request->get_form_field( 'comp' ) .
         alt_addr-street = request->get_form_field( 'addr' ) .
         alt_addr-city = request->get_form_field( 'city' ) .
         alt_addr-region = request->get_form_field( 'state' ) .
         alt_addr-inhouse_ml = request->get_form_field( 'pcode' ) .
         alt_addr-country = request->get_form_field( 'country' ) .
         alt_addr-tel1_numbr = request->get_form_field( 'phone' ) .
         alt_addr-fax_number = request->get_form_field( 'fax' ) .
         alt_addr-e_mail = request->get_form_field( 'email' ) .
CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
          EXPORTING
            name                  = 'FORMFIELDS'
            application_name      = runtime->application_name
            application_namespace = runtime->application_namespace
            username              = sy-uname
            session_id            = runtime->session_id
            data_value            = alt_addr
            data_name             = 'alt_addr'
            expiry_date_rel       = 1.
%>
w i n d o w . o p e n ( " . . / z _ b i z c a r d / p r e v i e w . h t m " ,   " W i n E " ,   " w i d t h = 2 4 0 , h e i g h t = 3 0 0 , t o o l b a r = n o , r e s i z a b l e = no ")
I was doing something similar...created a controller and a view , was calling the controller from window.open method with all other parameters for sizing etc.
How to pass a structure conatining data,from controller to the view...
Now in the onCreate event of the page PREVIEW.HTM in using;
CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
  EXPORTING
    name                  = 'FORMFIELDS'
    application_name      = runtime->application_name
    application_namespace = runtime->application_namespace
    username              = sy-uname
    session_id            = runtime->session_id
    data_name             = 'alt_addr'
  CHANGING
    data_value            = alt_addr.
and in the layout of PREVIEW.HTM in am using this alt-addr:
But if put a break point at the onCreate event of preview.htm and the execute i get the values in alt_addr but if i execute directly...it is empty in the layout?
What is the problem?
Thanks,
Anubhav.

Similar Messages

  • How to pass value from report table to Popup window

    suppose i have a report region
    from query
    "Select * from emp"
    i need to get a popup when i click on the row,
    i need all the columns should be displayed inthe popup window;
    i have written javascript in the report template, by passing #COLUMN_VALUE#
    the issue here is iam only getting the column on which i click,
    is there any way to refer the next column ?
    or am i doing it in wrong manner ?

    Hi Mike,
    Yes what you said is exactly correct ,
    i have a query , but for that i need some PK { three columns } from the the page where this popup will be called,
    i have three columns in the row which makes it as PK,
    now how can i pass three columns from a page to popup ? provided if i click on the row of an table, i want that rows three column to be passed .

  • 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.

  • Streaming data on a page or popup window.

    I am creating a web application that will be spying on another application. I establish a socket connection between my web application and this other remote system. I send over a spy request from the web application and this other system starts sending over it's console data over the socket connection.
    Is there a blog or a tutorial that will show how to create a page that will display the streaming data in real time as it happens? Any help would be greatly appreciated. Ideally I would like this to happen in a popup window, but will take whatever help anyone will give me.
    Thanks in advance

    Hi There,
    Im not aware of one at this time, I guess AJAX is the right way to go, but
    Creator will be EOLed soon, Netbeans is the latest version of Creator. Pls post your question on NB mailing lists at http://www.netbeans.org/community/lists/top.html for better response.
    Thanks
    K

  • 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

  • Using JSPs and passing data from 1 page to the next

    I have an application which has a number of JSPs.
    JSP1 has some fields and buttons.
    One of these buttons is called 'Print'. On pressing this control
    is passed to the next JSP2. In this JSP the data is displayed
    from the database. It is displayed via some TABLE tags, thus giving
    multiple records displayed. There is also a check box against each record and having checked this box - the user can then then press another button which takes the user to another JSP - JSP3 - which gives the user a list of options for printing. They then can do 1 of 2 things - print a report or print some labels.
    I have got this to work where there is only 1 record displayed in JSP2.
    But where more than one record is displayed in JSP2 - JSP3 does NOT
    know how to handle this and says the variable is undefined.
    The code I am using to reference the JSP2 variable is
    var batchNumber = top.opener.document.printTranscript.batchNumber2.value;
    Any help or ideas would really be appreciated.
    Thanx
    Chris

    Hi
    If you are using JavaScript, try putting data in a Hidden field and perform request.getParameter in the next page, Place data in a Delimited fashion when placing into the hidden field, on the next page split these values and place where you want them to be.
    This is a proven method...
    Thanks
    Swaraj

  • Programming logic, passing data from a page to another

    Hi,
    I just began with developing with APEX 4.1.1, and I think I don't get how I should use it efficiently, I am more used to C-like programming.
    I have a table which contains the state of some electricity meters taken at some non-regularly spaced dates. I want to make a chart of the electricity consumption, e.g for each month. This (I think) implies that the application must do that (I used this logic for the same application made with php and sqlite and it worked):
    - User chooses a meter
    - Application tells him the available range of dates and the mean interval between measurements
    - User chooses the range of dates and the interval
    - Application verifies that the range of dates is valid (not outside the real data)
    - Interpolate the state of the meters at the requested regular interval
    - Calculate the consumption for each interval (simply a difference)
    - Draw the chart
    For now, I created some procedures which should pass a custom data type containing all the meta-data about the chart and a PL/SQL table containing the actual data to be charted, but I'm stuck at the point of interacting with the user (meaning writing the output of the procedures on a page and passing them to the next procedure and also charting that pl/sql table).
    Maybe should I create a temporary table ? But of what I read, this is a "real" table stored on the disk, and I just need this data once (and it is a small dataset, at most 20 points or so) for drawing a chart. This table should also be specific to the chart currently being created, it could happen that the same user or different users make multiple charts at the same time (like in two firefox tabs).
    I hope my post is not too confused..
    Ben

    940065 wrote:
    Hi,
    I just began with developing with APEX 4.1.1, and I think I don't get how I should use it efficiently, I am more used to C-like programming.Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "940065".
    APEX is intended for the development of database centric applications. It's a physical implementation of Tom Kyte's philosophy of database application development&mdash;possibly replacing Java with JavaScript ;-) .
    To use it efficiently you need to stop thinking procedurally in C-like terms and think in terms of the set operations that SQL uses effectively.
    I have a table which contains the state of some electricity meters taken at some non-regularly spaced dates. I want to make a chart of the electricity consumption, e.g for each month. This (I think) implies that the application must do that (I used this logic for the same application made with php and sqlite and it worked):
    - User chooses a meter
    - Application tells him the available range of dates and the mean interval between measurements
    - User chooses the range of dates and the interval
    - Application verifies that the range of dates is valid (not outside the real data)
    - Interpolate the state of the meters at the requested regular interval
    - Calculate the consumption for each interval (simply a difference)
    - Draw the chart
    For now, I created some procedures which should pass a custom data type containing all the meta-data about the chart and a PL/SQL table containing the actual data to be charted,
    but I'm stuck at the point of interacting with the user (meaning writing the output of the procedures on a page and passing them to the next procedure and also charting that pl/sql table).It seems that you don't really get APEX yet: have you read the introductory documentation and taken the <i>Oracle® Database 2 Day + Application Express Developer's Guide</i> tutorial in order to understand basic APEX techniques and terminology?
    You should be aiming to collect and validate the required parameters in APEX session state values and use the built-in charting capability with SQL data sources that use these parameter values in query predicates.
    If you really can't generate the chart series from queries run on the original table, generate the chart data using an APEX collection rather than a "PL/SQL table" (preferred terminology is "collection type", but it's even better to specifically say "associative array", "nested table" or "varying array") or temporary database table.
    Maybe should I create a temporary table ? But of what I read, this is a "real" table stored on the disk, and I just need this data once (and it is a small dataset, at most 20 points or so) for drawing a chart. This table should also be specific to the chart currently being created, it could happen that the same user or different users make multiple charts at the same time (like in two firefox tabs).Temporary tables are rarely required in any Oracle application, but standard Oracle Global Temporary Tables are database-session specific and so have no concurrency issues. However there are issues when using them in APEX, so APEX collections are the preferred method for temporary, session-based storage.

  • Passing data from OA Page to JSP - '°' appears as'?'

    HI,
    I need to pass a parameter value °F from an OA Page to a JSP.
    but in the JSP, °F appears as ?F.(same in jserv.log file)
    I pass the parameter using pageContext.setForwardUrl("url?data=°F");
    How can I solve it?
    Thanks,
    Gowtam

    One clarification, how do you type this character '°', it is not a normal character.
    Try storing it in a String and then set at the URL.
    --Shiv                                                                                                                                                                                                                                                                                                           

  • How to pass data from one page to another

    i have a table with multiselect and i want that in the moment i select some rows and press on a button in the other page should be displayed only those data i have selected from previous one.... how can i do this? any link or example for this case?
    thanks in advance :)

    If the data you are retrieving from the excel file is just a few fields, then you can get them all on the first page and store them as public variables and use those variables on the different pages. But if you are getting a lot of data per page, then it would still be a good idea to get them all on the first page but store them as arrays. Then, on each page you can use the array you need.

  • Passing data from one page to another page using form bean

    hi,
    refer to above question, i had follow the sample found at weblogic sample application
    ,but unfortunately when i create my own application. The following error occur:
    [Caught exception when evaluating expression '{actionForm.note}' with available
    binding contexts [currentTag, session, pageContext, request, response, application].
    Root exception cause: com.bea.wlw.netui.script.xscript.IllegalContextStateException:
    The action form for the expression "actionForm["note"]" could not be found
    can anymore tell me what has i miss !
    {program flow -
    pageA.jsp[userinput] ->getConfirmationAction-> pageB.jsp[confirmation]
    -> protected Forward getConfirmation(TransferBean
    form) throws Exception
    return new Forward( "show_confimation" ,form);
    thanks & rgds
    cassy

    Cassy,
    If your page flow looks like this:
    first.jsp -> actionA(FooForm) -> second.jsp -> actionB()
    Then I think the problem is that there is no action form in scope as
    second.jsp is rendering. This is because the action raised by
    second.jsp is actionB, which has no form, and hence no {actionForm}.
    You have two options:
    Option A - use page inputs (available in the upcoming Service Pack 2)
    ---- JSP:
    <%-- At the top of your second JSP... --%>
    <netui-data:declarePageInput name="myPageInput" type="APageInput"/>
    <netui:label value="{pageInput.myPageInput.name}"/>
    ---- JPF:
    * @jpf:action
    * @jpf:forward name="success" path="second.jsp"
    protected Forward actionA(FooForm form)
    APageInput input = new APageInput(form.getName());
    return new Forward("success", "myPageInput", input);
    Option B - since the form is still technically in the request, use it as
    a workaround until option A is available to you.
    <netui:label value="{request.fooForm.name}"/>
    I hope this helps.
    Thomas
    Eddie O'Neil wrote:
    Cassy--
    Is there a <netui:form> tag on the page which displays this error
    (pageB.jsp?)?
    The "actionForm" binding context can only be used inside of a
    <netui:form> tag. To display data in a read-only page (no form), you
    can put the data in the request and reference it with the "request"
    binding context.
    Hope that helps...
    Eddie
    cassy wrote:
    hi,
    refer to above question, i had follow the sample found at weblogic
    sample application
    ,but unfortunately when i create my own application. The following
    error occur:
    [Caught exception when evaluating expression '{actionForm.note}' with
    available
    binding contexts [currentTag, session, pageContext, request, response,
    application].
    Root exception cause:
    com.bea.wlw.netui.script.xscript.IllegalContextStateException:
    The action form for the expression "actionForm["note"]" could not be
    found
    can anymore tell me what has i miss !
    {program flow -
    pageA.jsp[userinput] ->getConfirmationAction-> pageB.jsp[confirmation]
    -> protected Forward
    getConfirmation(TransferBean
    form) throws Exception
    return new Forward( "show_confimation" ,form);
    thanks & rgds
    cassy

  • Passing data to another page loaded in the same window

    How to pass data from a page to another when new page loading
    takes place ?
    I use :
    window.htmlLoader.load( new air.URLRequest("app:/" +
    htmlfilename));
    I tried :
    window.htmlLoader.addEventListener(air.Event.CHANGE,
    passmonitor)
    but it doesn't work !

    The problem is in passing the variables . As I mentioned
    above,, the following error message gets displayed:
    Can't get property window from undefined value
    The code I tried is
    myloader = window.htmlLoader.load(new air.URLRequest("app:/"
    + filen ));
    myloader.window.somevar = "data";

  • Problem in passing data from one .jsp page to another .jsp page

    i have a problem here
    Actually i have 2 jsp pages. What im trying to do here is actually i want to pass data from the first jsp page to the second for updating
    The first jsp page contains data that user wants to update in the form of table.
    <td><img src = "edit.gif" alt = "edit" border="0" ><td>
    <TD><%= Name %></td>
    <TD><%= rs.getInt("Age") %></td>
    <TD><%= rs.getString("Gender") %></td>
    So this page displays the data that users wants to update plus one image button (edit button). So when user clicks this button, all the data in this page will be brought to the second .jsp page called updatePersonal for updating.
    The problem here is that it is not displaying the existing data in the second .jsp page.
    The second page basically contains forms
    <INPUT TYPE="text" NAME="FirstName" maxlength="30" value = "<%=FirstName%>">
    Can someone please help me. I really dont know what to do..How do i get the data displayed in the text field that is passed from the first .jsp page..thankx in advance

    Please modify below code to:
    td><img src = "edit.gif" alt = "edit" border="0" ><td>
    -----------------modified code
    td><a href="updatePersonal.jsp?FirstName=<%=rs.getString(FirstName")%">&LastName=<%=rs.getString("LastName")%>&Age=<%=rs.getInt("Age")%>&Gender=<%=rs.getString("Gender")%>"><img src = "edit.gif" alt = "edit" border="0" ></a><td>
    I'm sure it works</a>

  • Issue in passing data from PAge A to Page B

    Hi
    I have a scenario where I am trying to pass data from Page A to Page B. This data has to
    be passed on the click of a button. On the button's event, I have set the paramaters that
    I want to pass. I have passed these params in a hashmap in pageContext.forwardImmediately
    method.
    Page A has the requisition records. Clicking the radio button against one of these
    records and clicking the Lines button should take me to Page B with that Requisition VO's
    Row.
    In Page B, there are 2 parts..
    (1) A header which displays the requisition details like Req Number, Current Version,
    Previous Version etc
    (2) A table (Advanced Table) regiion which displays the Line details per that Requisition
    (Each Requisiton has 'n' lines).
    I am also getting the paramater value(s) in Page B's controller's processRequest.
    Here, I am calling the init methods on both the requisitionsVO and the linesVO which calls the executeQuery() methods. I thought that this will populate the Page B as the VO's columns are mapped to the
    respective fields in the Page. But I am not able to see any data on Page B. Am I missign anything here.

    reinitlize the VO
    By this do you mean the following :
    In the Controller:
    String reqNum = (String)pageContext.getParameter(PoConstants.PO_REQUISITION_KEY);
    if(!PoUtils.isEmpty(reqNum)) {
    Serializable[] param = {reqNum};
    Class [] paramTypes = {reqNum.getClass()};
    am.invokeMethod("initPoReqHeadersQuery",param, paramTypes);
    In the AM:
    public void initPoReqHeadersQuery(String criteria)
    OADBTransaction txn = this.getOADBTransaction();
    if ( txn.isLoggingEnabled(oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE))
    txn.writeDiagnostics(this, "initPoReqHeadersQuery.begin", oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE);
    PoReqPendingForAcceptanceVOImpl vo = getPoReqPendingForAcceptanceVO1();
    vo.initReqQueryAction(criteria);
    if(!PoUtils.isEmpty(vo)) {
    PoReqPendingForAcceptanceVORowImpl row = (PoReqPendingForAcceptanceVORowImpl)vo.first();
    if(!PoUtils.isEmpty(row)) {
    vo.setCurrentRow(row);
    if ( txn.isLoggingEnabled(oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE))
    txn.writeDiagnostics(this, "initPoReqHeadersQuery.end", oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE);
    In the VO:
    public void initReqQueryAction(String criteria)
    OADBTransaction txn = (OADBTransaction)getApplicationModule().getTransaction() ;
    if ( txn.isLoggingEnabled(oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE))
    txn.writeDiagnostics(this, "initReqQueryAction.begin", oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE);
    setWhereClauseParams(null);
    setWhereClause(null);
    setWhereClause("SEGMENT1 = :1");
    setWhereClauseParam(0,criteria);
    executeQuery();
    if ( txn.isLoggingEnabled(oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE))
    txn.writeDiagnostics(this, "initReqQueryAction.end", oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE);
    }

  • Passing data from one UIX XML page to another UIX XML page

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.
    (b) If bc4j is used.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?
    Thanks,
    Paul.

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.For forwarded URLs; HttpServletRequest attributes [request], HttpSession attributes [session], ServletContext attributes [application].
    For redirected URLs; HttpServletRequest parameters url, HttpSession attributes [session], ServletContext attributes [application].
    (b) If bc4j is used.For forwarded URLs; BC4J Session properties.
    For redirected URLs; BC4J Session properties IF release mode is NOT stateless.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?Return a UIEventResult (extends EventResult) from your event handler that has a data provider attached.
    This data provider will be accessible in the next page with the name "ctrl:eventResult", where "ctrl" is the short prefix for the namespace "http://xmlns.oracle.com/uix/controller".
    Regards,
    John Fallows
    Oracle Corporation.

  • Passing data from one view to other in differnt window

    Hi all,
    I am developing an application in which i need to transfer some data from one view of first window to another view of 2nd window. Also first window is an modal pop up window. Can anybody help in this regard.

    Hi,
    as ayyapparaj said,
    navigate to component controller of ur application and create a node with required no of attributes.
    and map this node to window1 and window2.
    and set the required values into the context in window1 ,then these values available accross the (window2)application.
    i hope u got...
    refer this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1
    Regards,
    ramesh
    Edited by: Ramesh Babu V on Aug 27, 2008 3:36 PM

Maybe you are looking for

  • Focus problem when JPopupMenu is shown

    I have compiled and ran the following 'JPopupTest.java' in JDK 1.4.1 on Windows. Kindly conduct the two tests as given below First Test : ============ The class shows an editable JComboBox and a JButton when visible. Now click the down-arrow button o

  • Problem with Collection API method LIMIT?

    Hi, I am trying to learn PL/SQL in my free time and I can't get collection_name.LIMIT to work correctly. declare type list is table of integer; set_a list := list(1,2,3,3); i pls_integer := 0; begin set_a.trim(2); i := set_a.limit; dbms_output.put_li

  • Insane but fun 3D web game - please give me some feedback

    It takes a few minutes to get into but if you ever wanted to wrestle a poltergeist, have a snowball fight with Satan or just like seeing trippy patterns while you shoot things... http://www.worldzone.net/arts/mike It's not finished yet, and I really

  • CamerUI and MOV playback on IOS

    Hi, I've used CameraUI to capture video on my iphone and attempt to play it back with no luck. I can get the path from the mediapromise. I also see all of the events being fired for starting, flushing and stopping the buffer stream. I don't see any v

  • What is the reccomended way to clean the macbook screen?

    i dont want to put water on my screen or windex, how ever cleaning it with a dry tissue doesnt get the fingerprints offf.. what should i use.. thanks :)- kel Macbook 13 inch   Mac OS X (10.4.7)