cancel
Showing results for 
Search instead for 
Did you mean: 

WD-Element TABLE Setting 1st Row

Former Member
0 Kudos

Hello,

in WD(ABAP) I use a TABLE-Control. It is bind to a node. The node is bind to a internal table with a lot of entries.

Now I want ro show the Rows beginning at specific row , greater than 1 at startup-time.

The example should show the rows 30 to 40 in the table.

It does not work.

-


SELECT * FROM ZMYTABLE INTO TABLE itab_df_m WHERE kenn_mq = 'M' .

SORT itab_df_m.

node->bind_table( new_items = itab_df_m

set_initial_elements = abap_true ).

node->SET_LEAD_SELECTION_INDEX( index = 30 ).

-


Some sugestions?

Thanks

Wolfgang

Edited by: Wolfgang Ratsch on Aug 20, 2008 2:06 PM

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

there is a property called firstVisibleRow of table control, you can make use of this.

create a context attribute of type integer and bind this with the above mentioned property

and set the attribute using

wd_context->set_attribute( name = '<name>' value = 20 ).

instead 20 you can set at which ever row yuo want

Abhi

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The third video in this blog:

shows how you can also use Context Paging to only read the small amount of data that you are actually displaying within the table.