Posted by dogboy72 on March 23, 2011 at 12:35am
This is difficult to explain so I've attached a schematic. I have to create a rule that updates raw material inventory when a product moves into production. There are several tables (content types) involved. The rule involves a couple db_queries with some looping and simple calculations until a field is updated.
Any suggestions would be appreciated. I am aware I'll probably need to write a custom module, but I haven't found any that are similar to my situation using rule_hooks. I am using rules 1/drupal 6.
| Attachment | Size |
|---|---|
| job_rule.jpg | 51.03 KB |
Comments
Solved
I was able to do this by writing a custom module. Once the code is tidied up, I'd be happy to post it here if anyone is interested.
very interested
hello
it would be great to learn from it.
please, upload it.
i am starting in rules and i have never made a module :)
Still tweaking it but I will
Still tweaking it but I will be sure to post how I did it when I'm done.
Please let me know the
Please let me know the implementation of rules as I am also working on similar task.
Tutorials for coding Rules plugins
For information, here are three resources if you want to write Rules plugins:
I hope it can be of help!
//Johan Falk
**
Check out NodeOne's Drupal Learning Library! 200+ screencasts and exercises, for Drupal introduction, advanced configuration, and coding. Creative Commons license!