Rfc input from selected element in another view

Hi,
In my web dynpro application I  have two views.
In the first view I fill a variabile (selected_id ) in the custom controller with method onActionSelect.
Now in the second view I call a rfc using selectd_id as input, but it is empty.
How can I solve it?
FirstView
public void onActionSelect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.wdp.IPrivateCatGdfView.IAlberoElement selectedElement )
    //@@begin onActionSelect(ServerEvent)
    if(selectedElement.getIsFoglia().equals("X")){
         wdContext.currentContextElement().setSelected_Id(selectedElement.getId_corso());
         wdThis.wdFirePlugOutCat();
    //@@end
Custom Controller
     Zhr_Schedapdf_Input input_pdf = new Zhr_Schedapdf_Input();
     wdContext.nodeSchedaPdf_Input().bind(input_pdf);
     String corso = wdContext.currentContextElement().getId_selected();
     input_pdf.setObjid(corso);

Hi Alfonso,
  Why don't you set this value in View1?
e.g. 
public void onActionSelect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.wdp.IPrivateCatGdfView.IAlberoElement selectedElement )
    //@@begin onActionSelect(ServerEvent)
    if(selectedElement.getIsFoglia().equals("X")){
         wdContext.currentSchedaPdf_InputElement().setsetObjid(selectedElement.getId_corso());
         wdThis.wdFirePlugOutCat();
    //@@end
Write the following code in wdDoInit() of Custom Controller
Zhr_Schedapdf_Input input_pdf = new Zhr_Schedapdf_Input();
     wdContext.nodeSchedaPdf_Input().bind(input_pdf);
Regards,
Siva

Similar Messages

  • How to read data from select Options in another view without using context

    I have 2 views, one for selection screen and another for displaying result.
    In selection screen view I have define a select options with the help of webdynpro component.
    Now my object is display result in result view based on entry of selection screen.
    I don't want to do binding in context node, without that how I can read data of select option
    in result view?
    Regards,
    Rasmi Ranjan Mishra

    Solve by own.
    If I define the Select options in component controller, then it will be global in nature. so i can get the value of select options
    in another view also.
    Regards,
    Rasmi Ranjan Mishra

  • Export or transport all the RFC destination from one system to another syst

    Hi
    Is there any method to Export or transport all the RFC destination from one system to another system

    Hi,
    the information is stored in table rfcdes.But there are also some other RFC*-tables which have some relations. Nevertheless the RFC-connectons will possibly not work anymore  in the new system(depending on the release your systems are), as the passwords are stored in the Sec store with system-dependent keys.
    b.rgds, Bernhard

  • RFC Call from one server to another

    Hi,
    Is it possible to use an rfc from one server to another on the same network?
    My Idea was that we can do so, however there's a little confusion about the same .
    Please clarify.
    Regards,
    Vikas

    Hi,
       call SE37 and search for RFC* with F4.
    Sending system side(SEND--800)
    Create function module by using Tcode SE37 or SE80
    goto attributes select remote function
    activate
    Receiving system side(RECE--000)
    goto Tcode SM59
    here select the R/3 Connections-->click on Create Button
    give RFC Desstination : TESTRFC
    Connection Type : 3 for Connecting two systems
    Description : Some meaningful Description
    Press enter
    give Target system Name : SEND
    Language : EN
    Client : 800
    user Name : sapuser
    Password : xxxxxx
    save this connections & click on test connections(f8)
    & Remote logon(f7)---> it will open a session
    with client 800 that is your sending system
    then only your RFC is correct
    create a report in SE38 Tcode
    data : c1 type i.
    data : itab like mara occurs 0 with header line.
    call function 'ZRFCFM' destination 'TESTRFC' --->Function Module 'ZRFCFM' your just create at Sending system
    exporting
    importing
    exceptions
    <b>Reward points</b>
    Regards

  • Sometimes Cannot Select Elements in Design view of Dreamweaver

    Hello,
    From time to time, i have trouble selecting elements in the design view.
    Sometimes it works right away. Sometimes I need to click 6-10 times, and sometimes it just doesn't work ( a larger all encompassing element stays selected and no matter how much i click, there is no change )
    I originally thought it was a bug, but I expected it to be fixed by now.
    This also seems arbitrary, perhaps someone here know why it's happening and how to avoid it.
    Thanks
    Peter

    You probably have a CSS overflow:hidden property applied to one or more divisions for float containment.  Switch to Split View.  Or turn off CSS styles in Design View:  View > Style Rendering > untick Display Styles.
    Or you can comment out /**overflow:hidden **/ until you're ready to Preview.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How to assign value from one element to another ?

    Hi,
    I am stuck up in silly problem.
    I have an XML as string i have used parseEscapedXML() to convert it in to XML object Type. see following code.
    <assign name="Assign_3">
    <copy>
    <from expression="ora:parseEscapedXML(ora:getContentAsString(bpws:getVariableData('inputXML')))"/>
    <to variable="inputVariable" part="payload" query="/ns1:email"/>
    </copy>
    </assign>
    above is working fine. In Debug window i can see values in "/ns1:email/ns1:ovdTriggeredDate" but now i need to assign "/ns1:email/ns1:ovdTriggeredDate" to another variable. see following code for refrence.
    <assign name="Assign_2">
    <copy>
    <from expression="ora:getNodeValue(bpws:getVariableData('inputVariable','payload','/ns1:email/ns1:ovdTriggeredDate'))"/>
    <to variable="Variable_2"/>
    </copy>
    </assign>
    in above code "ovdTriggeredDate" is a string and "Variable_2" is also String.
    i dont know why above code is not working
    Can anybody help me in this?
    Thanks in Advance.
    Nimisha

    Hi,
    ovdTriggeredDate is type of an element which is of type string. and Variable_2 is also of type string variable.
    see following use case.i have xml as a string
    inputXML = <email><ovdTriggeredDate>16thFeb</ovdTriggeredDate></email>
    i need to convert string to XML object. now i am assigning this value to Schema.following is my schema.
    <xsd:element name="email">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ovdTriggeredDate" type="xsd:string" minOccurs="1"/>
    </xsd:complexType>
    </xsd:sequence>
    </xsd:element>
    i am able to convert XML string to xml object. now i need only one variable of xml. so i am assigning "ovdTriggeredDate" to string variable "variable_2"
    but its giving me exception. any idea ?
    thanks,
    Nimisha

  • Selecting user input from Select option into smart form

    Hi,
    when i use parameter then i wil show company code in smart-form output
    but when i use  select option then its throwing error parameter specified here is different
    what should i do in this case i want to design a big select option screen for taking user input
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS.
    pls help me in this regards.
    ketan..

    hi
    thnx for your reply
    can u pls elaborate in my code
    now i changed code   BUKRS    = SO_BUKRS-low.
    either i can give low or high but how to select from range
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS-low.
    ketan..

  • Inserting results from select query into another table

    Hi: Is there a way to insert results returned from a SQL query into another table within the same SQL statement.
    For example
    SELECT a.SRCID,
    SUM(DECODE(a.CLASS_ID,91147,1,0)) BLOCK,
    SUM(DECODE(a.CLASS_ID,91126,1,0)) ALLOW,
    FROM EVENT_DATA a
    where
    a.class_id in (91147,91126)
    GROUP BY SRCID
    order by TOTAL DESC;The columns returned SRCID, BLOCK and ALLOW need to go into another table called AGGREGATE_COUNT. This table has fields SRCID, BLOCK and ALLOW. Or is the only way this can be done from outside of SQL like using perl or C.
    Thanks
    Ray

    INSERT INTO aggregate_count
         ( chart_id
         , srcid
         , block
         , allow
    SELECT 2234  chart_id
         , srcid
         , SUM(DECODE(class_id, 91147, 1, 0))
         , SUM(DECODE(class_id, 91126, 1, 0))
      FROM event_data
    WHERE class_id IN (91147, 91126)
    GROUP BY chart_id, srcid
    ORDER BY total DESC;

  • How to control a UI5 element in another view?

    Hi guys,
    I'm developing on a UI5 application. There are two views main.view.js/main.controller.js and detail.view.js/detail.controller.js, both have complex logic and I'm really not willing to merge them together. But I meet with a problem. When I change status of a checkbox in main.view.js, a label in detail.view.js should change accordingly, how can I achieve that?

    IMO,(just my personal view) the most elegant way is to use a model like this example.
    In the example, there are two views which have the same model. Changing label in the model cause the text of label control to change.
    -D

  • HOW TO GET THE SELECTED VALUE IN A ROW FROM ONE VIEW TO ANOTHER VIEW?

    hi all,
    I  have a small issue.
    i have created two views.In the table of the first view i'm selecting a row and pressing the button it will move to next view.
    i am adding some fields manually in the table of the second view and pressing the save button.Here all the values should get updated corresponding to the field which i have selected in the first view.
    I want to know how to get the particular field in the selected row from one view to another view.
    Kindly help me.

    Hi,
            Any data sharing accross views can be achiveved by defining CONTEXT data in COMPONENT CONTROLLER and mapping it to the CONTEXT of all the views. Follow the below steps.
    1. Define a CONTEXT NODE in component controller
    2. Define same CONTEXT NODE in all the views where this has to be accessed & changed.
    3. Go to CONTEXT NODE of each view, right click on the node and choose DEFINE MAPPING.
    This is how you map CONTEXT NODE and same can be accessed/changed from any VIEW or even from COMPONENT CONTROLLER. Any change happens at one VIEW will be automatically available in others.
    Check the below link for more info regarding same.
    [http://help.sap.com/saphelp_nw04s/helpdata/EN/48/444941db42f423e10000000a155106/content.htm]
    Regards,
    Manne.

  • I have multiple iPhoto libraries and when I selecting which library to view (hold down 'option' key and launch iPhoto from the dock) it automatically closes another open apps window eg. Chome, Word. 1 app closes every time I launch iPhoto this way.

    I have multiple iPhoto libraries on my Macbook Air 10.7.5 and when I am selecting which library to view (hold down 'option' key and launch iPhoto from the dock) it automatically closes another open application window eg. Chome, Word. 1 app closes every time I launch iPhoto this way.

    If you're pushing Option at the exact moment you're clicking the Dock icon, it's supposed to do that. Wait until just after clicking it.
    (112342)

  • Passing Multiple table row from one view to another view

    Hi,
    How to Passing Multiple table row from one view to another view in Web Dynpro Abap. (Table UI Element)
    thanx....

    Hi Ganesh,
    Kindly do search before posting.. this discussed many times..
    First create your context in component controller, and do context mapping in two views so that you can get values from
    one veiw to any views.
    and for multiple selection, for table we have property selection mode.. set as multi and remember context node selection
    selection cardinality shoud be 0-n.
    so, select n no of rows and based on some action call sec view and display data.( i think you know navigation between veiw ).
    Pelase check this...for multi selection
    Re: How to copy data from one node to another or fromone table to another table
    for navigation.. check
    navigation between the views
    Cheers,
    Kris.

  • In SAPUI5, Passing Table Row Data  Selected in one xml view to another xml view and display in the second View

    Dear Friends,
    Please provide the solution for the following scenario:
    In the first view(xml)  I have a table with the fields QuotationNo,plant name, material no...etc, where I am displaying the data fetched using Odata model. The table is enable with Single line selection mode. My requirement is to Carry the selected row data to another view(xml) and display there.
    Please give your valuable inputs.

    Hi Rinku,
    depending on how you do the navigation, you might find the information here: OpenUI5 SDK - Demo Kit helpful.
    Regards Frank

  • Opening a view from another view of the same window in diff Browser.

    Hi Experts,
    My requirement is to open a view (say view 2) from another view (say view 1) with click of a button in a different browser, both the views are embedded into the same window, and also i have to pass some data from view1 to view2, based no the input data, i am displaying some information. Also both views belog to the same component.
    Some pointers on this would be of great help.
    Regards,
    Ashish.

    You would need to open another window.
    See if_wd_window and if_wd_window_manager.
    Call the GET_API to get a handle to window manager.
    The new window can show V2.
    The original Window with 2 views,
    must fire plug to navigate v2 to empty view to hide it from Window1.
    The to Views talk to one another via WDC Controller.
    View 2 calls WDC controller methods.  The WDC controller the fires Event.
    View 1 can listen to this event with a method of type event handler.
    View 1 can for example react to button on View 2 and close WINDOW 2.
    Good luck
    Phil.

  • How to nevigate from view in view container to another view

    Hello experts
                             I want to nevigate from one view which is present in the view container to another view which should not be displayed in the view container
                      instead it should be displayed in window .

    Case1:
    WINDOW1
         VIEWCONTAINER1.    
              VIEW1
         VIEW2
    Case 2:
    WINDOW1
         VIEWCONTAINER1
              VIEW1
              VIEW2
         VIEW2
    In the scenario 1 I have mentioned above, If VIEW2 is only embedded in WINDOW1 then it will open only in the WINDOW1 and not in VIEWCONTAINER1.
    However in Case2 if the view is embedded in both WINDOW1 and VIEWCONTAINER1 then when creating the navigation link, Press f4 on destination view. There you will see VIEW2 two times, specifying the VIEW2 to be opened in WINDOW1 and VIEW2 to be opened in WINDOW1.VIEWCONTAINER1.
    Here you can select where you want your VIEW2 to be opened.

Maybe you are looking for

  • Blue Screen instead of sleep

    I experienced a strange behaviour of my iMac G5 (isight) the last few days: I set the iMac to first display the screensaver after 10 minutes, then to go to sleep after 45 minutes. Now, the saver shows up, no problem. But then, instead of going to sle

  • Reading a UTF-8 Web encoded page - Wrong output

    Dear All, I have used Java to fetch Greek web pages encoded in ISO-8859-7 without any problems. The HTML source along with the greek letters shows up to my console (Eclipse) just fine. However now that i am trying to fetch a web page encoded in UTF-8

  • Mail Application Crashes when opening new message

    The problem, though annoying, is easy to explain. Each time I open mail and attempt to view new messages (i.e., marked unread), the application crashes. I can, however, view messages that have been downloaded. I have two POP accounts, if that matters

  • HT5012 I am having trouble with the swipe up menu.

    After a while of not playing songs from the play button it stops working.

  • Mac os x base system on same volume, can't access

    Something happened to my mac book and when I booted up went straight to disk utilities. Updated os x to Lion but can't reinstall. Tried to reinstall original osx but failed so erased volume but installed mac os x base system on the same volume. only