Hi ,
I want to create simple web dynpro application to display contents in my z db table.
for that i have added attributes from dictionary to node but when i am trying generate code using wizard in WDDOINIT Method it is generating the below code.
DATA LO_ND_N_ALV TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LT_N_ALV TYPE WD_THIS->ELEMENTS_N_ALV.
* navigate from <CONTEXT> to <N_ALV> via lead selection
LO_ND_N_ALV = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_N_ALV ).
* @TODO handle non existant child
* IF lo_nd_n_alv IS INITIAL.
* ENDIF.
** @TODO compute values
** e.g. call a model function
*
LO_ND_N_ALV->BIND_TABLE( NEW_ITEMS = LT_N_ALV SET_INITIAL_ELEMENTS = ABAP_TRUE ).
I dont think this is the correct code.
Can anyone help me on this?