Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic vertical scrolling in TableControl

Former Member
0 Likes
960

Hello,

can someone tell me how I can get the actual lines in a tablecontrol?

I need them to set them in the following example:

FORM v_scroll

   USING tablecontrol  TYPE cxtab_control.

   tablecontrol-v_scroll = 'X'.

   tablecontrol-lines = 20. " Here is the problem, i need the actual count of the lines of the tablecontrol to set them dynamic. If i set the lines to 20

its just possible to view 20 entries. Is there a way to do that?

ENDFORM.


Thanks for your help!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
915

hi,

just count the no of rows of internal table to be displayed using describe table and then pass tablecontrol-lines = lv_lines or incase u need 5 more lines then lv_lines + 5.

hope it helps

5 REPLIES 5
Read only

Former Member
0 Likes
916

hi,

just count the no of rows of internal table to be displayed using describe table and then pass tablecontrol-lines = lv_lines or incase u need 5 more lines then lv_lines + 5.

hope it helps

Read only

0 Likes
915

Hi, i can't use the command describe tablecontrols LINES lines, because the tablecontrol is not an internal table anymore. Is there some other solution?

Regards

Pascal

Read only

jay_kumar8
Active Participant
0 Likes
915

Hi,

Have you created table control with wizard.

Its better you can go head and create it .The system automatically will take care of number of rows displayed.

Regards

Raj

Read only

0 Likes
915

Hi, yes i built it with the wizard. What is the right setting in the wizard?

Regards

Pascal

Read only

0 Likes
915

hi,

if you have a table control with wizard then look for modules  TC_ATTR and get_lines of tc where you can change the lines.

hope it helps