on 06-02-2008 2:04 PM
Hello all,
I am trying to use the top_of_list in my webdynpro alv...
everything is working for alv display...now i want to add top of list to it...
anyone tried this before? or know how to declare the attribute under the context node...
I am using the following code for my top of list:--which I got from the document...
data:
lr_node type ref to if_wd_context_node,
lr_grid type ref to cl_salv_form_layout_grid,
lr_text type ref to cl_salv_form_text,
lr_label type ref to cl_salv_form_label.
create object lr_grid.
lr_text = lr_grid->create_text(
text = '1.2 TEXT'
row = 1
column = 2 ).
lr_label = lr_grid->create_label(
text = '1.1 LABEL'
row = 1
column = 1
r_label_for = lr_text ).
lr_text = lr_grid->create_text(
text = '2.2 TEXT'
row = 2
column = 2 ).
lr_label = lr_grid->create_label(
text = '2.1 LABEL'
row = 2
column = 1
r_label_for = lr_text ).
lr_node = wd_context->get_child_node( name = 'TOP_OF_LIST2' ).
call method lr_node->set_attribute
exporting
value = lr_grid
name = 'CONTENT'. <---what is the type of this attribute in context....how to declare this...
Thanks...
Hi,
Your code is ok, you only need to do one more step.
Map the context nodes TOP_OF_LIST and END_OF_LIST of the ALV component to the context of your application.
1. Go to your View Context.
2. Select your ALV Interface Controler (at right side )
3. Click and Drag ( TOP_OF_LIST and END_OF_LIST ) from ALV Interface Controler context to your View Cintext.
Regards,
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 | |
10 | |
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.