You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Calculate the sum for a grid field with out using row count but using Component Variables.

5 replies [Last post]
ashok_star2004's picture
User offline. Last seen 2 weeks 5 days ago. Offline
Joined: 02/13/2009
Posts: 45

Hi All!!Can any one tell me how can we write a people code to Calculate the sum for a grid field with out using row count but using Component Variables.

Guest's picture
Guest (not verified)
Re: Calculate the sum for a grid field with out using row ...

Component number &Amount;

&Amount = &Amount + SOA_REIMB_DETL.AMOUNT;
Record.Field.Value = &Amount;

Write the code at rowinit of record of the field.

Lepa's picture
User offline. Last seen 3 days 14 hours ago. Offline
Joined: 06/23/2008
Posts: 591
Re: Calculate the sum for a grid field with out using row ...

You can also look at the code behind the voucher component. The page adds the distribution lines amount that are on a grid and compare that to the voucher line amount. It might be a good example!

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Ashok's picture
Ashok (not verified)
Re: Thank u very much!!

Thank u very much!!

Guest's picture
Guest
Re: Calculate the sum for a grid field with out using row ...

i want calculator code in peoplesoft ,please let me know is availble in calculator code .

Guest's picture
Guest
Re: Calculate the sum for a grid field with out using row ...

its not working

Post new comment

CAPTCHA
The question below is to prevent automated spam submissions.
2 + 10 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.