Skip to Content
avatar image
Former Member

Interacting with trees

Hi!

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)

Thanx

Thomas Koch

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    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,

    Karin

    Add 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