<p dir="ltr">This could be linked to incorrect settings for entity identifier on module1.</p>
<div class="gmail_quote">Le 4 févr. 2013 21:53, "Richard Hills" <<a href="mailto:richard@tw.co.nz">richard@tw.co.nz</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Your integer change was an obvious one
and I have now made this, have also tested with lowercase earlier
(also with the change). Neither of these steps has made a
difference.<br>
<br>
Thanks<br>
<br>
On 05/02/13 09:38, Adam Heinz wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>For uitype 10, I use:<br>
</div>
<div><br>
</div>
$field->columntype = 'INTEGER'
<div>
<div>$field->typeofdata = 'I~O';</div>
<div><br>
</div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Is
field name allowed to be mixed case?</span><br>
</div>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Feb 4, 2013 at 3:32 PM, Richard
Hills <span dir="ltr"><<a href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all.<br>
<br>
I am setting up a basic vtlib module which has a relation
requirement<br>
between an existing module.<br>
<br>
> $field new Vtiger_Field();<br>
> $field->name = 'RelatedTo';<br>
> $field->label = 'Related To';<br>
> $field->table = 'vtiger_module2';<br>
> $field->column = 'relatedto';<br>
> $field->columntype = 'VARCHAR(255)';<br>
> $field->uitype = 10;<br>
> $field->typeofdata = 'V~O';<br>
> $field->helpinfo = 'Relate to an existing
orchard';<br>
> $field->masseditable = 0;<br>
> $block->addField($field);<br>
> $field->setRelatedModules(Array('Module1'));<br>
<br>
This all works file and the values are saved correctly.
However when in<br>
edit, list and detail mode the value of "relatedto" is
empty.<br>
<br>
I was wondering if anyone could point out what my problem is
likely to be?<br>
<br>
Thanks<br>
<span><font color="#888888"><br>
--<br>
Richard Hills<br>
TechnologyWise Ltd, Tauranga, NZ<br>
<a href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a><br>
<a href="http://www.technologywise.co.nz" target="_blank">www.technologywise.co.nz</a><br>
ph: <a href="tel:%2B64%20%280%297%20571%201060" value="+6475711060" target="_blank">+64 (0)7 571 1060</a><br>
fax: <a href="tel:%2B64%20%280%297%20571%201061" value="+6475711061" target="_blank">+64 (0)7 571 1061</a><br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</font></span></blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
<a href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a>
<a href="http://www.technologywise.co.nz" target="_blank">www.technologywise.co.nz</a>
ph: <a href="tel:%2B64%20%280%297%20571%201060" value="+6475711060" target="_blank">+64 (0)7 571 1060</a>
fax: <a href="tel:%2B64%20%280%297%20571%201061" value="+6475711061" target="_blank">+64 (0)7 571 1061</a></pre>
</div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div>