<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, &quot;Richard Hills&quot; &lt;<a href="mailto:richard@tw.co.nz">richard@tw.co.nz</a>&gt; 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-&gt;columntype = &#39;INTEGER&#39;
        <div>
          <div>$field-&gt;typeofdata = &#39;I~O&#39;;</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">&lt;<a href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a>&gt;</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>
            &gt;         $field new Vtiger_Field();<br>
            &gt;         $field-&gt;name = &#39;RelatedTo&#39;;<br>
            &gt;         $field-&gt;label = &#39;Related To&#39;;<br>
            &gt;         $field-&gt;table = &#39;vtiger_module2&#39;;<br>
            &gt;         $field-&gt;column = &#39;relatedto&#39;;<br>
            &gt;         $field-&gt;columntype = &#39;VARCHAR(255)&#39;;<br>
            &gt;         $field-&gt;uitype = 10;<br>
            &gt;         $field-&gt;typeofdata = &#39;V~O&#39;;<br>
            &gt;         $field-&gt;helpinfo = &#39;Relate to an existing
            orchard&#39;;<br>
            &gt;         $field-&gt;masseditable = 0;<br>
            &gt;         $block-&gt;addField($field);<br>
            &gt;         $field-&gt;setRelatedModules(Array(&#39;Module1&#39;));<br>
            <br>
            This all works file and the values are saved correctly.
            However when in<br>
            edit, list and detail mode the value of &quot;relatedto&quot; 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>