using table tree by key column UI element
I have table tree by key column and a button in my view.
i want to enable the button for the selection of only leaf elements.
i.e.in the 3 rd level i have leaf (no further sub node) elements.
i want to enable the button for these elements only.for the higher nodes i.e. for the 1st and 2 nd level i want to disable the button.
please any sample code for this?
BalaSubramanyam Duvvuri replied
check this component WDT_TREE_TABLE_BY_KEY.(this is also having 3 levels with 3rd level as leaf)
and the method GENERATE_DATA.
Bind an attribute of type wdy_boolean to button enabled property and set the attribute value in GENERATE_DATA method by checking the conidition
row-is_leaf = abap_true.
Hope it helps