Opening other files in callx triggers
Anyone out there open other files in write triggers?
Given a relationship such as this:
customers hasmany orders
orders belongsto customer
I'd like to sum orders.total and write it on customer.
Instead of finding each routine that would need to update this value, I was thinking about adding it to the customer write trigger. So every time a customer is updated, this value is evaluated and updated.
What's the cost/risk to implementing it this way?
------------------------------
Jeremy Lockwood
Awesome
ASE Supply Inc
Portland OR US
------------------------------
Given a relationship such as this:
customers hasmany orders
orders belongsto customer
I'd like to sum orders.total and write it on customer.
Instead of finding each routine that would need to update this value, I was thinking about adding it to the customer write trigger. So every time a customer is updated, this value is evaluated and updated.
What's the cost/risk to implementing it this way?
------------------------------
Jeremy Lockwood
Awesome
ASE Supply Inc
Portland OR US
------------------------------
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.



