on 12-16-2009 2:31 PM
Hi,
please help me selecting a tree element by default. I have a tree reflecting a folder structure. Based on user information I want to mark/select a certain folder (tree element) when the user opens the tree. Is this possible? How? Code examples are greatly appreciated.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lekha,
I read the link you posted and found something about setting the lead selection then the parent is marked. However, the thread did not say where I should add the coding nor what the coding looks like. Any suggestions on that?
It is only the top node that I want to have selected by default and therefore it does not work when I have the lead selection checked.
Thanks.
I solved the problem by setting the lead selection of the first child folder of the root. This was done in the supply function of the folder in the component controller.
...
node->bind_table(
new_items = itab_folderelement
set_initial_elements = abap_true ).
IF wd_this->is_root = abap_true.
node->set_lead_selection_index( 1 ).
wd_this->is_root = abap_false.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.