Application Development 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: 

sort table control contents

Former Member
0 Kudos

hi all,

i need to sort the contents of a table control dynamically,how can i do this..

for ex: if user clicks on 'unpack' for a Handling Unit(HU) on table control 1(TC1) , i display the contents of it in TC2.

and when he clicks on some other HU in TC1 and again clicks 'unpack' i need to sort the previous and present contents so that i can see them in a sorted order in TC2.

i tried sorting the table on which iam looping but thats leaving balnks in TC2 until my logic finds the contents of the HU to be displayed.(for ex. if HU has posnr 90 and 100, the TC2 has the first 8 rows blank, if i use sort)..

please suggest

thanks

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Please make sure that you REFRESH your control before displaying the screen again.



REFRESH CONTROL 'TC2_CONTROL' from screen '100'.

Regards,

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Please make sure that you REFRESH your control before displaying the screen again.



REFRESH CONTROL 'TC2_CONTROL' from screen '100'.

Regards,

Rich Heilman

0 Kudos

In the PBO module, make a direct DESCRIBE against the internal tables.

DESCRIBE table TC1 lines TC1_CONTROL-lines.

DESCRIBE table TC2 lines TC2_CONTROL-lines.

This will "force" the table controls to reallocate their memory usage.

Message was edited by: John Jakabcsin