Skip to Content
author's profile photo Former Member
Former Member

Interacting with trees


I recently did some testing with trees in Web Dynpro...

...and encountered some problems.

What I want to do is simulating some kind of context menu in a tree structure

to enable the user to trigger actions like "Detail-view (for a leaf)", "Add new node"

or "Delete current node". Is there a UI element that can be used to do this?

Because I didn't find such a popup (or equivalent element), I tried to simulate

it otherwise: In this second scenario I wanted to use the mouse-click of the

user to select an entry in the tree. The different actions would be triggered by

clicking on additional buttons on the screen (one button per action).

Here I encountered the problem, that the selection in the tree is displayed

only by a (nearly invisible) border around this element. Is there a different

way to modify the appearance of a node in a tree (ie. make the text bold)?

Moreover I wanted to have icons displayed in the tree. I therefore specified

file://doc.ico as IconSource for my nodes (TreeItemType) with no effect

(except the error-msg: IconSource is not implemented on CSF_WDTreeItemType: LDCN.TreeView.level1). What / where do I have to specify / implement

the icon source?

When specifying the same URL as defaultIconItemSource at root-level

there are at least placeholders (with red cross) showing that there is some

icon which cannot be displayed. In this case there is no error-msg.

(doc.ico is available under mime...).

My system specs are:

Version: Sneak Preview 2.0.0

Build id: 20030515144

I would be pleased if someone could give me some hints... ;o)


Thomas Koch

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2003 at 04:34 PM

    Hello Thomas,

    Your observation is correct: The current implementation of the Tree in Web Dynpro does not support a context menu.

    Concerning your idea to simulate a context menu and the problems you encountered: The selected node (the one that was clicked on) should be highlighted in blue and not only by a small border around it. This might be a bug in the Sneak Preview version. Icons are supported, however, like all other resources icons have to be placed into a specific folder. If you switch from the Web Dynpro Explorer view to the Navigator view you find the folder .

    Drag & drop your icons into this folder. As iconSource of TreeNodeType you now simply specify "doc.ico" without any path. This should work.

    Please let me know!

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Thomas,

      I am afraid the attributs you mention are not available within that version. Appr. mid February we will offer another version based on 6.40. I know, still 4 weeks left, but this make the last issues go as well. I will inform you via e-mail as soon as the new stuff is available. Would that be okay for you?

      Best regards, Karin

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.