Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Conditional portal calculation


This topic is 8145 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a one to many job_header to job_items. I have a field setup in the job_items db called 'category' which is either P, L or O. I have a calc field of:

If(Job Header to items::CATEGORY="L",Sum(Job Header to items::CHARGES)*.6,0) and also If(Job Header to items::CATEGORY="P",Sum(Job Header to items::CHARGES)*.35,0)

I finally add these two calc fields together with: tot_com=L_com+P_com to display the total of the fields in the portal out on the form.

Problem is that the calc is ignoring the condition of testing the value of CATEGORY.

Any help appreciated.

Posted

You will need a separate relation set up for each category variable. They are in essence hardwired. Then, create Sum fields in Jobs based on each different relation, and add those up.

This topic is 8145 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.