<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3395" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=843424612-10072009><FONT face=Arial 
color=#0000ff size=2>Thanks for your reply. I&nbsp;had a quick look at&nbsp;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 class=843424612-10072009><FONT face=Arial 
color=#0000ff size=2>Reagrds</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=843424612-10072009><FONT face=Arial 
color=#0000ff size=2>Stefan</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> 
vtigercrm-developers-bounces@lists.vtigercrm.com 
[mailto:vtigercrm-developers-bounces@lists.vtigercrm.com] <B>Im Auftrag von 
</B>Asha<BR><B>Gesendet:</B> Freitag, 10. Juli 2009 13:22<BR><B>An:</B> 
vtigercrm-developers@lists.vtigercrm.com<BR><B>Betreff:</B> Re: 
[Vtigercrm-developers] [vtigercrm-developers] Adding custom second account field 
to invoice, sales order, quote<BR></FONT><BR></DIV>
<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">stefan.lorenz@burdadirect.de</A>&gt; 
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>Hello,<BR>how 
  can I add a second account or person field in these modules ?<BR>The problem 
  can'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'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's table<BR>in mysql. So the remainig problem is how to get vtiger 
  to store the selected<BR>account'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">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">http://jobs.vtiger.com</A><BR></BLOCKQUOTE></DIV><BR><BR 
clear=all><BR>-- <BR>Regards,<BR>Asha<BR>vtiger Team </BODY></HTML>