Web Dynpro Action/Method Handeling question

Hey guys, here is what i am trying to do:
I have a view with an input field and a drop down.
The user enters an employee number in the input field, and i want the drop down to populate with some info about that employee.
I CAN get it to work with the user pressing ENTER after entering the employee number, but i am wondering if there is a way to handle if the use just TABS to the drop down, or if the user just CLICKS on the drop down with the mouse?
Either that or a way to auto populate the drop down anytime the value changes in the text field?
thoughts?
I have tried all the standard WDDO events and none do what i want.
Thanks!
-Jason

HI
Ok.Maybe I didn't explain my question clearly.
Firstly, what I want to do is just like send-email button does.But you know,after I click the sendemail button, an automatic check will be done to check which required text field is null,if is null, a red border will be added and the submit is not allowed.(and also execute presubmit event)
Ok, I just add a web dynpro submit button,but I find it doesn't check whether the required text field is null.
I thought I could add the SAPSUBMIT script to submit button,but when i change the button to regular submit button, the click event  disappeared.
I know we can add some more scripts to archive this.
But because of the form is so large, I just want to find an easy way.to do so.
Thank you.
Best Regards
delma
Edited by: delma ma on Aug 13, 2008 11:51 AM

Similar Messages

  • Web dynpro submit button's question

    Hi all,
    There is a question about web dynpro's submit button.
    I create a Web dynpro activex submit button,And it executes the action which i created in view's.That's ok.
    But I also want to do such like adobe's regular submit action,for example,check the required textfield.......execute the preSubmit action and so on......
    I change the control type from regular to submit,but it clears the click event. I guess it will remove the Web dynpro action execute.
    So what should I do?
    Best Regards
    delma

    HI
    Ok.Maybe I didn't explain my question clearly.
    Firstly, what I want to do is just like send-email button does.But you know,after I click the sendemail button, an automatic check will be done to check which required text field is null,if is null, a red border will be added and the submit is not allowed.(and also execute presubmit event)
    Ok, I just add a web dynpro submit button,but I find it doesn't check whether the required text field is null.
    I thought I could add the SAPSUBMIT script to submit button,but when i change the button to regular submit button, the click event  disappeared.
    I know we can add some more scripts to archive this.
    But because of the form is so large, I just want to find an easy way.to do so.
    Thank you.
    Best Regards
    delma
    Edited by: delma ma on Aug 13, 2008 11:51 AM

  • ABAP Web Dynpro isolation method

    Hello all!
    i have a scenario where i need to publish a ABAP Web Dynpro app to my outward facing portal. the issue is that i am using reverse proxy which allows me to secure the external portal..
    When i create an ABAP WD Iview i am forced to have the isolation to URL which makes a separate call from the browser to the ABAP system for the content. I need to be able to render this on the server in more of an embedded style so the calls continue to go through the reverse proxy.
    Any thoughts would be appreciated.
    Regards,
    Joe Villar

    Hi Joe,
    I think this blog will help you: The Reverse Proxy Series -- Part 3.2: Apache as a complex reverse-proxy

  • Question when i am in web dynpro interface method trying to find code

    Hello guys,
    I am in an event handler and i see this logic wd_this->mo_dodm_srchbidder_c->add_selected_bidder().  When i double click on the add selected bidder it takes me to the method inside interface /sapsrm/IF_CLL_DODM_BIDDER.   So when i double click on the method it takes me nowhere.
    My question is what do i have to do or where do i go to see the code for add_selected_bidder?   thank you.

    I think, you have visited to the definition of the interface method and not the implementation of the method.
    You have instantiated the wd_this->mo_dodm_srchbidder_c some where, may be in the wd domodifyview. Find that out where the implementation happens.
    I believe when you double click the method in  editor ask for to go to definition or implementation.

  • Pre,Post,OverWrite Exit for web dynpro ABAP methods of component,view

    Hi,
    my question is i have created overwrite exit for method of component controller in one enhancement implementaion say ENH1, and i also created overwrite exit for same method in another enhancement implemenation say ENH2, it means i have two different implemenations now, 
    My questions here is, will both Enhancement implemenations will "execute", if yes in what order..
    Please clarify.
    Thanks.

    I'm afraid the information that Manas gave you is incorrect.  In an overwrite method, the enhancement completely overrides and replaces the original method.  Both versions are NOT executed.  This is the risk you run with the Overwrite enhancement - you are choosing to completely replace the SAP delivered logic. 
    From the Online Help:
    The overwrite exit method takes on the signature of the original method and overwrites it.  This means that an overwrite exit is executed instead of the original method.
    At runtime only one overwrite exit can be active. If several overwrite exits are active, a runtime error occurs.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/dc/e6ba426b81da11e10000000a155106/frameset.htm

  • How can we call methods of one web dynpro component in another one

    Hello Team,
    How do I call  one Web Dynpro component methods in another Web Dynpro component.
    How do we use public parts.
    thanks

    Hi,
    You want to use Comp2's getData() method in Comp1
    If both the WebDynpro components are in the same DC:
    1. Create a wrapper method (with the same signature) in the Comp2's Interface controller. And invoke the Component contorller's getData() method in this method using the below code.
    wdThis.wdGetComp2Controller.getData()
    2. Now Go to the Comp1 and right click on UsedWebDynproComps and add this Comp2 as a UsedWebDypro component.
    3. Now go to the Component Controller of Comp1 and in properties tab add the usage declaration of Interface controller of Comp2.
    4. Now using this below code you can access the method of InterfaceController of Comp2.
    wdThis.wdGetComp2Interface().getData();
    If both the WebDynpro components are in different DCs:
    1. Right click on Comp2 and select Add to public part on Comp2 in DC2.
    2. Now Add this public part in DC1 UsedDCs.
    Now repeat the above stpes 1...to..4. of  "If both the WebDynpro components are in the same DC" same.
    Regards,
    Charan

  • CAF DB Update for CAF Entity Service from Web Dynpro

    Hi all,
    I have created an entity service in CAF called “Contacts’ which contains the following attributes.
    phoneNo
    cellNo
    emailID.
    Another entity service called "Person" is created. This contains the following attributes.
    personId
    personName
    personAddr
    contactsRef. (Cardinality -> 0..n , Relational Type -> Composition)
    That means Contacts entity service is used within Person entity service. Now it is working fine within CAF service browser. Now the Web Dynpro DC of CAF application is used within another custom Web Dynpro DC project. I want to store data from Web Dynpro.
    Within the context of component controller of  Web Dynpro the structure is like
    APerson
         |_ personId
         |_ personName
         |_ personAddr
         |_ contactsRef       
                    |_ phoneNo (Under contactsRef)
                    |_ cellNo (Under contactsRef)
                    |_ emailID (Under contactsRef)
    So I have written the following code within web dynpro custom method.
    APerson person = PersonServiceProxy.create();
    java.util.List ls = new ArrayList();
    for(int i=0; i<4;i++)
    AContacts contact = ContactsServiceProxy.create();
    contact.setCellNo("9092130156");
    contact.setEmailID("[email protected]");
    contact.setPhoneNo("432258");
    contact.getAspect().sendChanges();
    ls.add(contact);
    person.setRelatedModelObjects("contactsRef",ls);
    person.setPersonID("9999");
    person.setPersonName("xyz");
    person.setPersonAddr("ABC, KOL");
    wdContext.nodeAPerson().bind(person);
    person.getAspect().sendChanges();
    CAFServiceFactory.getServiceFacade(idendityDefinition.class);
    After saving the data from Web Dynpro I am trying to test it from CAF service browser. But I am getting only the parent row. I mean only the value of personId, personName and personAddr fields which I have stored from Web Dynpro. But no value is coming within the table for Contacts entity service for composition relation.
    Could anybody help me how can I solve my problem?
    Thanks & Regards
    Chandan
    Message was edited by:
            Chandan Jash

    Hi Chandan,
    Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
      I am not sure the code is actually adding the contact model object to person.
    Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
    award points if  info is helpful
    Regards,
    Anish

  • HTML, JavaScript, Applets possible in Web-Dynpro Applications?

    Hello Community,
    I'm developing a JEE5-Application using Web-Dynpro for the User-Interface. Web-Dynpro works fine for the most functions and processes of the application. But there are some special requirements i don't know to implement them using Web-Dynpro.
    So my question is, if there is the possibility for:
    using HTML-Code in a Web-Dynpro UI-App  (the HTML dynamically generated by Web-Dynpro)
    using JavaScript in the Web-Dynpro UI-App
    using Java-Applets (for example to interact if local computer resources)
    using an HTML-Editor for editing Texts in the Application (for example freeware Edtior fckeditor)
    or do i have to use JSF in that case?
    regards
    Matthias

    Hi Matthias,
    I will answer your question point wise, in short:
    1) Using HTML-Code in a Web-Dynpro UI-App (the HTML dynamically generated by Web-Dynpro)
    Ans: it is possible to put the HTML code in the WebDynpro UI App. Use the IFrame Ui element to do the same. See this:
    http://help.sap.com/saphelp_nw04/helpdata/EN/e9/7652a84fada444bd11ca73670ce7dc/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/c07941601b1d09e10000000a155106/frameset.htm
    Displaying HTML in WebDynpro View
    2) Using JavaScript in the Web-Dynpro UI-App
    Ans: Not Possible.
    3) Using Java-Applets (for example to interact if local computer resources)
    Ans: Not Possible.
    4) Using an HTML-Editor for editing Texts in the Application (for example freeware Edtior fckeditor)
    Ans: Not possible.
    I hope this helps!
    Regards,
    Pravesh

  • ERP2004: ESS JCO session handling in Web Dynpro apps?

    Hello,
    we run ESS/MSS Web Dynpro scenarios, running on WAS 6.40, SP12 in
    Enterprise Portal EP6 SP2 Patch 32. Our go live will be with > 1000 ESS users.
    1. When will the sessions in R/3 backend system be terminated by the
    Web Dynpro Application?
    How is the session handling in FPM (Floor Plan Manager) implemented?
    2. Are there any recommendations regarding the JCO connection settings
    in Web Dynpro Content Administrator (Maximum Pool Size, Maximum Connections,
    Connection Timeout, Maximum Wait Time) to reduce / optimize the load for the
    backend system? I found a documentation in SDN but it is not
    specific for ESS / MSS based on Web Dynpro.
    Background of questions above: The customer is worry about the load on
    SAP R/3 backend side: too much current users in the R/3 backend system,
    possibly bad performance etc. because the JCO sessions are open a long time.
    Are there any experiences with customers running productive ESS / MSS scenarios
    based on Web Dynpro?
    Thanks & Best regards,
    Daniel

    Hi,
    1. For best practices on JCO settings follow the tutorial below and do it accordingly for your no of users. YOu might have to do some trial and error procedure.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1
    2. For standards, security settings, cache management etc, SAP will give a TODO list after a remote audit of your project.
    regds,
    Sukanta Rudra

  • SAP Web Dynpro With Java

    Hi Guys
    A situation at work has forced me to learn web dynpro    with java. I already have some experience with the ABAP    web dynpro   . Now the question is how much "java" do i need to learn to learn sap WebDynpro    based on java. Should I first try and get a fair 'hands on' on core java and then shoot for web dynpro    or should I take the other approach, that is just learn as much java as is required for web dynpro   . Any suggestions?
    thanks
    sameer

    Hi Sameer,
    I believe you need not thoroughly know Core Java to begin for Web Dynpro Java but yes, you should have a fair idea about object, class and exceptions that i believe you would already have after working in ABAP. The UI elements can be just inserted into the component by drag and drop and codes correspondly would be auto generated. Only for customization of some functionalities, you will have to write code in Java using APIs.
    Just go through the following tutorials recommended by SAP to start over Web Dynpro Java on NWDS.
    http://help.sap.com/saphelp_nw70/helpdata/en/16/c0d93f5e0f9015e10000000a155106/frameset.htm
    Regards,
    Tushar Sinha,
    Infosys,
    Hyderabad

  • Capabilities of Web Dynpro JAVA

    Hi
    I had a requirement to capture Keyboard Events. After searching lot I found out that, it is not possible in Web Dynpro JAVA.
    Is there any document which specifies
    What are the things possible with Web Dynpro?
    What are the things missing/not possible with Web Dynpro?
    Thanks in Advance,
    Apurva

    Hi
    Refer the following but I dont to what extent it will help you
    1 .  http://help.sap.com/erp2005_ehp_02/helpdata/en/b1/968ddbded811d3b561006094b9440a/frameset.htm
    2 .  http://help.sap.com/erp2005_ehp_02/helpdata/en/b1/968dd8ded811d3b561006094b9440a/frameset.htm
    also go through the following
    Using the FunctionKey
    Use
    The FunctionKey allows you to trigger a Web Dynpro action using a specific key on the mobile device. In the following example, this UI element is used to navigate to another view via a specific key.
    Prerequisites
    &#9679;     The SAP NetWeaver Developer Studio is installed on your computer, and you can use it to create your mobile Web Dynpro application
    &#9679;     You have access to a SAP NetWeaver Application Server, where you are running the Web Dynpro application
    &#9679;     You are using a Pocket PC with special scanning equipment manufactured by Intermec Technologies or Symbol Technologies
    &#9679;     You have created two views in a Web Dynpro project and called them StartingView and TargetView.
    Procedure
           1.      Navigate to the StartingView and double-click the view or choose Edit from the context menu.
           2.      Insert the mobile UI element FunctionKey.
           3.      Switch to the Plugs tab, create an outbound plug with the name fromFunctionKey and define the navigation link to the TargetView.
           4.      Switch to the Actions tab page and define an action called NavigateToAnotherView.
           5.      Assign the value IBrowse_OnKey49 to the keyCode property of the FunctionKey.
           6.      Assign the NavigateToAnotherView action to the onAction event of UI element NavigateToAnotherView.
           7.      Switch to the Implementation tab and add the following source code to the implementation of the view controller. The read data is passed to the context and the relevant context attribute is set.
    public void onActionNavigateToAnotherView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
       //@@begin onActionNavigateToAnotherView(ServerEvent)
       wdThis.wdFirePlugFromFunctionKey();
       //@@end
    Result
    By pressing press key 1 on the mobile device, you navigate to the TargetView.
    Regards
    Abhijith YS

  • CAF DB update from Web Dynpro

    Hi all,
    I have created an entity service in CAF called “Contacts’ which contains the following attributes.
    phoneNo
    cellNo
    emailId.
    Another entity service called "Person" is created. This contains the following attributes.
    personId
    personName
    personAddr
    contactsRef. (Cardinality -> 0..n  , Relational Type -> Composition)
    That means Contacts entity service is used within Person entity service. Now it is working fine within CAF service browser. Now the Web Dynpro DC of CAF application is used within another custom Web Dynpro DC project. I want to store data from Web Dynpro. So I have written the following code within web dynpro custom method.
    APerson person = PersonServiceProxy.create();
         java.util.List ls = new ArrayList();
        for(int i=0; i<4;i++)
        AContacts contact = ContactsServiceProxy.create();
         contact.setCellNo("9092130156");
         contact.setEmailID("[email protected]");
         contact.setPhoneNo("432258");
         contact.getAspect().sendChanges();
        ls.add(contact);
         person.setRelatedModelObjects("contactRef",ls);
         person.setPersonID("9999");
         person.setPersonName("xyz");
         person.setPersonAddr("ABC, KOL");
         wdContext.nodeAPerson().bind(person);
         person.getAspect().sendChanges();
         CAFServiceFactory.getServiceFacade(idendityDefinition.class);
    After saving the data from Web Dynpro I am trying to test it from CAF service browser. But I am getting only the parent row. I mean only the value of  personId, personName and personAddr fields which I have stored from Web Dynpro. But no value is coming within the table for Contacts entity service for composition relation.
    Could anybody help me how can I solve my problem?
    Thanks & Regards
    Chandan

    Hi Chandan,
    Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
      I am not sure the code is actually adding the contact model object to person.
    Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
    award points if  info is helpful
    Regards,
    Anish

  • Securing Web-Dynpro application with Netegrity

    Hi,
    I'm developing a web-dynpro application that will be secured by Netegrity SiteMinder. SiteMinder is a reverse-proxy that authenticates the user and adds the user details as additional headers to the HTTP stream. According to the documentation I found in SDN with regards to JAAS and NetWeaver it looks like SAP has added callbacks so that I can retrieve HTTP headers in my custom login-module. I've implemented a simple login-module and deployed it, but now am stuck with the following issues:
    (1) I can't seem to be able to debug the module (even when I create a simple HelloWorld.jsp and require the use of this module in the visual administrator, the debugger seems to ignore the break-points).
    (2) I can't find any possibility to configure the engine so that this specific module is required for authenticating my deployed web-dynpro application.
    My questions are as follows:
    (1) Is it possible to use standard JAAS authentication with web-dynpro applications?
    (2) How do I debug JAAS login modules?
    Regards, Chris.

    <b><b>Hi Adrian
    During the Life cycle of your application Your connection will be Released when it is inactive for particular Time (The inactive time limit will be specified in the JCo Pool Settings that would be in milli seconds)
    The RFC Connection can be Monitored using the Gateway process .
    There are Some Predefined Connections in the Gatewway Process and each connection Requires approximately 200Kb of Memory.
    So the memory cosumption of the Gateway process is proportional to the number of Active RFC Connection.
    For More Details Check This
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/85a483cb-0d01-0010-2990-c5168f01ce8a">JCo Connection Pools</a>
    Regards
    Chandran S</b>

  • Basic question on a web dynpro application

    Hi All,
    I am new to NWDS 2004 and I just executed my first web dynpro application that is on https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/a-c/creating your first web dynpro application.pdf
    I have couple of questions
    1. when i click the back button the text that was entered in the Start view is visible even after I hit the back button in the result view. Can you tell me how to keep the input field empty in the start view after hitting back button?
    2. After deploying the Web Dynpro application, where from the Portal, can i assign this web dynpro application to a user .
    Thank you
    Regards
    Luke

    Try putting adding this code to your onActionBack method.
    public void <b>onActionBack</b>(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionBack(ServerEvent)
    <b>String headerText = " ";
    wdContext.currentContextElement().setHeaderText(headerText);</b>
    wdThis.wdFirePlugToStartView();
    //@@end
    REgards,
    RIch Heilman

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

Maybe you are looking for

  • Hiding a Tab Dynamically in FPM

    Hi, Can you please let me know how to hide the tab dynamically in FPM. I tried to implement the interface IF_FPM_TABBED_CONF_EXIT in the SAP standard webdynpro, but I get a error " Web Dynpro comp./intf. "IF_FPM_TABBED_CONF_EXIT already exists". Even

  • Bootcamp question..Starts up windows 7 over mac OS

    Ok so I installed windows 7 this week for school through boot camp and all went well, but now when ever I shut down the computer and have to boot it back up it automatically goes and boot up to the windows 7 side even if it was previously running in

  • IP or DHCP address issue with VPN

    setup: Mac server 10.6.8, VPN service L2TP, Airpot Extreme software fully updated in company LAN set to DHCP: IP range is 10.0.0/24, DHCP service is OFF in server admin... VPN IP range is 10.0.0/24 I noticed sometimes when I VPN into my company netwo

  • Can I use my old TC as extended wifi over my new TC?

    I just bought a 2TB TC, and it's working fine in bridge mode (because my provider uses NAT). My old 500MB TC (bought in 2008) is still working, so I wonder: 1) If I can still use the old TC as an extended wifi. If so, how do I do it? 2) If I can use

  • Portal roles cant showing up

    Hi experts, I am facing strange issue, after my server restart I could not able see any of admin roles even for administrator. This is urgent do advice...appreciate your quick reply.. Thanks in advance, Ian