nox Posted December 8, 2010 Posted December 8, 2010 Hi, I've run into a brick wall while trying to develop my solution. I'm making a simple contracting managment system with couple of tables "contracts", "contract_articles" and "contracts_lines" similar to regular product/invoicing system. However there is one special feature I want when creating new contracts: I want to automatically insert client and price data (from external table) into contract articles where appropriate. For example I would select "Price and payment" article from contract_articles table and insert price into article text. First I thought I would be able to use some sort of variable inside article text which would be then replaced with proper data. But I guess this is not possible. Do you guys have some advice on how I should handle this problem? Thanks in advance!
dansmith65 Posted December 9, 2010 Posted December 9, 2010 I'm not quite sure if I understand your question, but if I do then this might help... http://www.briandunning.com/cf/831
nox Posted December 9, 2010 Author Posted December 9, 2010 I'm not quite sure if I understand your question, but if I do then this might help... http://www.briandunning.com/cf/831 Thanks! This looks to be exactly what I need. Now what would be the best way to perform this function on my text? I imagine I could run it with script triggers or maybe when I generate contract for printing?
dansmith65 Posted December 9, 2010 Posted December 9, 2010 I don't know what will work best for your database, but here are a few ways to perform it: - custom menu: perform script on New Record - script triggers - button on layout - have a separate calculated field
nox Posted December 9, 2010 Author Posted December 9, 2010 Great! I'll try with script triggers first and see if that works alright. Thanks again!
Recommended Posts
This topic is 5191 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 accountSign in
Already have an account? Sign in here.
Sign In Now