Handling tree focus in webdynpro

Hi All
I want focus on a particular tree node only on its  selection and no focus on any tree node initially.
but it always displays the focus on first tree node by default.
How to handle this?

Hi Swati,
You can always navigate to the relevant element on the tree and have it selected by changing the lead selection in the context.
wdContext.nodeTestNode().currentTestNodeElement().node().setLeadSelection(3);
Now it should point to the relevant selected element on the tree.
Regards,
Arun

Similar Messages

  • How to handle tree view control in business one ui sdk

    Hi,
    Can any guide me on how to handle tree view control in business one ui sdk?
    Thanking in advance.
    With Regards,
    Ram.

    Hi Ram,
    Nowadays there are some trouble with the treeview controls in Windows XP SP2 as you can see here:
    It is said that SAP will publish a treeview control in 2005 SP1.
    Hope helps,
    Ibai Peñ

  • How to handle Tree structure in bdc

    Hi Experts,
          How to handle Tree structure in bdc, can any one have any idea regarding this.
        In the top most of the tree i  have  :  Occupational Health under that Identification is there .
          Occupational Health
                           Identification
    Regards,
    Sudhakar Reddy.A

    Hi Experts,
    Thanks Parvatha reddy for your reply.
    Can any one provide BAPI for this T.Code EHSQCATOH  or can any one tell me how to handle Tree structure .
    Regards,
    Sudhakar Reddy .A

  • Question about displaying handler errors in the webdynpro

    Hello all, Please forgive any EM terminology mixups as I am new to this unique module!
         Here is my scenario, I am in EM WebDynpro and updating the actual dates on a purchase req. The event handler accepts the date I entered and in the background makes a synchronous rfc call to ECC to update the related project with the new date. This rfc call fails because I have the project open and it is locked. This call is synchronous so I get the error right away and I set the return code to 4 and populate an error message that I want passed back to the user in WebDynpro. For some reason the EM system is ignoring this error and returning to the user a successful 'sent' message.
    EM WebDynpro --> Purchase Req --> PO Approved Actual Date entered --> synchronous RFC to ECC to update Project --> project locked error returned by ECC --> error message populated in EM --> EM WebDynpro returns as if it was successful
    I have put in breakpoints to ensure I was populating error messages back to EM and I see the details flowing back that are correct, but no details are returned to the actual user. If I go to the Event Handler Overview in the GUI I can find my error message recorded there. Problem is our users will be working from the Web primarily and would not see this message in a normal course of work.
    Is there a config piece that I should be setting to return this error to the users in WebDynpro? This seems like a trivial/standard piece of functionality so I am confused as to why it is not showing up in the dynpro.
    Thank you for any help or ideas and points awarded of course!
    John

    Hello Berthold,
       I believe we understand what you are saying we should do and we have mimicked the activity you described. Now we are running into a short dump when the system tries to process the RETRIEVE MSG method. The code is looking for the class /AIN/CLPUB_ID_CONVERT for some reason. This class does not exist in this release. There is a /SAPTRX/ class that matches.
    So in /SAPTRX/CL_PUB_ID_CONVERT method CALL_AII_FOR_SINGLE_ID at line 45 there is this statement:      CALL METHOD (co_ain_class_name)=>(co_ain_method_id_mapping). Since this is a dynamic class/method call we think we must have something still incorrect in the IMG so we are going through troubleshooting and looking at OSS Notes. No luck so far.
    Any additional input or ideas as to possible missed steps would be greatly appreciated.
    John
    PS Release 7 (SAPK-70004INSCEMSRV pack level)
    Edited by: John D Norman on May 6, 2010 2:00 AM

  • How to develop tree structure using webdynpro

    hi everybody,
    I want to develop a sample tree structure for an object in webdynpro.can u help how to develop that one.

    Hi Srinivas,
    Here are links...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47ce9b90-0201-0010-59b5-f70826824eee
    http://help.sap.com/saphelp_nw04/helpdata/en/33/af0abb4559424dad802cbc7e31eaf2/content.htm
    Hope it helps.
    Regards,
    Maheswaran.B
    Message was edited by:
            Maheswaran B

  • Handling Currency Formats in WebDynpro

    Hi,
    We have a scenario where we have to display different currencies in their own format.
    The input structure is copied from a model node. The attribute is a simple type coming from the backend . When user enters the value ,an event is raised and some RFC s are called.
    Finally, the input which the user is entered is formatted correctly based on the currency he has chosen.
    When we debug, the node does not have the value in the proper format which is displayed. Its not a calculated attribute too.
    So how is currency formatting handled for different currencies... in webdynpro ?
    Here setR3NormalizingFormattingAttribute is used for the attribute. Does this handle this formatting ?
    How is backend setting of currency formats in TCURX handled ?
    Any idea on currency handling in WebDynpro would help.
    Regards
    Bharathwaj

    Hi Stefanie,
    Thank you. Here they are using currency normalized  by calling
    setR3NormalizingFormattingService(true)
    This , I guess handles the formatting. But when i try to access the value from the node attribute  it's giving an incorrect value.. This is quite surprising .. If
    If the currency specification is to correspond to the ERP system, will the attribute itself have a proper formatted value form R3 .Or is it that , we need some other handle to get the formatted value. ?
    Was i clear about  what the scenario is ?
    Regards
    Bharathwaj

  • Handling Timeout screen in Webdynpro applications

    Hi All,
    This is regarding timeout issue in webdynpro applications.
    I have been facing this issue for webdynpro applications and could not able to handle it.
    For example :
    If I give multiple Material numbers as an input on selection screen, and need to be display output in ALV.
    If there would be huge data for example for 100 materials as an input, then the processing would take long time let's say more than 20 to 30 mins and displaying   message as " 500 Connection timed out ".
    Instead of such messages I would like to display custom message...
    Could any experts help me on this.
    Thank You in Advance.
    Regards,
    Pavithranad.

    Hi Reddy,
    Yes, you can set the custom message during timeouts.
    Custom timeout page for Web Dynpro applications
    Also, refer the below document, to increase the duration of time out programmatically
    Solution : Session Time out Error in Web Dynpro Application.
    Hope this helps you.
    Regards,
    Rama

  • Implementing Tree in ABAP WebDynpro

    Hello All,
    I have requirement to implement a tree using WDA. The scenario is:
    I have a table (VIQMEL) that holds notifications. each notification has a flag saying if it is a father or not. Also,
    if it is not a father (which means it is a sun) there is a feild that hold the notification number of his father.
    I am trying to display an hierarchy of fathers/suns.
    how can I do it ?
    I saw couple of tutorials about it but they were not enough and did not suit my request.
    Thanks for the help.
    Regards,
    Shimon

    Hello Shimon,
    Did you check the TreeByKeyTableColumn UI Element? based on my understanding of your requirement, I feel this is the right chioce.
    BR, Saravanan

  • Handling Dropdown values in Webdynpro ABAP

    Hello All,
    i have a Dropdown list in my screen which is having values
    SAP
    ABAP
    WebDynpro.
    am able to display these three values on the drop down using a method POPULATE_DROPDOWN.
    Code i have used here:
    method POPULATE_DROPDOWN .
      DATA: it_value_set_reports    TYPE TABLE OF wdr_context_attr_value,
            wa_value_set_reports    TYPE wdr_context_attr_value,
            lr_node_info_reports    TYPE REF TO if_wd_context_node_info.
        wa_value_set_reports-value = '01'.
        wa_value_set_reports-text = 'SAP'.
        APPEND wa_value_set_reports TO it_value_set_reports.
        wa_value_set_reports-value = '02'.
        wa_value_set_reports-text = 'ABAP'.
        APPEND wa_value_set_reports TO it_value_set_reports.
        wa_value_set_reports-value = '03'.
        wa_value_set_reports-text = 'WebDynpro'.
        APPEND wa_value_set_reports TO it_value_set_reports.
      APPEND INITIAL LINE TO it_value_set_reports.
      IF NOT it_value_set_reports IS  INITIAL.
        lr_node_info_reports = wd_context->get_node_info( ).
        lr_node_info_reports->set_attribute_value_set( name = 'REPORTS'
        value_set = it_value_set_reports ).
      ENDIF.
    endmethod.
    This is working fine.
    there is an action ONACTIONDISPLAY is associated with it.
    once we select a value from the dropdown the above method triggers. here i have to capture the value which is selected from the dropdown.
    Eg: Suppose if i select SAP then in the output it has to display data associated with SAP.
    Could anyone suggest how to do that step by step.
    Thanks,
    Sree.

    data: lv_value type < type of REPORTS attribute>.
    wd_context->get_attribuet( name = 'REPORTS' value = lv_value ).
    Abhi

  • Handling Session Object in WebDynpro Java

    *After Validation in WebDynpro Component, if the user is not authorized to access the page, i want to close the session of that Particular login user and sent back to the login page (home page)*
    i don't want to close the window
    come out of the application to the login page
    In Java, i can get session object by request.getSession(true);
    in webDynpro how can i get the Session Object.
    Thanks
    NSM

    Hi,
    try to use the following method
    WDClientUser user;
          user.forceLoggedInClientUser()
    Regards
    Ayyapparaj

  • Read the name of a parent node of a (static) Tree UI in WebDynPro Abap

    hi Experts,
    I have a tree control UI that has two levels of nodes from the Root node. Year & Month. Inside the Month Node there is always only one leaf that is called Current Schedule. User clicks on Current Schedule to view the Current Schedule. This could be any month's Current Schedule of the User's choice.
    Thus, I need to know which month's current schedule is chosen by the user. My tree UI is an adaptation from WDT_TREE example from Std SAP example programs. For the chosen month to be known, I have to go up in the context node hierarchy by one level? (something like, get_parent of) from the current leaf. I am not sure how would i do it. Any pointers would be greatly helpful. I tried to pick up ideas from couple of tutorials and bunch of forum posts but I did not get anywhere.
    The key to my requirement is just going up one level in the tree and get to know the 'name' of that node. That will tell me the Month of the User's choice.
    Thanks in advance for your helpful answers/pointers

    Thanks Bala Duvvuri,
    Could you please elaborate a bit more on your tip. I am a fledgling OO abapper not 'really' knowing as much OO as I should ..!!
    By the way,I found out, I could apply the same OnAction method in the WDT_TREE example shown at the final leaf level to the node level as well to read the text of Month Node. It worked out and it meets my purpose with a rider..!
    In order to get this Month node text for the selected 'Current Schedule' leaf, User have to click on the Month Node that opens the Current Schedule Leaf. If they clicked on the triangle beside the node, it still opens the Month Node to reveal the Current Schedule leaf, but the Month name wont be captured until User expressly clicked on Month Node first or the Folder Icon associated with it..!!
    In other words, User cannot click on the left side triangle;  if they did to reach the Current Schdule, the program wont work properly. This is no good, though i could talk my way through with the User to accept this. But technically i know it is possible to know the month name from a given Current Schedule leaf in the tree,though dont know how ..!!
    Your bit more detailed reply would help me implement the more elegant solution than pushing the user to accept what i did.
    As I await your reply i shall try to pick up from your tip.
    In the meanwhile my tree has grown ..!! to have two more nodes, in which the contents need to be dynamically populated. Guess I am in for a long haul with the Tree UI
    Looking to hear more. Thanks heaps again.

  • Tree implementation in webdynpro project

    Hi,
    i want to devlop an application that shows a tree that gets data fron RFC .
    user will logged from portal & application will show all his/her subordinates in tree & on click on a
    subordinate, all other levels get displayed(if level are in system).
    plz help.
    Regards,
    Amit

    Hi Amit,
    If the hierarchy of the tree is know at design then you can implement the NonRecursive tree. Refer to the help.sap.com on this:
    http://help.sap.com/saphelp_nw70/helpdata/EN/c2/abfceffbacd24185ec7af8a3a2e76a/frameset.htm
    However if the hierarchy is not known, then you will have to implement the Recursive Tree. Please refer to the following link in help.sap.com for info:
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/1ec1814e566f4baf943c53ccf48552/frameset.htm
    The above links also have code to explain how the tree can be populated.
    Populate the tree to the necessary level on initialization of the screen or the required action. The remaining tree can be filled when the user clicks on the nodes.
    If the child nodes/items are to be populated on click of the parent node, then you can use the onLoadChildren action. When a node is click the action linked to the onLoadChildren is called and the necessary processing can be done to load the data if present.
    Regards,
    Kartikaye

  • Event handling in Gantt chart Webdynpro Java

    Hi
    I have a Gantt chart where I have names(name1,name2..) in category(Y) axis.
    Now I want to fire an event when I click name1 or name2 .. on the Gantt chart
    where I will take name1 as parameter.Any idea with code will highly be appreciated and rewarded.
    Regards
    Sunit

    Hi,
      1. Create an action, say, "ChartClicked" with a parameter, say, "pointID" of type String. Set this as the action on the "onClick" event of the BusinessGraphics.
      2. In the wdDoModifyView method, write this code:
    if (firstTime)
      IWDBusinessGraphics chart = (IWDBusinessGraphics) view.getElement("<ID of BusinessGraphics>");
      chart.mappingOfOnAction().addSourceMapping("id", "pointID");
      3. In the eventhandler method, "onActionChartClicked", you'll see a String parameter called pointID. Depeneding on where you click on the graphics, this will change.
    Regards,
    Satyajit.

  • WebDynpro Call RFC, Handling with structures

    Hi together,
    Does someone know where I can find examples showing me the handling of RFC - Exportparameters.
    I've got succees handling tables with the webdynpro-TableControl.
    But know I'm interested using the export-structure of a function module from R/3 in Java, filling automatically an
    form.
    Please Help.
    Special Thx to Armin Reichert, who helped me with Excel Problems.
    Thx
    Greetings Sascha

    Hi Sascha,
      There is no single example which will explain all the possibilities that you are asking for. There is a book called "Inside WebDynpro for Java". Its an excellent book for developers. It really gives you a good understanding of the concepts. In this book you have examples on how to handle RFC's.
    Well if you require an example that really explains all the scenarios.
    As far as i can see the Flight example is the best to start off with as a WebDynpro newbie. Its the same.
    If you have any problem in a particular scenario, then you can post it and you will get good replies out here :).
    Using the Flight example you will be covering almost all the scenarios. In case a scenario is not covered do post it here and we will be able to guide you.
    regards
    ravi

  • Regarding Tree structure display in Webdynpro ABAP

    Hi Experts,
    I am very new to webdynpro ABAP , I was asked to implement some functionalities of RWBE transaction in webdynpro , in RWBE transaction list can be displayed as Tree structure , in webdynpro how i can implement this ? using ALV UI element is it possible . Please help .
    Regards,
    Ratheesh BS

    Hi ,
    I need an output like the below
    <material number                 a1           a2        a3
              < plant                       b1          b2        b3
                 . org                        c1          c2        c3
    <material number                 A1          A2       A3
    is it possible to show the output as in this format using ALV ?.
    I have tried with the help provided by SDN , but not succeed .
    also i need to capture double click event and show the currosponding result in a seperate view.
    here material number is the parent node , plant and org were child nodes
    Regards,
    Ratheesh BS
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:22 PM
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:26 PM
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:29 PM

Maybe you are looking for

  • Which battery was the best for endurance for Satellite A100-999

    Hi I have just been given an A100-999 and I wanted to know which battery was the best for endurance. From what I have seen it is the pa3400u-1brs but i just wanted confirmation as I am planning to buy it in Japan as it is probably cheaper. Also, is t

  • SOS..How to execute an Oracle Stored procedure

    Please help me. I need to execute an oracle stored procedure from a JSP. I'M using Jakarta Tomcat and I dont have the Oracle Jbo tags and no BC4j tags. Anyone have an example using standar tags or directives???. This an emergency call..!!!!!!

  • Shadow Table

    Hi, I'd like to have more information about Shadow's Table ? Robert

  • 11gR2 dataguard using a primary 2 node RAC and a single standby

    Hi, I need to implement dataguard between 11gR2 RAC db to a single standby. How do I proceed? Secondly, I need to timely apply the archive log i.e I need the dataguard to be in SYNC mode only in the night and the standby in read only mode rest of the

  • Can I make 10 Adobe ID's?

    I work in a small office and we can't afford to pay $70/month for 10 users when 7 of them only use Photoshop occaisionally. My solution is 10 IDs: 3 Complete subscriptions and 7 Single App subscriptions. I don't want to lose my money, will Adobe ban