on 04-05-2013 1:16 PM
Hi Gurus,
I´m trying to load recursion node (on Supply Function) just to show the result on a Navigation List element ... but I´m having some problems ...
Please, anyone have an example code ? I would be depply grateful
Thanks in advance !!
Hi Rub, you can put spanish tutorial for Navigation Listo into
http://scn.sap.com/community/spanish
Forum WD ABAP rules don't allow it.
Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alfonso:
Can you solve Navigation List with n-level?
Actualy I have the same requiriment, and only can have n-levels with Table like DEMO_TABLE_WITH_TREE, thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rub,
Please check this...
http://webdynproabap.wordpress.com/2012/12/18/navigation-list/
http://rahulgupta1407.blogspot.in/2012/06/tree-ui-element-and-recursive-node-in.html
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this Example:
Context Node :DATASOURCE
Recursion Node :DATASOURCE_RECURSION
Attributes :TEXT
ENABLED
Bind TEXT to itemText property of Navigation List UI Element.
Bind ENABLED to enabled Property.
Bind the DATASOURCE node to itemSource property
Write this code in Supply Funtion of the context node DATASOURCE and debug, so that u can understand and apply for your requirement.
DATA lo_el_datasource TYPE REF TO if_wd_context_element.
DATA ls_datasource TYPE wd_this->element_datasource.
DATA lt_datasource TYPE wd_this->elements_datasource.
DATA parent_node TYPE REF TO if_wd_context_node.
DATA name TYPE string.
parent_node = parent_element->get_node( ).
IF parent_node->get_node_info( ) = node->get_node_info( ).
parent_element->get_attribute( EXPORTING name = 'TEXT'
IMPORTING value = name ).
ELSE.
* Adding main elements to the navigation list
ls_datasource-text = 'Nav List 1'.
APPEND ls_datasource TO lt_datasource.
CLEAR ls_datasource.
ls_datasource-text = 'Nav List 2'.
APPEND ls_datasource TO lt_datasource.
CLEAR ls_datasource.
ls_datasource-text = 'Nav List 3'.
APPEND ls_datasource TO lt_datasource.
CLEAR ls_datasource.
ls_datasource-text = 'Nav List 4'.
ls_datasource-enabled = abap_true.
APPEND ls_datasource TO lt_datasource.
CLEAR ls_datasource.
ENDIF.
* Adding sub elements to the navigation list
IF name = 'Nav List 1'.
ls_datasource-text = 'Hi'.
APPEND ls_datasource TO lt_datasource.
CLEAR ls_datasource.
ls_datasource-text = 'Bye'.
APPEND ls_datasource TO lt_datasource.
CLEAR ls_datasource.
ENDIF.
IF name = 'Hi'.
ls_datasource-text = 'Hello'.
APPEND ls_datasource TO lt_datasource.
CLEAR ls_datasource.
ls_datasource-text = 'Bolo'.
APPEND ls_datasource TO lt_datasource.
CLEAR ls_datasource.
ENDIF.
* Bind the data to the node
node->bind_table( lt_datasource ).
REFRESH lt_datasource.
Thanks,
Mahendra K.
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.