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

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

Recommended Posts

Posted

Dear all,

I have 2 tables

main Table

Names Total sales

2nd table

Items Names total Value

2nd table::total value is a calculated field through some self joint relationship.

i am trying to make a script to capture the total value and setfield to Main Table::Total sales by matching the names

ofcourse this is a simplified version of the table. it is on a 50k records database.

I am doing this is because i am trying to switch over from all unstored calculation fields to script based batch run so that i can increase the performance of the database because it is really slow now.

regards

Posted

Your description is a bit unclear. Apparently, you have two tables that are related by a "Name" field. This will be a problem for you in the long run. What if there are two records with the same name? What if the name changes? It is best to assign each record a unique ID. Then, relate the tables using that ID.

In the second table you seem to have a list of items and their "value." To calc the total value of all items that relate to the record in the first table use Sum ( relationship::total value).

Perhaps you'd like to expand a bit on your setup.

This topic is 4587 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.