Web Dynpro OVS question

Hi,
I'm calling an OVS custom search help for an input field in a table. The problem is the value list of the search help should be obtained depending on the value of the input field, and other values in the same table line. Hence for each table line there might be a different hitlist for OVS search help.
Question: how do I fetch the context element for the table line that OVS help was called from? If the line is selected I can get the lead selection, but what if it's not?
Btw, Tried calling GET_CONTEXT_ELEMENT method from the event object WDEVENT, doesn't work.
Many Thanks
Edited by: Stanley Marsh on Nov 28, 2008 2:42 PM

WDEVENT->GET_CONTEXT_ELEMENT( NAME = 'OVS_CONTEXT_ELEMENT' ).

Similar Messages

  • Web dynpro design question

    Hi,
    I have a requirement where there are around 5 web dynpro applications required to fill in some data in a particular order. The differentiation between these 5 applications is in the fact that there could be different navigational paths between the related views. The views themselves are re-usable. Following are 2 ways by which this can be implemented-
    1)By having multiple components, the views shared between these components, each application corresponds to one component, each of which only one window with navigational links between the used component interface views of the other components involved.
    2)By having a single web dynpro component, with multiple windows, which in turn will have different navigational links between views. Each application will access different windows and its interface views and hence the navigation can be different. The views share a common component controller and different custom controllers, one each for each model.But because different people are sharing this component during development(using DTR and JDI), I dont know whether there are any issues with 2 people working on the same component.
    I feel method 2 is better. Do you agree? Do you see any issues?/any suggestions?
    Cheers
    LM

    LM,
    I would go for the first option in a team oriented development environment because it would definitely avoid all the dependency issues that would arise in option 2.
    Also, option 1 is better if you are thinking about reuse of certain components for future implementations. Refer this <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383">tutorial</a> for further details about Componentization.
    Good luck.
    Bala
    <b>PS: Sorry,initially I've numbered the options incorrectly. It has been corrected now.</b>
    Message was edited by: Bala Krishnan

  • Web dynpro iview question

    Hi
    I created a basic web dynpro application and is successfully deployed it in the WAS 7.0.
    I am able to run the application from the web dynpro cosole inside the portal but I'm unable to run the application when I created a web dynpro iview. In the web dynpro iview I just get the page loading symbol and it stays like that forever.
    I have other applications running without any problem. Pleaes help
    -Mike

    Hi Gopoal,
    I tried both with the iView only and with page, in both the cases I get the loding page view without any change.
    I checked the log file and below are the application log... please help!
    Task#Java#backgroundtask.stop##Completed background task .#1#com.tssap.dtr.server.deltav.runtimeconfig.impl.ConfigParamsCheckerTask#
    #1.5 #0015C5FD0C9102F20000000000000FA400044EB5198315FE#1212439630907#/Applications/DTR/BackgroundTasks#sap.com/tcdtrenterpriseapp#com.tssap.dtr.pvc.basics.transaction.AbstractSessionBoundTask#Guest#0####129f80b030e511dd9e330015c5fd0c91#Thread[Scheduler_com.tssap.dtr.server.deltav.runtimeconfig.impl.ConfigParamsCheckerTask\#506_workerThread\#0,1,Scheduler_com.tssap.dtr.server.deltav.runtimeconfig.impl.ConfigParamsCheckerTask\#506]##0#0#Info#1#com.tssap.dtr.pvc.basics.transaction.AbstractSessionBoundTask#Java#backgroundtask.start##Starting background task .#1#com.tssap.dtr.server.deltav.runtimeconfig.impl.ConfigParamsCheckerTask#
    #1.5 #0015C5FD0C9102F20000000100000FA400044EB519831B71#1212439630907#/Applications/DTR/BackgroundTasks#sap.com/tcdtrenterpriseapp#com.tssap.dtr.pvc.basics.transaction.AbstractSessionBoundTask#Guest#0####129f80b030e511dd9e330015c5fd0c91#Thread[Scheduler_com.tssap.dtr.server.deltav.runtimeconfig.impl.ConfigParamsCheckerTask\#506_workerThread\#0,1,Scheduler_com.tssap.dtr.server.deltav.runtimeconfig.impl.ConfigParamsCheckerTask\#506]##0#0#Info#1#com.tssap.dtr.pvc.basics.transaction.AbstractSessionBoundTask#Java#backgroundtask.stop##Completed background task .#1#com.tssap.dtr.server.deltav.runtimeconfig.impl.ConfigParamsCheckerTask#

  • 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

  • Close OVS Help via Button in Web Dynpro for ABAP

    Hello!
    Is it possible to use a close-button in a "ovs help popup"? I tried to fire a "Type-Exit Outbound-Plug" of window controller of the "ovs help window" but it didn't work.
    Thanks for help
    Joerg

    Hello Joerg,
    in Web Dynpro for ABAP there is currently no possibility to subscribe to the close event of the OVS popup.
    Regards, Ariane.

  • A question on component design in Web Dynpro

    Hi experts,
    We currently working on our console which we want to implement them using Web Dynpro framework.
    During design time,  questions have been raised: we have like 100 EJB methods for our application, about 8 EJBs, we want to have faceless component taking care of persistence.
    The question is what is the best way to distribute the methods in terms of performance and supportability (for ease of development )? We discussed the following options:
    1.     One faceless component with one component controller implements 100 methods (maybe this is the worst)
    2.     Many faceless components, one for each EJB, here the question came up: performance because we have a tab strip in the UI that accesses 6 EJBs, would it take a long time to load/unload these components every single time we switch among the tabs ?
    3.     One faceless component with one custom controller for each EJB, here the question is: can we expose the custom controller in other to use them in the tabs?  Compared to option 1 we clearly separated the methods, so it is easier to support. Furthermore we should have a performance gain since the custom controllers are only loaded on demand.
    What do you think?
    Regards,
    Dat
    Edited by: Dat Triet Banh on Jul 4, 2011 4:47 AM

    Hi
    Better to segregate the EJB's and put it in seperate controller keep atmost 30 in one controller (you have around 3-4 component ). Any component which is going to use in other component is basically based on create on demand priniciple automatically by framework.
    or
    as given in point third create a component , with say 8-10 Custom Controller  implement the all the methods and put a same method signature in Component Controller, call the same through interface thats it.
    Best Regards
    Satish Kumar

  • Web Dynpro For ABAP Question

    Hi all,
    I'm creating Adobe Interactive forms in Web Dynpro for ABAP.
    <b>Problem:</b>
    <b>Context defined in the created "View" is not displayed in the 'templates' (Adobe Interactive Form in the "Data View" tab.</b>
    I'm following the exact steps used in the following e-learning class:
    <b>https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3</b>
    Except I'm creating 'string' fields instead of numeric fields like in the above e-learning class and creating my forms in Adobe Livecycle designer first then importing them to the web dynpro for abap - 'templates'.
    The 1st form I created went well and works fine.
    <b>Question:</b>
    For my second and third form I'm unable to map my context fields they are not displayed in the "Data View" anyone know why this is not possible?
    Cheers,
    Dharm

    Hello,
    are you creating the form via forward navigation from webdynpro abap?
    When you do that the context of the form should be created automaticaly.
    What Basis SP level are you using?
    Best regards,
    Dezso

  • Web dynpro ALV and some other questions

    Hi All,
    I have couple of question for experts.
    I am very much new into Web Dynpro world, and i have one web dynpro application built by my old colleague.
    I want to add search feature into the application so that out of 1000 records i could search one based on some field value, how can we achieve that ?
    I have read lot abot ALV list in web dynpro, How to find that specific approach has been used into particular web dynpro application or not ?
    Thanks for your time for reading my question and hope to get some response..
    Pranav.

    Hi Pranav,
    Hope the following helps you.
    <u>Searching for a record based on some field value</u>
    You can have an input field (bound to a context attribute) in your view. Whatever you type in the field will now be associated with the context attribute in your context. Place a button on your view. Define an action for this button (e.g. SEARCH), in the property onAction of the button. Now, in the action handler for the button (ONACTIONSEARCH), access the context attribute (can be done using WD Code Wizard). Then using your business logic, get the date into another context attribute, which can be displayed in the view using a textview (or textviews)
    <u>Find whether ALV is used in your WD Application</u>
    Go to your WD Component, in the used components you should find a use for component SALV_WD_TABLE. Also, in one of the views, the Interface View TABLE of the ALV component will be embedded in its ViewContainerUIElement. This information can be found in the Window of your own WD Component.
    Regards,
    Neha
    <i><b>PS:Reward if helpful</b></i>

  • Set Security Question & Answer using UME API in Web dynpro Java

    Hi Experts,
    I;ve developed a Web Dynpro java application to create a user in UME.
    I am able to set all the user account related attributes but I am not able to set the security question and answer as I do not see any attribute for the same.
    Can anyone please suggest how to set the Security question and answer in UME?
    This is required so that if the user wishes to reset his password / forgets password, we can ask him the security question which he selected at the time of registration.
    Please let me know if it can be achieved at the code level and whether UME API supports security question and answer or any such attribute.
    Also, if no such attribute is present by default in UME at the moment; can we create/configure some custom attributes in UME and store the security question and answer into those attributes. This would serve our purpose.
    Kindly assist.
    Regards,
    Anurag

    Hi,
    Thanks a lot for the reply!!!
    I have one doubt here:
    You've mentioned the below code to fetch the security questions in your reply:
    IUser user = WDClientUser.getCurrentUser().getSAPUser();
    String CUSTOMER_NAMESPACE = "com.sap.security.core.usermanagement";
    String attmotname [] = user.getAttribute(CUSTOMER_NAMESPACE,"MotherName");
    String attlucknum [] = user.getAttribute(CUSTOMER_NAMESPACE,"LuckyNumber");
    String attmobnum [] = user.getAttribute(CUSTOMER_NAMESPACE,"MobileNumber");.
    But this would be only applicable when the user has already logged on to the portal as it uses "WDClientUser.getCurrentUser().getSAPUser();" code.
    On the contrary, I want the security questions and answer to be accessed even when the user is not logged on to Portal so that based on the question & answer, the user can reset his password.
    Please suggest, how can we achieve this and where and how to set the custom attributes for the same?
    Do we have to set the Publicly Viewable Custom Attributes present at location you mentioned in your reply?
    Also, if yes; please let me know how to set the custom attributes?
    Thanks & Regards,
    Anurag

  • 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

  • Interview Question on Web Dynpro JAVA

    hi
    Could any body please send Interview Questons on Web Dynpro java.
    Mukesh

    Hi Mukesh
    I dont think u will get any specific material for interview questions on webdynpro ,
    but u can always follow this link which has each n every aspect of webdynpro listed here for interview u should be familure with all the titbits of webdynpro and depending on ur comfort level u can explore any specific topic which u find dificult
    and moreover none can tell which questions ur going to be asked on the day
    Important is read about those things which u implemented in ur projects coz ur interview is going to circled around what u have done and U r confidence level thats the trik
    https://www.sdn.sap.com/irj/sdn/webdynpro
    U can also read the book by Chris Whealy: "Inside Web Dynpro for Java". if u have time before ur interview
    all the best
    GOOD LUCK
    Regards
    Asif

  • 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

  • Google Map route in web dynpro question

    Hi all,
         I have a route from add_A to add_B in my database, i want to get this route data from database and show up in google map page. The show up function can be implement by call google map javascript. My problem is how can send route data from web dynpro to my google map page. The google map page can be a JSP or html page, assume that  we use the iFrame element to show this page.
        I search forum, there is a way send the data by url parameter, but my case, the route data should be very large, may not be send by the url parameter. If any one have good idea or other solution  for my case.

    hi all,
      I am encountering to new problem. After deploy my app and run in portal, the redirect does not work. the error message is:
       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException:
      Suspend-Plug must no be triggered when running in portal. Use portal navigation instead to navigate to another application!
        at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:529)
        at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:462)
        at com.esapro.jcats.routemap.wins.wdp.InternalRouteMapInterfaceView.wdFirePlugSuspend(InternalRouteMapInterfaceView.java:154)
        at com.esapro.jcats.routemap.view.RouteMapView.onActionShow(RouteMapView.java:192)
        at com.esapro.jcats.routemap.view.wdp.InternalRouteMapView.wdInvokeEventHandler(InternalRouteMapView.java:276)
        ... 29 more
      So my question is may i use portal navigation to resolve my problem and how to do it. I need to delivery parameter by post method between them page.  If anyone give me some mainly steps.
    I've try the method,it doesn't work. It only replace a new blank page in portal conten area.
         WDPortalNavigation.navigateAbsolute(
          "ROLES://portal_content/other_vendors/line_manager/com.aa.pct.jcats/com.aa.pct.jcats.iviews/com.aa.pct.jcats.Map",
                    WDPortalNavigationMode.SHOW_INPLACE,
                    "width=300,height=200",
                    null,
                    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
                    null,
                    null,
    best regard
    reefish
    Edited by: Ree Fish on Aug 6, 2009 5:53 PM

  • Web Dynpro for ABAP iview window question ...

    Hi,  I have a web dynpro for abap iview that calls a web dypro for abap program in ECC that generates a PDF document. 
    It works perfectly, except when the iview is launched it opens a blank iview page and then opens a separate window in which the PDF is displayed.  Does anyone know how to suppress the blank iview window? 
    Can I suppress it in the ABAP for Web Dynpro program in ECC or is there something on the portal in the web dynrpo for abap iview that I can do? 
    Thanks
    Angie.

    Hi,
    Please check the same issue at the WD4A side-
    Generating PDF in Web-Dynpro   - empty window popup
    Or
    In the IF_WD_WINDOW_MANAGER try to use the method -create_internal_window method.
    Regards
    Lekha

  • Another image question - using Regular ABAP not web dynpro

    Following Otto's awesome instructions:
    1) create image field in your form (not only image!! it must be the image field)
    2) load your picture in the backend
    3) convert the image into XSTRING
    4) create the XSTRING variable in the interface/ context, fill it with the picture data
    5) bind the image field to this variable
    6) enjoy
    Regards, Otto
    We can easily get an image to appear on a form produced from Web Dynpro ABAP using an XML interface.
    However, we are having an issue doing the same using a regular ABAP report and Data Dictionary interface.
    We added a new field to our DDIC structure called signature TYPE RAWSTRING (we can't define a new domain with type X since SAP doesn't allow that, but they are both Variable Length Byte Strings).
    We use the exact same code to upload the same image from UNIX, we see the byte string in our variable, but no image appears on our form (using the ImageField object).
    We then created a Global variable with type Xstring in our interface. We pass our binary image to the function module. Through debugging, I see that an error occurs because the gloabl variable states it's max characters is only 255.
    any ideas?

    Otto,
    thanks for the replies.
    I did make sure to embed the image. We tried both jpg and bmp, but neither worked.
    for testing, I hardcoded this in the WD and it worked. I copied it over to our ABAP method
      DATA: lv_ds TYPE string VALUE '/sapmnt/DEV/interface/renewables/pbch-1/archive/352.bmp',
                 lv_xstring TYPE xstring.
      OPEN DATASET lv_ds FOR INPUT IN BINARY MODE .
      CHECK sy-subrc = 0.
      DO 1 times.
        READ DATASET lv_ds INTO lv_xstring.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
      ENDDO.
    This gets me an Xstring field that's 1272 long.
    I pass the lv_xstring field directly to the FM IMAGE field, which is defined as an Xstring in the PDF Interface
      CALL FUNCTION ls_function
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
          is_scale_stng      = ls_scale_stng
          it_scale_tkti      = it_scale_tkti
          it_scale_seal      = it_scale_seal
          is_scale_tkt       = ls_scale_tkt_print
          image              = lv_xstring          " <---- pass the xstring image
        IMPORTING
          /1bcdwb/formoutput = ls_form_output
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
    Stepping into the FM, I see that IMAGE now has the same size of 1272
    In my PDF Form layout, I dragged/dropped the ImageField object on my form.
    I found the IMAGE field in my Data View tab and dragged/dropped that onto the ImageField to Bind it.
    I checked 'embed image data'.
    I checked the form properties and the layout was set to 'Standard'. I changed it to ZCI, as well.
    I know the data is coming across because I can drag/drop the image field from the Data View directly on the form as a Text Field and see the hex data come through.

