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 cotrol total sum

Former Member
0 Likes
376

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
356

Hi Monica,

Depends on where you have coded the logic for calculating the total. Do not keep it wihtin a MODULE which lies in the LOOP...ENDLOOP. this might be the reason the value is changing on scrolling.

Put the code within a module outside the LOOP and ENDLOOP, preferably in PBO.

Regards,

Aditya

Read only

Former Member
0 Likes
356

Thanks ADit,

Point has been given.