cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically setting Icon_Source for Tree Node

former_member671224
Participant
0 Kudos

Hi experts,

I'm developing a Web Dynpro Application using ABAP; Creating Tree view dynamically using Supply Function as below;

Level 1 (Tree Node) - expanded property checked

Level 2 (Tree Node) - Expanded property checked

Level 3 (Tree Node) - Expanded Property un checked

For Example:

Level 1 (Purchase Order)

Level 2 (Purchase Item)

Level 3 (Material Number)

For the given PO, all the items will be fetched and populated using supply function of context node created for Level 2; and materials in the respective items will be displayed as sub node of Item node using suply function of context node for Level 3;

Now, if the material is marked for deletion, then the material should have icon to denote that it is deleted; something like cancelled mark ('X') and if the material is not marked for deletion, then it should have tick mark to denote that it is not marked for deletion.

can someone suggest how to populate the Icon_Source property for Tree_Node while building the level 3 (material number) for items based on deletion indicator for that material;

Thanks,

Amal

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Hi Amal,

Take a look at component WDR_TEST_EVENTS view TREE_MAPPED (or another of the TREE_* views). In their example, they have bound several of the TreeNodeType properties to attributes in the 0..n context node. You could similarly bind the iconSource property to a context attribute.

Cheers,

Amy