on 08-06-2012 6:51 AM
hi,
how can we do visibilty check for web dynpor ALV
srinivas
Hi ,
create on attribute in context....
then follow below screen.
then follow bellow sample code.
* DATA lo_el_context TYPE REF TO if_wd_context_element.
* DATA ls_context TYPE wd_this->element_context.
DATA lv_resub TYPE wd_this->element_context-resub.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `RESUB`
IMPORTING
value = lv_resub ).
Regards,
Venkat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivsa,
can you move the discussion to ABAP webdynpro so that you will get the more answer for your question.
Hope you understand.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create one context node named VIS_OPTN and map it with visible property of ALV in layout.
then in your method declare following variables:
DATA : lo_el_context TYPE REF TO if_wd_context_element.
DATA : val TYPE string.
lo_el_context = wd_context->get_element( ).
lo_el_context->set_attribute ( EXPORTING
name = `vis_optn`
value = VAL ).
IF VAL EQ 'x'
"Web Dynpro ALV is visible....'
ENDIF.
Regards,
Aaradhana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.