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 Total sum not working

Former Member
0 Likes
466

In my table control 10 line item are there

like below.

Product---- Price

A----


10

B----


10

C------- 10

D------- 10

E----


10

and at last i have take Txt box for total sum

Total = 50.

its comming right,

My problem is when i scroll down vertical bar

then its Total become 40 or 30 and when i scroll Up then

its showing Correct value..

i want total should be fix. how to solve it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
432

Hi Monica

The problem is in you flow logic i think you are looping from <table control>-TOP_LINE. So when you scroll down, it won't consider the line which is not visible for your calc. I think a better option should be first you loop at your records from the internal table and calculate the sum and then use that value for final sum display.

~ Ranganath

In my table control 10 line item are there

like below.

Product---- Price

A----


10

B----


10

C------- 10

D------- 10

E----


10

and at last i have take Txt box for total sum

Total = 50.

its comming right,

My problem is when i scroll down vertical bar

then its Total become 40 or 30 and when i scroll Up then

its showing Correct value..

i want total should be fix. how to solve it.

2 REPLIES 2
Read only

Former Member
0 Likes
433

Hi Monica

The problem is in you flow logic i think you are looping from <table control>-TOP_LINE. So when you scroll down, it won't consider the line which is not visible for your calc. I think a better option should be first you loop at your records from the internal table and calculate the sum and then use that value for final sum display.

~ Ranganath

Read only

Former Member
0 Likes
432

point has ben given