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

table control in dialog programming

Former Member
0 Likes
784

i had taken two table control in third tab of screen 103.. the problem are

1.whenever i press enter all the data in table control disappear or lost....and

2. whenever i want to add new record the no scorll bar in coming or i am unable to enter new record

6 REPLIES 6
Read only

Shahid
Product and Topic Expert
Product and Topic Expert
0 Likes
755

Try to fix the scroll bar by using setting the property. Table control has a property called FIXED_COLS. FIXED_COLS takes the column number.

Read only

former_member209703
Active Contributor
0 Likes
755

Have you set the Table Control's LINES property accordingly?

You always have to do this in the PBO, so the Table Control knows how many lines are filled with data


 G_D_TC-LINES = LINES ( G_T_INTERNAL_TABLE ).

Read only

Former Member
0 Likes
755

Hi,

How have you created the table control? through the wizard or manually?

Read only

0 Likes
755

table control create by wizard

Read only

Former Member
0 Likes
755

Hi,

1) when you press enter button just debug the code using /h i think some where your written the code for clearing the internal table.

2)

use Jose Maria Otero said. your using the two table control so you have to find two internal table lines like


 G_D_TC1-LINES = LINES ( G_T_INTERNAL_TABLE1 )."first table control 
 G_D_TC2-LINES = LINES ( G_T_INTERNAL_TABLE2 )."second table control

write the code in the PBO event. Here G_D_TC1 is 1st table control name G_D_TC2 is 2nd table control name.

Regards,

Dhina..

Read only

lijisusan_mathews
Active Contributor
0 Likes
755

Check in your PAI if there is a line similar to

modify itab from wa.

it should be in a module In the loop ..... endloop in the pai.

If it is there. Pls check if u r refreshing teh itab in PBO.. or if u r selecting records from somewhere in the PBO which will overwrite the entered values?