Hi Stefan,<br><br>You can get an instance of any of the existing modules and add field for it. The field uitype that I  would suggest you is 10. <br><br><div><span class="gmail_quote">On 7/10/09, <b class="gmail_sendername">Lorenz Stefan</b> &lt;<a href="mailto:Stefan.Lorenz@burdadirect.de">Stefan.Lorenz@burdadirect.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Thanks for your reply. I had a quick look at the 
documentation of vtlib but it remains rather unclear to me how to use it with 
already existing modules such as quotes etc. Would you give some hints, please 
?</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Reagrds</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Stefan</font></span></div><br>
<div dir="ltr" align="left" lang="de">
<hr>
<font face="Tahoma" size="2"><b>Von:</b> 
<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vtigercrm-developers-bounces@lists.vtigercrm.com</a> 
[mailto:<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vtigercrm-developers-bounces@lists.vtigercrm.com</a>] <b>Im Auftrag von 
</b>Asha<br><b>Gesendet:</b> Freitag, 10. Juli 2009 13:22<br><b>An:</b> 
<a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vtigercrm-developers@lists.vtigercrm.com</a><br><b>Betreff:</b> Re: 
[Vtigercrm-developers] [vtigercrm-developers] Adding custom second account field 
to invoice, sales order, quote<br></font><br></div><div><span class="e" id="q_12264b74a69f5bb4_1">
<div></div>Hi Stefan,<br><br>I suggest you to try out vtlib. Use uitype 10 of 
vtlib to create such custom fields. Hope that meets your requirement which will 
not clash with the existing referencing field.<br><br>
<div><span class="gmail_quote">On 7/10/09, <b class="gmail_sendername">DJLorry</b> 
&lt;<a href="mailto:stefan.lorenz@burdadirect.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">stefan.lorenz@burdadirect.de</a>&gt; 
wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hello,<br>how 
  can I add a second account or person field in these modules ?<br>The problem 
  can&#39;t be solved by just adding a custom field and changing the<br>uitype. 
  (Which works when no account field already exits, though)<br>The uitype 50 
  changes the custom field to contain the button for the<br>popup-window for 
  account-selection.<br>The problem is that a thereby selected account is stored 
  in the modul&#39;s<br>default account field whereas the custom field stays blank. 
  I have added a<br>query to show the account if I put an accountid in the 
  customfield&#39;s table<br>in mysql. So the remainig problem is how to get vtiger 
  to store the selected<br>account&#39;s Id in the custom field and not in the 
  account_id field. Where is<br>the connection between popup window,save button 
  and the insertion into the<br>database ? How can I get vtiger not to treat 
  both the custom and the already<br>existing field as the same when storing the 
  account-id ? The same problem<br>occurs with a custom person field if one is 
  already part of a module by<br>default.<br><br>I hope someone is able to 
  help.<br><br>Regards<br>Stefan<br><br><br><br>--<br>View this message in 
  context: <a href="http://www.nabble.com/Adding-custom-second-account-field-to-invoice%2C-sales-order%2C-quote-tp24408556p24408556.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.nabble.com/Adding-custom-second-account-field-to-invoice%2C-sales-order%2C-quote-tp24408556p24408556.html</a><br>
Sent 
  from the vtigercrm-developers mailing list archive at 
  Nabble.com.<br><br>_______________________________________________<br>Reach 
  hundreds of potential candidates - <a href="http://jobs.vtiger.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://jobs.vtiger.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>
Regards,<br>Asha<br>vtiger Team </span></div></div>
<br>_______________________________________________<br>
Reach hundreds of potential candidates - <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://jobs.vtiger.com" target="_blank">http://jobs.vtiger.com</a> <br></blockquote></div><br><br clear="all"><br>-- <br>
Regards,<br>Asha<br>vtiger Team