VB Like tree in Webdynpro Java

We are using Webdynpro Tree UI Control for displaying functional location hierarchy. However the standard webdynpro Tree does not display clear lines associating children's with its parents - VB Tree has these lines which is very useful for the users. We tried to work around this issue by creating icons with vertical lines in it. But we were not able to get continues lines and its hard to display multiple lines using icons.
Have anyone encountered the same issue?. if yes, how did you resolve it?.
is SAP planning to incorporate this requirement in near future?.
Regards,
Arul

Hi Arul,
I would suggest you use TreeByNestingTable Column element.
You can find it as Master Column in the Table UI element.
This will solve your problem because table row will solve the lines problem that you are facing.
Go through the following tutorial to get familiar with the element.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/integration%20of%20a%20tree%20structure%20in%20a%20web%20dynpro%20table.pdf">Integration of Tree and Table</a>
Regards
Amit

Similar Messages

  • How to edit the node value of a tree in webdynpro java

    Hi ALL
    I have Tree UI element where i got displayed all the nodes by calling the BAPI
    Now my requirement is when i put the cursor at any node in the Tree struture then on click of insert button i need to insert the new node with the text  , the user has to be option to give new text for the new node dynamically  , so while adding the new node in a tree the tree has to choose the text for new node , like how to edit the node of a tree to add new text.
    If any one can send the sample code on the same then it would be great help to me.
    Similar requirement like in table UI Like however we are adding the new row in a table when we click on the insert button then cursor will go to that new row in a table where user can enter his details in the table.. now i am looking for the same requirement in a Tree UI element.
    is it possible the same requirement in tree UI element in webdynpro for Java??
    Thanks
    kallki reddy

    Hi kallki reddy
    In general I think this is not possible in the form you'd like. It seems the Tree control is read-only thing always. It cannot provide editing capabilities.
    Table is different thing. You can select within many different cell editors including Input Fields.
    I guess that you scenario could be implemented not with Tree control, but with Table with Master Column. The master column allows to bring up a hierarchy into a plain table. So it's just a tree inside a table.
    Here you can find further details: [TreeByNestingTableColumn API|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/92/12a74046033913e10000000a155106/content.htm]
    BR, Siarhei

  • Connecting Non sap to webdynpro java

    Hi All
    My requirement is to connect a non sap (like mysql) to webdynpro java ..please  can anyone  provide me some document on this ..please help me
    Thanks
    Parameshwari

    Hi,
    If you are using NWDS 7.0 version, you have to create a Datasource in visual admin.
    If you are using CE 7.1 version, you have to create a Datasource in NWA--Configuration Management->Infrastructure->Application Resources.
    Step by step procedure how to create a Datasource in NWDS 7.0 and CE7.1 is given in this [PDF link|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40db1ed9-b7c2-2b10-66b8-84f6954b6d2d?QuickLink=index&overridelayout=true]
    MYSQL Server 2005
    Driver/jar which you have to use --> sqljdbc.jar
    Driver class --> com.microsoft.sqlserver.jdbc.SQLServerDriver
    Connection URL --> jdbc:sqlserver://<host_name>:<port>;database=<db_name>
    Hope this helps you..
    Best Regards
    Vijay K

  • Display filesystem in Webdynpro Java Tree UI

    Hi,
    I want to display a filesystem structure and its files in a Webdynpro Java Tree UI. I am using Netweaver CE 7.11. The root node of this tree should be the local filesystem on C:\ or a network share for example, which the users can browse and select a file. Therefore I want to display a filebrowser in my Webdynpro Java.
    My problem is how to access the filesystem and bind it to my tree UI.
    Are there any examples or tutorials reagarding to this?
    Any help would be appreciated
    Thanks in advance.
    Regards, Bernd

    I'd say if you want to browser the user's file-system, you'd need to call a WebStart application, or even an Applet.
    In case you wanna use the local file-system you can start with somethig like:
    File[] listRoots = File.listRoots();

  • CATS webdynpro Java - working times in weekly view

    Hi Team
    1.  Start & end time in Weekly view : Requirement is to allow shift planning employees to enter their working times in  weekly view itslef. But as I had discovered that it is possible to enter it only in dailuy view of webdynpro Java application in ERP 6.0.
    I came across a better Webdynpro ABAP application which exactly fits the requirement but it is part of EHP5, getting a mini upgrade for one application was also rejected. is it possible to implement in a short period of time without great impact ..anybody experienced on this?
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/30/e67780e37f4f5a90105a9e9205660f/frameset.htm
    So I am again back to finding way to enhance the weekly view.I read all teh therads...didnt find anyone successful
    2. Default Attendance type & target hours & start & end times from Infotypes : CATS0002 exit is called only when we go to next step ,is there any other way to default as soon as CATS screen is loaded ?
    Any help would be greatly appreciated & rewarded.
    Thanks
    Edited by: Nidhi Guglani on Mar 10, 2011 5:17 PM
    Edited by: Nidhi Guglani on Mar 14, 2011 12:10 PM

    Hi Suresh,
    Thanks for your valuable inputs. I went and looked into the java file and found bit different.I dont see how they are getting the column headers like Saturday,Sunday,Monday...
    Basically I need to keep one 'Submit' button on top of my table and on click, it should populate 8 hrs in the correspounding column.For eg. if its monday, it should default 8 hrs in monday column so  that user dont have to manually type it in and also save these working hrs in the backend system without further click on 'Save' or 'Review'.
    I still need to check with the ABAPers regading the user exit.
    Also, Is it possible if I create a custom webdynpro application where I can use a BAPI that takes in the current day from my webdynpro and update the cats database and send an export parameter with success or error message.
    Thanks
    Anjana

  • Dynamic table in Webdynpro Java

    Hi Colleagues,
    I need to develop a table dynamically in webdynpro(Java), the table should not contain scrollbar, header, lines and border...Actual requirement is to group 12 elements in the from of a table
    could anyone please help me here?
    Thanks & Regards
    Swetha

    Hi Armin,
    In a window i have to develop a part of window which looks like this
    Image             URL                      Description
    Image             URL                      Description
    Image             URL                      Description
    Image             URL                      Description
    I have tried doing this using Flow layout for each line
    But when i follwed that the last column "description" is not alligned in a straight line(for all rows)
    structure is not even as shown above
    (varying depending upon the length of the URL)
    Here i have attached the piece of code i  used
    IWDTransparentContainer MainContainer1 = (IWDTransparentContainer)view.createElement(IWDTransparentContainer.class);
           IWDFlowLayout flowlayout1 =  (IWDFlowLayout)MainContainer1.createLayout(IWDFlowLayout.class);
    ////For adding Image 
           IWDImage image = (IWDImage)view.createElement(IWDImage.class);
           image.createLayoutData(IWDFlowData.class);      
           image.setSource("~sapicons/s_b_alet.gif");
    /////for Adding URL
           IWDLinkToAction link1 = (IWDLinkToAction)view.createElement(IWDLinkToAction.class);     
           IWDTextAccessor link1text = wdComponentAPI.getTextAccessor();
           link1.setText("Collaboration Window");
           IWDAction Action1  = (IWDAction)view.getAction("Openlink");
           link1.setOnAction(Action1);
           IWDFlowData linkdata1 = link1.createLayoutData(IWDFlowData.class);
           WDLayoutCellDesign rightpad = WDLayoutCellDesign.R_PAD;
           WDLayoutCellSeparator seperator = WDLayoutCellSeparator.LARGE;
           linkdata1.setCellDesign(rightpad);
           linkdata1.setVGutter(seperator);
    ///for adding description      
           IWDTextView text1 = (IWDTextView)view.createElement(IWDTextView.class);
           text1.setText("Testing");
           IWDFlowData textdata1 = text1.createLayoutData(IWDFlowData.class);
           textdata1.setCellDesign(rightpad);
           textdata1.setVGutter(seperator);
           MainContainer1.addChild(image);
           MainContainer1.addChild(link1);
           MainContainer1.addChild(text1);
           IWDGridData maincont1 = MainContainer1.createLayoutData(IWDGridData.class);
           maincont1.setPaddingLeft("10px");
           maincont1.setPaddingTop("20px");
    I found that this static way of adding rows is not the right way( Keeping in mind the future enhancements)
    So thought of trying it through table
    i have used IWDtable ...but the look does'nt meets the requirement at all(it has header....border..scrollbar..rows and colums are seperated by lines---> which are not needed)
    Could you please let me know is there a approach to do this?
    Thanks & Regards
    Swetha
    Edited by: Swetha Nellore on Feb 18, 2009 12:32 PM
    Edited by: Swetha Nellore on Feb 18, 2009 12:33 PM
    Edited by: Swetha Nellore on Feb 18, 2009 12:34 PM

  • How to use "Select options" in Webdynpro Java ?

    HI experts ,
    I want know if can be implemented "select options" like the ones used in R3 - ABAP in a webdynpro Java.
    And in case of being possible, how to implemented using Adaptive RFC or BAPI with a R3 backend system?
    Our Portal is EP6.0 SP18 ,J2EE 6.40 .
    Thanks & Regards,
    Jianguo Chen

    Hi Jianguo,
    check these links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/5f/e5de3f68d48f15e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/5f/e5de3f68d48f15e10000000a155106/frameset.htm</a>
    You may use 2 EVS to simulate your select option.
    Regards,
    Gianluca Barile

  • ALE-IDoc in WebDynPro Java - Is it possible?

    Hi All,
    As we know we can create RFC function module to access R/3 data from WebDynpro Java, but I would like to know, is there any other way to access R/3 without RFC function module? Because I would like to get data from IDoc directly without using function module, which present in R/3 side.
    Could you please explain me?
    Thanks & Regards,
    Sheik

    Hello
    No need to create a new one.
    There are already lots of standard FM present on the abap side which you can use to read the data of an idoc
    e.g.
    IDOCTYPE_READ_COMPLETE
    IDOCTYPES_LIST_WITH_MESSAGES
    IDOCTYPES_FOR_MESTYPE_READ
    SEGMENT_READ_COMPLETE
    IDOC_RECORD_READ
    Use these standard FMs as RFCs for reading data from afuntion module.
    Thanks
    Sarbjeet Singh

  • Why we call adaptive RFC in webdynpro java..

    Hi,
    I want to know why we call adaptive RFC connection in webdynpro java whenever we import new rfc in our  java web dynpro project.  why name  ADAPTIVE RFC  is used
    if we  make any structure changes in the model which we imported in web dynpro project , like adding a new field, or changing the length/datatype of the existing field, then we always have to reimport the model in our webdynpro project so why adaptive name used. wats especial in the word ADAPTIVE RFC

    Hi Rahul,
    please read the guide:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df?quicklink=index&overridelayout=true
    Best Regards,
    Ervin

  • How to integrate webdynpro java application in HTML pages?

    hi EP GUrus
                i need to re design an Webdynpro java application into web home page. there is one home page designed is wd java . now i have to redesign the page and i have make some web content like training calender new schemes and all which they manually update daily
    thanks in advance
    johny

    hii  sir
               currently we have an application which is accessing through internet using url .that applicalion is wd java application which is need to redesign with dynamic contects

  • Table ui element in webdynpro java.

    Hi Friends,
    I am krishna i am working as sap webdynpro abap consultant . But right now i got the requirement on sap webdynpro java.  
    so please give me the required details.
    Here are my questions.
    1. how to populate the data into the table.
    2. and the back end is erp, i have to use rfc. to display the data into the table .
    3. so how to integrate the rfc into webdynpro java.
    if u send with screen shots that would be very help for me.
    Waiting for your reply.
    Thanks & Regards.
    Krishna.

    It's very simple.
    1) Import your RFC.
    For this:
    -Right click on Models->Create Model->Select Import Adaptaive RFC then follow the steps.
    -Go to Used Models. Right click -> Add... -> then select the model that you created.
    2) I guess you have a view that is using a controller (Custom/Component) so:
    -Go to Context Tab-
    -Create a model node.
    -Bind the model node with the model that you created.
    -Go to the view where you want to put the Table ui element and add the table (Outline window->right click->Insert Child->Table)
    -Go to context tab, add a model node, en map it (Edit context mapping) with the model node that you created in the controller.
    -Go back to layout tab. Then in table properties, in datasource click on the "..." and select the output node of the model that you have created in the view.
    -Then in Outline Window-> Right click on the table element-> Create binding-> check the attributes that you want to be binded to the table.
    -Then follow the steps.
    You have now your table binded to the rfc.
    Finally what you have to do is to create a method to execute the rfc. Usually it is written in the controller. Something like this:
    public void execute<YourBapiName>( )
        //@@begin execute<YourBapiName>()
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
         try
           wdContext.current<YourBapiName>Element().modelObject().execute();
           wdContext.node<YourBapiOutputNode>().invalidate();
           wdContext.current<YourBapiName>Element().modelObject().modelInstance().disconnectIfAlive();
         catch(WDDynamicRFCExecuteException e)
           manager.reportException(e.getMessage(), false);
        //@@end
    To call this method, first, you have to bind the input parameters and then execute it (you can do this wherever you want):
    <YourBapiName> input = new <YourBapiName>();
    input.set<YourBapiParameters>(<YourParameter>);
    wdContext.current<YourBapiName>Element.bind(input);
    wdThis.wdGet<YourControllerName>(Controller().execute <YourBapiName>();
    I hope it helps.
    Bye bye.

  • How to change the font size of Column Heading  in webdynpro java

    Hi,
    I have a table with 4 columns, Can any one tell me how can i increase the text size and apply different fonts in webdynpro java application.
    Thanks
    Satish J

    Hi Satish,
    To expain it bit more clearly.
    Copy the images you need to use in the application
    Open your application in package explorer<Navigator>
    Now Expend node  src -> mimes -> components -> your application name with full package now right click on it and paste all the images here.
    Now go to web Dynpro prospective and use the  image name  (full name of image like columnName.jpg )to assign it to imageSource  property of the  Table_Header (Caption Header). The image will be seen.
    Hope this will clarify.
    Regards
    Narendra

  • Lauching webdynpro java application

    hi gurus
    our scenario is like this..
    when employee fills the educational assistance form (customized webdynpro java application) and clicks on the submit button , it should go for approval..while manager opens the workitem it should lauch the same WD form in display mode with approve and reject button. and when he approves ..it should update the data base & it should sends a intimation mail to the employee that his application has been approved...
    MY QUESTIONS :
    1) how to trigger a event from WD java application to start this workflow ...
    2)  how the values can be passed from WD application container to workflow container .i got some ideas by reading some forums for this i want to use SAP_WAPI_READ_CONTAINER , where i want to use this function module
    3) it is better to use the user decision step for the approval process ? . if i am using this then i want to send the form as a attachment in user decision step,  how it can be achieved ?
    4)what all r the other settings i want to maintain .

    3) it is better to use the user decision step for the approval process ? . if i am using this then i want to send the form as a attachment in user decision step, how it can be achieved ?
    I would definitely prefer to open a form with "Approve" and "Reject" buttons instead of having it as an attachment in a user decision step. Especially if it is a application where a user never approves without opening the attachment. For example i may not prefer to approve a leave requisition without viewing it! In that case it will just be an overhead for the user to open the form manually everytime before approving. So make a decision on this based on the use of your application.
    Moreover it is not that tough either (atleast from a workflow perspective) to launch the webdynpro from UWL. Create a custom task and create appropriate entries in transaction SWFVISU (hope you are on or above ECC 5.0) to link your task and WD application. Thats it your application should be ready and shud be launched from UWL.
    But definitely in a custom application your webdynpro developers need to do a lot of work (as we did one in our previous projects) irrespective of whether it is launched directly as a task or as an attachment.
    Performacewise providing "Approve" and "Reject" will just increase one RFC call from your application (to complete your workitem).
    Thanks,
    Prasath N

  • Calling RFC with webdynpro java (in NetWaver Dev.Studio)

    Hi,
    I have a RFC like below
    FUNCTION ZSAP_X.
    *""Local interface:*
    *"  IMPORTING
    *"     VALUE(USNAM) TYPE  USERNAME
    *"  EXPORTING
    *"      VALUE(PWD) TYPE  CHAR8
    1-I want to write webdynpro java application to call RFC
    2-Call RFC with USNAM parameter
    3-Get PWD output parameter and write it's value into View TextInput field.
    I wrote application but I did not get PWD (output parameter) value. I checked RFC running poreperly.I did not achieve to get PWD.
    How can I do that?
    Thanks.

    Hi Bala,
    I checked RFC, it is running properly and getting the output value.
    And I used command below, but it produces error
    String X = wdContext.currentPWDElement().getpwd().toString();
    Error:
    java.lang.ArrayIndexOutOfBoundsException: -1
    Thanks.

  • Problem with native offline Interactive Forms in webdynpro java.

    I have a java webdynpro project build like the one in this tutorial:
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/how-to-guides-rig-official/netweaver-2004/web-application-server/how%20to%20create%20online%20and%20offline%20forms%20in%20web%20dynpro%20(NW2004).pdf
    The "Online" part of the tutorial is working but in the offline scenario I get no data in WebDynpro from the Interactive form (all of Context Attributes have a value "null") after the use of "Submit to SAP" button. this is the button from the Web Dynpro Native Library in the LC Designer.
    the versioning information:
    Netweaver 7.0 WAS on SP13
    ADS SP13
    Lifecycle designer 7.1
    We updated the ZCI template according to the SAP notes.
    Does anyone know this problem and how to fix it ?

    Hi niru,
    To work on adobe forms in webdynpro java you need to install ALCD(Adobe Life Cycle Designer) along with NWDS(NetWeaver Developer Studio).
    To know about adobe forms in webdynpro check the following link
    http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/solution_in_detail_interactive_forms.pdf
    https://www.sdn.sap.com/irj/scn/elearn?rid=/webcontent/uuid/f5718380-0c01-0010-aebf-8786fb890302 [original link is broken]
    For example check the follwoing link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59
    /docs/DOC-8661#section20 [original link is broken]
    Regards,
    Sam Charles J.

