How to pass values between BSP pages?

Friends,
  I have used htmlb controls within my BSP page. I need to pass the value that i provide in the first page to the next BSP page and display it. I used something like
navigation->set_parameter( name = 'val1' value = val1 ) and navigation->goto_page( 'second.htm' ).
Now, how should i read this value in the second.htm?. I tried to bring this value using the
data ename type string.
ename = navigation->get_parameter( name = 'val1' )
in the onInitialization event. But its not working.. How should i go about it?. Do i have to set anything in the Page attributes?. Is it possible to change the text of a label at runtime?.
Expecting an early reply.. suitable answers with code snippets will be rewarded..
Thank you,
Saravanan.

Here's one way:
I have page attribute  pa_error_no of 'Error.htm'defined as
     TYPE     CHAR3     3-Byte field
In OnInputProcessing of page1.htm
     navigation->set_parameter( name = 'pa_error_no'
                               value = '003' ).
     application->cv_page_next = 'Error.htm'.
     navigation->goto_page( application->cv_page_next ).
Then in 'Error.htm' (I happen to use it in the layout)  you can reference it in OnInputProcessing also
<%
      case pa_error_no.
      when '001'.
         if not ( application->cv_bp_number is initial ).
%>

Similar Messages

  • How to pass values between two pages

    also see:
    In portlets, how to use a html form passing  values to the another page?
    and
    htmlFormActionLink() method
    in common B/S developing, use html link add with a parameter or some parameters or we can submit it in a form to post values to another page .but how to do these in portal?
    I tried to write the code, but couldn't run at all!
    the provider.xml is still no problem!
    would you be so kind as to help me ?
    thanks!

    Hi Ravi,
            Using the call
    navigation->set_parameter( name='myparameter' value = myvalue ).
    you can set the page parameter myparameter to the value myvalue. This value can then be used for processing in the subsequent page.
    If the form field (in the layout part) and the page parameter are of the type string and are specified by the same name (in this case, myparameter), the following abbreviation can be used:
    navigation->set_parameter( 'myparameter' ).
    Using the set_parameter you can pass only the parameters of type string. If you wish to pass more set of values then you can call a method and then export the values of the drop down.
    Pls reward if useful.
    Thanks.

  • How to pass values between views in FPM - GAF

    Hi Experts ,
    i have a doubt in FPM how to pass values between views .
    For Example:  i am having 2 views -  1 ) overview , 2 ) edit  using  the GAF
    in 1st view (overview ) i have a table displaying the employee details , i will select a single employee from that table for editing .
    how to pass the selected employee details to the 2 nd view (edit ) .
    Thanks & regards
    chinnaiya P

    Hi chinnaiya pandiyan,
    Please follow below steps:
    1. To achieve this u need to create two context nodes in the component controller.
    2. Say one is EMPLOYEE_DATA and other is SELECTED_DATA.
    3. Set the Cardinality of EMPLOYEE_DATA to 0..n and SELECTED_DATA to 1..1.
    4. Add same attributes to both nodes. (probably all those fields that are required in table and/or in edit view.
    5. Map both these nodes to OVERVIEW view.
    6. Map only SELECTED_DATA node to EDIT view.
    7. Create table in OVERVIEW view based on EMPLOYEE_DATA node.
    8. Create edit form in EDIT view based on SELECTED_DATA node.
    9. While navigating from OVERVIEW view to EDIT view, read the selected element of EMPLOYEE_DATA node and copy it to an element of SELECTED_DATA node. This should be written in PROCESS_EVENT method of component controller inherited from FPM component.
    10. Now u got the selected data in SELECTED_DATA node which will be displayed in EDIT view.
    Regards,
    Vikrant

  • How to pass value between two forms.

    Hi all,
    how to pass value between two forms(using :parameter),...
    Thanks
    Rajesh

    To use parameters, create a parameterlist with the named parameters
    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_id);
      END IF;
      pl_id := Create_Parameter_List(pl_name);
      ADD_PARAMETER (pl_id,'MYPARAMETER',TEXT_PARAMETER,:BLOCK.VALUE);      
      CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE, NO_QUERY_ONLY, pl_id);
    END;In the new form you can then just access the parameters via :PARAMETER.MYPARAMETER;
    An alternative is the usage of globals:
    :GLOBAL.MYPARAM:=:BLOCK.VALUE;
    -- call the emp-form
    CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE);and in the new form use:
    DEFAULT_VALUE(NULL, 'GLOBAL.MYPARAM');
    IF :GLOBAL.MYPARAM IS NOT NULL THEN
    ...The advantage of gloabls is that they can also return values back to the calling form, which is not possible using parameters

  • How to Pass values between one webdynpro application to another

    Hi ,
        I know How to Pass Values Between the Application by URL But For My Requirement NO need The Pass in URL Rather Than That Please any one TEll me How to GEt VAlues BEtween the application......
    Thanks
    ANANTH.

    If you dont want to pass values through URL, then you must have to use component Usage with interface node.
    Or you can try like this,
    by appending field value to url,
    Data w_url type string,
    w_value type string.
    get the url of calling aplication
    call method cl_Wd_utilities->construct_wd_url
    exporting application name = name of second application( to which u want to pass parameter )
    importing out_absolute_url = w_url.
    ***Make the value type compatible that has to passed with url.
    w_string = lv_pernr
    ***Now attach the parameter and its value with url that have to passed to 2nd application
    call method cl_http_Server=>append_field_url
    exporting name = 'pernr'
    value = ' w_value'
    changing url = w_url.
    then popup window for 2nd application with above url
    lo_window = lo_window_manager->create_external_application ( url = w_url ).
    lo_window -> open( ).
    ***now in wddoinit of 2nd application
    data lv_param type string
    lv_param = wdr_task=>client_window->get_parameter( ' pernr ').
    Now you can use lv_param in 2nd application.
    Regards
    srinivas

  • How to pass values between pages?

    Hi
    Anybody know how you pass values like ids between pages using buttons?
    Cheers
    dan
    Message was edited by:
    user551484

    Hi
    Why do you want to do this? You can access values from other pages so if you are on page 2 and there is an item on page 1 called P1_ID you can simply assign it to an item on page 2 by typing in P1_ID in the source value for your page 2 item.
    Or you could reference it direct in your pl/sql process by typing &P1_ID. (note the fullstop)
    If you did want to pass a value using a button you can do so by clicking on the button name in then scroll down to the section called optional URL redirect.
    set target is a - to page in this application
    then select the page you want the button to send you to
    then click the flashlight icon next to set these items
    you can then select the page item you want to send the value to and the page item you are getting the value from.
    Danny
    Message was edited by:
    Danny Roach

  • Pass value between JSP pages

    I would like to pass values between pages.
    I don't want showing up on the url. Ex: some.jsp?param=value
    I don't feel it's safe.
    It's not coming from form either....
    How can I hide the value and pass it to next page?
    I want to pass the value when the user click on a hyperlink
    Thanks In Advance.
    Message was edited by:
    Theepan

    Client side information is never safe no matter what you do. If the values don't end up in the url, they are always present SOMEWHERE in the html content.
    If you don't want the values to end up in the url, rework the page so it DOES do a post form submit. You could turn the hyperlink into a javascript call that submits the form for you.

  • How to pass value between models?

    Dear all,
    I use VC 7.0 composer to create dashboards. That include one overview dashboard (model) to show seven KPI in one screen and I also have seven detailed dashboards (models) to show the detail of each KPI.  Each dashboard has their own iView .   User will only need to pick a plant once at the overview dashboard and I expect the plant value will be passed to other seven detailed dashboards.
    Since those dashboards are saved in different models, I just wonder is it possible I can pass the value from the overview dashboard model to the separated detailed dashboard models? The reason I donu2019t put all dashboards in one model because I need to have different reports assigned on the left of the screen for each dashboard in portal. If I need to accomplish this in portal, I believe I need separate iView(model) for each dashboard. Please correct me if I am wrong since I am new to portal development. Thanks.

    I think it is possible to pass values between models.
    Just creat on "Write-RFC" and one "Read-RFC"
    The RFC has just the function to write/read a value into an customer table...
    ^^ We have tried this scenario and it works perfect.
    Regards
    Florian

  • Passing values between jsp pages

    Hi all,
    I am a newbie to jsp. I am trying to pass value from one jsp to another.
    Let me post the code here and make my point clear. I have 3 jsp pages and am trying to get the value into my 3rd page that was in the first page.
    This is my Test.jsp page:
    <%@page contentType="text/html"%>
    <html>
    <head><title>Test JSP Page</title></head>
    <body>
    <%-- <jsp:useBean id="beanInstanceName" scope="session" class="package.class" /> --%>
    <%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
    Testing.. JSP Page
    <FORM action='Response.jsp' method="POST">
    <input type='Text' name='get_name'>
    <input type="submit" value="Click Me">
    </FORM>
    </body>
    </html>
    This is my response.jsp page:
    <%@page contentType="text/html"%>
    <%@page import = "sun.jdbc.rowset.CachedRowSet" %>
    <html>
    <head><title>Response Page</title></head>
    <body>
    <%-- <jsp:useBean id="beanInstanceName" scope="session" class="package.class" /> --%>
    <%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
    Thank you... <%=request.getParameter("get_name") %>
    // I want to pass this get_name to my next page, but since request.getParameter returns an object and not a string, how will I capture the value and pass it to my next page.
    </body>
    </html>
    The 3rd jsp page is:
    <%@page contentType="text/html"%>
    <html>
    <head><title>JSP Page</title></head>
    <body>
    // I am trying to get the value of the name here in this page.
    <%-- <jsp:useBean id="beanInstanceName" scope="session" class="package.class" /> --%>
    <%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
    </body>
    </html>
    Your help is appreciated.
    Thanks

    Hi,
    Thanks for the reply, it works. I was wondering whether this is an efficient way of doing this. What I want to do further is to setup a connection to a database and use the value I got from my previous page to query the DB and get the results and display.
    I have see some code in the java website and a lot of people do by writting a bean /class(believe bean is just a class) and then importing it and do the things that way. I have good knowledge of OO and Java as a language and would definitely love to do it this way.
    What i think i am missing is the basic idea to doing this way. So if you could let me know how to do this using java classes I would really appreciate it. If its too much to explain can u point to some good source(URL's) that explain's this. I have searched on this and all i find is code with no good explaination.
    Thanks a lot

  • How can I pass value between two pages or fragments?

    Hi,
    I am learning ADF nowadays. Now I come across the following problem.
    There are two pages or fragments in a bounded task flow, e.g. PageA&PageB. There is an inputtext on PageA.When I press an button on PageA with an action jumpping to PageB I want pass the value of this inputtext to annother inputtext, which is shown on PageB. Moreover, the inputtext on PageB comes from a ViewObject. How can I achieve this goal? Any ideas or suggestions?
    Best wishes!
    Eleven.Xu
    Mar 27th.2009
    Edited by: Eleven.Xu on 2009-3-26 下午7:03

    RequestContext requestContext = RequestContext.getCurrentInstance();
    requestContext.getPageFlowScope().put("var_name", value);
    String value = (String)requestContext.getPageFlowScope().get("var_name");
    if you open a new window, the value will be null.

  • To pass value between jsp page

    How can I pass hidden's value from a jsp page to other?
    My code is:
    a.jsp
    <h:form id="insUser">
    <h:inputHidden id="flag" value="1"></h:inputHidden>
    </h:form>
    b.jsp
    <%String flag="";
    flag=request.getParameter("flag");
    out.print("flag="+flag);
    %>
    b.jsp shows: flag=null
    Could you help me?

    Because this hidden field id is insUser:flag, but not just flag.
    If you have subview or other naming container(s) around form, the id name might be even longer.
    Sergey : https://ajax4jsf.dev.java.net/

  • How to pass values between applet and jsp

    I have a jsp calling an applet which needs to return value to the calling jsp based on the action. Once the applet returns value to the calling jsp, I need to put that value into the session so that I can use it for the other pages. Could anyone have suggestion how to do it. I am new to applet development. Appreciate your help.

    Why does it have to send the value back via the same JSP? Why not create a servlet to take input from the applet?

  • How to pass values between nested i-views

    Hi All,
    I have created two nested i-views, one containing a form with a signal out and one with a table and a signal in. Once the form is submitted the values should be passed to the other nested i-view containing the table and the signal in.
    If I create the two i-views as primary windows and deploy the model, the values are passed between the two i-views. If I make the i-views nested windows and create another i-view that contains the two nested i-views, the values are not being passed.
    What am i doing wrong ? Any ideas ?
    Thanks
    Thomas

    Hi,
    Sorry for not explaining this before, i was in a bit of a hurry. What I did is the following. I have one main i-view containing two nested i-views. The nested i-views pass information using a signal out and a signal in.
    The thing I forgot was to connect the signal out with the signal in of the two nested i-views. After I had connected these, the values where passed correctly.
    Not sure if this is what you are after, but it worked for my scenario.
    Regards
    Thomas

  • Pass values between jsp pages

    Admin1.jsp
    In this jsp page i have a drop down list with<select name=Update
    From this page i move to the page Adnim2.jsp
    Admin2.jsp
    In this page i request for the value of selected entry in the drop down list as follows
    String a=request.getParameter("Update");
    From this page i move onto a servlet UpdateContribution.java
    UpdateContribution.java
    Here i need the value of the selected entry in drop down list ie Update
    but String a=request.getParameter("Update"); does not work here and i get a Null Pointer Exception
    Please help me

    In Admin2.jsp, add a hidden form field and assign the selected value of drop-down to it. Now, you can obtain
    the selected value of drop-down in Servlet(UpdateContribution.java) using given hidden form field.
    Or,
    Store the selected value of drop-down list in session. Now, you can obtain the value in servlet(UpdateContribution.java) through session

  • How to pass values between user-exits?

    Hi,
    I have to use two user-exits for changing tolerance limit of POs. In one, I have to check for the condition and in another, I have to change tolerance limit.
    How to do it?
    Thanks in advance.
    Regards,
    Arun Mohan

    Hi Arun,
    Use EXPORT and IMPORT.
    Means EXPORT value from on exit and IMPORT the value from another exit.
    In One Exit :
    EXPORT (OBJ_TAB) TO MEMORY ID 'ABCD'.
    In Second Exit :
    IMPORT (OBJ_TAB) FROM MEMORY ID 'ABCD'.
    Lanka

Maybe you are looking for