on 09-03-2009 6:55 PM
Hi,
In my requirement, I am creating a table at run time in WDDOMODIFY view. I am binding my node nod_ops to this table (export parameter BIND_DATA_SOURCE = 'NOD_OPS' ), which has about 100 rows of data.
Problem is when I run the appication it shows the table but it does not show any data. In the center of the table control it has a message "Table Does not contain visible columns'. How can I make table control show my data from node?
Pl help.
Thanks,
Hardik
hi,
Debug your application and check whether the table which you are binding to the node has any data or not.
If your internal table has data, check whether names of context node' attributes binded to table and internal table's fields has same names.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is what I have done,
I have three nodes A, B and C. Node A,B and C are bound with respective itab and have data.
If condition 1.
l_table = cl_wd_table=>( bind_data_source = 'A' ).
elseif condition 2.
l_table = cl_wd_table=>( bind_data_source = 'B' ).
elseif condition 3.
l_table = cl_wd_table=>( bind_data_source = 'C' ).
endif.
I think I am missing somethig here, but not able to figure out what?
Thanks
Hardik
Here it is..
I have three nodes A, B and C. Node A,B and C are bound with respective itab and have data.
If condition 1.
l_table = cl_wd_table=>( bind_data_source = 'A' ).
elseif condition 2.
l_table = cl_wd_table=>( bind_data_source = 'B' ).
elseif condition 3.
l_table = cl_wd_table=>( bind_data_source = 'C' ).
endif.
This creates an empty table. No node data are populated, though node is populated with data.
Thanks
Hardik
Have you used similar kind of coding ?
Radhika" create table
wd_table = cl_wd_table=>new_table( view = m_view
footer_visible = abap_false
visible_row_count = -1
selection_mode = CL_WD_TABLE=>E_SELECTION_MODE-NONE
read_only = abap_true
bind_data_source = node_name
design = CL_WD_TABLE=>E_DESIGN-TRANSPARENT ).
cl_wd_matrix_head_data=>new_matrix_head_data( element = wd_table ).
wd_container->add_child( wd_table ).
" create column
wd_table_column = cl_wd_table_column=>new_table_column( view = m_view ).
wd_table->add_column( wd_table_column ).
" create cell editor
concatenate node_name '.NAME' into binding_path. " this is your attribute that you want to bind to the column
wd_text_view = cl_wd_text_view=>new_text_view( view = m_view
bind_text = binding_path ). "binding
wd_table_column->set_table_cell_editor( wd_text_view ).
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.