Maybe you are looking for

  • Unable to login with Jabber Windows

    Hi , Am unable to login the Jabber Windows Client. Getting the error as "Unable to Communicate With the Server". Able to login with CUPS & CUCM end user page. CUCM Integrated with LDAP. While going through the UP Profile logs seen that "Failed to SOA

  • Help with Subforms and Textfields

    Hi All, Basically, I am trying to template our company's contract form so that user can only edit the designated fields of the form, and all provisions written in the contract form remains untouched. My problem is (please see sample texts below), and

  • Tomcat 6 - apache problem

    Hello, this is my first post, and I hop that someone here can help me. I want to create ajp connection. server.xml: <Connector port="8010" protocol="AJP/1.3" redirectPort="8444" /> httpd.conf: LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so J

  • Escape charecters

    Hi How can i make some of the xml message escape the '<' and '>' chareters and use < > instead. my payload should look like this <tag1> value1</tag1> <tag2>value2</tag2> <tag3>value3</tag3>          <tag4>value4</tag4> how can i achieve this Thanks i

  • Suggestions on which iMac is better suited for me ...

    I am stuck between two iMacs and was hoping I could get some input from you experts. iMac A: 24" 2.93GHz C2D, 4GB, GT130 512MB iMac B: 21.5" 3.33GHz C2S, 4GB, HD 4670 256MB My main concern is Aperture 3's performance. I have about 40k images that are