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

Similar Messages

  • 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

  • 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

  • Pass values between views of different window

    Hello Experts,
    I am a newbie in ABAP Webdynpro. I have 2 views in 2 different windows. I want to pass values calculated from one view to the other view. But i cannot connect the views.
    If the views were within the same window, I could connect them using inbound and oubound plugs with parameters. However in this case i am unable to establish the navigation link between these 2 views.
    Has anyone of you experts come across such kind of requirement? If so, can you please guide how to connect the 2 views?
    Thanks and regards,
    Nitish.

    Everyone,
    I was finally able to connect the 2 views by using the component controller.
    I created an attribute on the context of the component controller and read/set of the attribute of component controller on the button click event.
    To access the attribute of the component controller, please find below a code snippet which was useful to me:
    Data declaration for accessing the component controller
    DATA:
           lo_component     type REF TO if_wd_component,
           lo_context       type REF TO if_wd_context,
           lo_controller    type REF TO if_wd_controller,
           lo_node          type ref to if_wd_context_node,
           lo_child         type REF TO  if_wd_context_node.
    DATA lo_el_test_depts  TYPE REF TO if_wd_context_element.
    get component controller API
      lo_component = wd_comp_controller->wd_get_api( ).
      lo_controller ?= lo_component.
    accessing the context of the component controller
      CALL METHOD lo_controller->get_context
       RECEIVING
       context =  lo_context.
    lo_context is the required context, from here we can manipulate its components
    get to the root node in context of component controller
      lo_node = lo_context->root_node.
    using lo_node i was able to  read and write to the attribute i created in component controller.
    Thank you all for your help.
    Nitish.
    Edited by: Nitu_0105 on Apr 8, 2011 3:29 PM

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

  • ABAP pass values between views?

    Hi - how do you pass a value from one to another on navigation?  I have set them up as attributes and thought I could just call the one screens controller and get the values this way - but the controller is always initial.  Thanks

    Hello Nigel.
    Try to see if my reply at this thread can help you out:
    Trigger View change from another view
    Good luck!
    Kind regards.
    Bruno

  • Passing values between views in View Scoped Bean

    I have a form page that uses a view scoped backing. This page forwards to a confirmation page that uses the same backing bean. I would like to redisplay the information to the user that they entered in the form and then process these values when they hit submit on the confirmation page. However, when on the confirmation page, all of the values from the bean are null. I understand that view scoped beans are destroyed when you go to a new view, but when this bean was request scoped I could see the values on this page and save them in hidden inputs to process in the backing bean. I can still see the form values in the request parameters. Also, I cannot use a request scoped bean due to multiple ajax requests that are on the form. How can I propagate the values from the first form page to the second confirmation page?
    I am using Mojarra JSF 2.0
    Edited by: edenbaptiste on Apr 22, 2010 4:25 PM

    Here is some Sample code.
    The Payment Page:
    <ui:composition>
        <form jsfc="h:form" id="form">
            <h:messages/>
            <select id="paymentMethod" jsfc="h:selectOneRadio" value="#{testPaymentBean.paymentMethod}" immediate="true">
                <option jsfc="f:selectItem" itemValue="first" itemLabel="Pay with First Type"/>
                <option jsfc="f:selectItem" itemValue="second" itemLabel="Pay with Second Type"/>
                <f:ajax render="paymentPanel"/>
            </select>
            <h:panelGroup id="paymentPanel">
                <ui:include src="#{testPaymentBean.paymentPanel}"/>
            </h:panelGroup>
            <h:commandButton action="#{testPaymentBean.handlePayment}" value="Submit"/>
        </form>
    </ui:composition>The First Payment Type Form Fragment:
    <ui:composition>
        <h:panelGroup layout="block">
            <h:outputLabel for="amount" value="Enter Payment Amount: " />
            <h:inputText value="#{testPaymentBean.amount}">
                <f:validateLongRange minimum="0" />
            </h:inputText>
            <h:message for="amount"/>
            <br />
            <h:outputLabel for="holderName" value="Enter Account Holder Name: " />
            <h:inputText value="#{testPaymentBean.name}" />
            <h:message for="holderName"/>
            <br />
            <h:outputLabel for="accountNumber" value="Enter Account Number" />
            <h:inputText value="#{testPaymentBean.accountNumber}">
                <f:validateLongRange minimum="0" />
            </h:inputText>
            <h:message for="accountNumber"/>
        </h:panelGroup>
    </ui:composition>The Second Payment Type Form Fragment:
    <ui:composition>
        <h:panelGroup layout="block">
            <h:outputLabel for="amount" value="Enter Payment Amount: " />
            <h:inputText value="#{testPaymentBean.amount}">
                <f:validateLongRange minimum="0" />
            </h:inputText>
            <h:message for="amount"/>
            <br />
            <h:outputLabel for="holderName" value="Enter Account Holder Name: " />
            <h:inputText value="#{testPaymentBean.name}" />
            <h:message for="holderName"/>
            <br />
            <h:outputLabel for="accountNumber" value="Enter Account Number" />
            <h:inputText value="#{testPaymentBean.accountNumber}">
                <f:validateLongRange minimum="0" />
            </h:inputText>
            <h:panelGroup id="physicalAddrPanel" layout="block"
                          style="display: #{testPaymentBean.physicalAddressDisplayStyle}">
                <h:outputLabel for="addrFirstLine" value="Address Line 1: " />
                <h:inputText value="#{testPaymentBean.streetLineOne}" />
                <h:commandLink value="Use PO Box" immediate="true">
                    <f:ajax render="poBoxPanel physicalAddrPanel" />
                    <f:setPropertyActionListener value="display" target="#{testPaymentBean.poBoxDisplayStyle}"/>
                    <f:setPropertyActionListener value="none" target="#{testPaymentBean.physicalAddressDisplayStyle}"/>
                </h:commandLink>
                <h:message for="addrFirstLine"/>
                <br />
                <h:outputLabel for="addrSecondLine" value="Address Line 2: " />
                <h:inputText value="#{testPaymentBean.streetLineTwo}" />
                <h:message for="addrSecondLine"/>
                <br />
                <h:outputLabel for="addrThirdLine" value="Address Line 3: " />
                <h:inputText value="#{testPaymentBean.streetLineThree}" />
                <h:message for="addrThirdLine"/>
            </h:panelGroup>
            <h:panelGroup id="poBoxPanel" layout="block"
                          style="display: #{testPaymentBean.poBoxDisplayStyle}">
                <h:outputLabel for="poBox" value="PO Box Number: " />
                <h:inputText value="#{testPaymentBean.poBoxNumber}">
                    <f:validateLongRange minimum="0" />
                </h:inputText>
                <h:commandLink value="Use Physical Address" immediate="true">
                    <f:ajax render="poBoxPanel physicalAddrPanel" />
                    <f:setPropertyActionListener value="none" target="#{testPaymentBean.poBoxDisplayStyle}"/>
                    <f:setPropertyActionListener value="display" target="#{testPaymentBean.physicalAddressDisplayStyle}"/>
                </h:commandLink>
                <h:message for="poBox"/>
                <br />
                <h:outputLabel for="zipCode" value="Zip Code: " />
                <h:inputText maxlength="5" size="5" value="#{testPaymentBean.zipCode}">
                    <f:validateLongRange minimum="0" />
                    <f:validateLength minimum="5" />
                </h:inputText>
                <h:message for="zipCode"/>
            </h:panelGroup>
        </h:panelGroup>
    </ui:composition>The Backing Bean:
    import java.io.Serializable;
    import javax.faces.bean.ManagedBean;
    @ManagedBean()
    public class TestPaymentBean implements Serializable{
        private String paymentMethod;
        private String name;
        private double amount;
        private String accountNumber;
        private int poBoxNumber;
        private String streetLineOne;
        private String streetLineTwo;
        private String streetLineThree;
        private String zipCode;
        private String poBoxDisplayStyle;
        private String physicalAddressDisplayStyle;
        private boolean poBoxUsed;
        public TestPaymentBean(){
            paymentMethod = "first";
            poBoxDisplayStyle = "none";
            physicalAddressDisplayStyle = "display";
        public String getPaymentPanel() {
            if(paymentMethod.equalsIgnoreCase("second")){
                return "/sections/formfragments/testSecondPaymentContentPanel.xhtml";
            } else if(paymentMethod.equalsIgnoreCase("first")){
                return "/sections/formfragments/testFirstPaymentContentPanel.xhtml";
            return null;
        public String handlePayment(){
            if(paymentMethod.equalsIgnoreCase("second")){
                return handleSecondPayment();
            } else if(paymentMethod.equalsIgnoreCase("first")){
                return handleFirstPayment();
            return null;
        private String handleSecondPayment() {
            poBoxUsed = poBoxDisplayStyle.equalsIgnoreCase("display");
            return "testpaymentconfirmation";
        private String handleFirstPayment() {
            return "testpaymentconfirmation";
        public String handleSecondConfirm() {
            return "testpaymentsuccess";
        public String handleFirstConfirm() {
            return "testpaymentsuccess";
        //Getters and Setters
    }The Confirmation Page:
    <ui:composition>
        <form jsfc="h:form" id="form">
            <c:choose>
                <c:when test="#{fn:containsIgnoreCase(testPaymentBean.paymentMethod, 'first')}">
                    <ui:include src="/sections/formfragments/testFirstPaymentConfirmationContentPanel.xhtml"/>
                </c:when>
                <c:when test="#{fn:containsIgnoreCase(testPaymentBean.paymentMethod, 'second')}">
                    <ui:include src="/sections/formfragments/testSecondPaymentConfirmationContentPanel.xhtml"/>
                </c:when>
            </c:choose>
        </form>
    </ui:composition>

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

  • How to pass data between views using Flex for mobile?

    Hi,
      In my 1st view, I have set of images. Each image represents a product category. When I click on an image, it has to show my 2nd view which is a list. This should show all the products linked to this category.
    I saw few examples where the 1st view is a list. Select an item in a list shows the details in the next view.
    But what I need is, I need to know which image is clicked in my 1st view (ie) Home page. This id needs to be passed to my 2nd view to retrieve the data for the clicked image (clicked product category).
    Can anyone help me in this?

    Chellaa2011,
      If I understand you correctly, you can pass data to the next view by passing the second parameter to the pushView method. 
      check out: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/ViewNa vigator.html#pushView()
      I've written similar apps in the past and found that a singleton class alleviates some of these issues.  If you use a singleton to track currently selections all your views can access the same data without having to pass and return data from each other.
    Hope this helps,
    KLee

  • 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

  • How to pass values between tabs?

    Hi,
    I am creating an JFrame with two tabs. The first tab is where the user inputs data, and I want some fields in the second tab to import this some of this data (everytime the second tab is clicked). How would I go about doing this?
    Thanks,
    Pratik.

    Thank you Michael_Dunn. I have run into another problem unfortunately: I cannot seem to access the second panel from the action event method. I am attaching the code for the frame here for clarification
    public class SuperInputFrame extends JPanel {
        JTabbedPane tabbedPane = new JTabbedPane();
    public SuperInputFrame(){   
        JPanel inPl = new InputPanel();
        tabbedPane.addTab("Inputs", inPl);
        JPanel gaPl = new GeneticPanel();
        tabbedPane.addTab("Genetic Algorithm", gaPl);
        tabbedPane.addChangeListener(new ChangeListener() {
          public void stateChanged(ChangeEvent e) {
            tabChangeEvent(e);
        add(tabbedPane);
    private void tabChangeEvent(javax.swing.event.ChangeEvent evt) { 
        System.out.println("Tab=" + tabbedPane.getSelectedIndex());
    }I am trying to copy the values from some of the InputPanel (called inPl and assigned to the first tab) fields to the GeneticPanel (called gaPl and assigned to the second tab). I have public methods in both panels that will do this for me, but when I type inPl.method() or gaPl.method() in the tabChangeEvent method NetBeans does not recognize the variables inPl or gaPl. Any ideas?
    Edited by: PratikThaker on Nov 7, 2008 12:29 AM

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

Maybe you are looking for

  • PB locks up (kernel panic) when i plug/unplug

    not sure of the terminology is correct, but the faded gray screen with the black "you must restart" warning box pops up when i plug/unplug my PB. it's on it's 2nd replacement logic board... time for a 3rd? or software?...

  • How can I use software from mac os 8.6

    I have old mac 4400/160 with os 8.6. Can I use program files from that os on os x and how?

  • I have published iWeb now what?

    I have finished my web pages in iWeb and published them but now what? Do I have to buy a domain name? I am starting a business and do not know if I need to purchase a domain name or if I can just use my mobile me website? If I don't have to purchase

  • New iPhone 5, Adobe Bridge Hangs or Gives up Downloading Photos from It

    I have Adobe Bridge CS5.   Version 4.1.0.54.    Installed on Windows 7. When I try to download photos and movies from my new iPhone 5, Adobe Bridge hangs. Anyone have a fix?   How can I report this as a bug to Adobe?

  • Update Lightroom 5.0 - 5.5 (win) failed

    Update from lightroom 5.0 (win 8.1, 64 bit) to 5.5 failed with following messages: Das Feature das sie verwenden möchten, befindet sich auf einer Netzwerkressource, die nicht zur Verfügung steht. Geben sie einen anderen Ordner ein, der das Installati