Maybe you are looking for

  • Calendar bug iOS 8.3

    I have noticed bug in Calendar app after update to iOS 8.3 on my iPhone 5C. When I have open Calendar and I am in the month view in the left corner is name of the month. When I move down through next months after few months the name of the month disa

  • Edit in Photoshop bug (Win XP)

    I've had this same little problem, that's small but annoying, but only when I use Lightroom 2 (upgrading to 2.1 didn't; change anything) on Windows XP. I use windows at work, Mac OS 10.5 at home and it doesn't happen on the mac. What happens is this:

  • HT1349 SYSTEM MIGRATION WINDOWS XP TO MAC PRO ERROR

    hi i cannot transfer my documents from my pc vista edition to my new macbook pro using windows migration. I have the error message below if anyone can understand it??? PLEASE HELP!! Monday, 9 July 2012 10:18:38 PM: The working directory is C:\Program

  • Problem with step input using MIDI Keyboard

    Hi, I'm new to Logic Pro X and wanted to know how I can use my MIDI keyboard as a source of Step Input Recording. I created a new software instrument track, then open Window - > Show step input keyboard. If I click the keyboard on the screen, it reco

  • Timed Out Connection

    I have a Linksys E1200 and suddenly I can't seem to connect using the router. The Timed Out error sign comes up on my Mac. I have version 10.7.5 And nothing has changed on my computer. It's not my internet because I can connect using the cable, I hav