<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thank you Joffrey, this was the answer
      I needed.<br>
      <br>
      On 05/02/13 10:38, Joffrey Pannequin wrote:<br>
    </div>
    <blockquote
cite="mid:CAA7ou4sFOzV4zDAxm6qG3pv42mBbCP-uvCCwciAhmiw17_Y5CQ@mail.gmail.com"
      type="cite">
      <p dir="ltr">This could be linked to incorrect settings for entity
        identifier on module1.</p>
      <div class="gmail_quote">Le 4 f&eacute;vr. 2013 21:53, "Richard Hills"
        &lt;<a moz-do-not-send="true" href="mailto:richard@tw.co.nz">richard@tw.co.nz</a>&gt;
        a &eacute;crit&nbsp;:<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 = 'INTEGER'
                <div>
                  <div>$field-&gt;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">&lt;<a
                      moz-do-not-send="true"
                      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; &nbsp; &nbsp; &nbsp; &nbsp; $field new Vtiger_Field();<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $field-&gt;name = 'RelatedTo';<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $field-&gt;label = 'Related To';<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $field-&gt;table = 'vtiger_module2';<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $field-&gt;column = 'relatedto';<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $field-&gt;columntype = 'VARCHAR(255)';<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $field-&gt;uitype = 10;<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $field-&gt;typeofdata = 'V~O';<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $field-&gt;helpinfo = 'Relate to an
                    existing orchard';<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $field-&gt;masseditable = 0;<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp; $block-&gt;addField($field);<br>
                    &gt; &nbsp; &nbsp; &nbsp; &nbsp;
                    $field-&gt;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 moz-do-not-send="true"
                          href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a><br>
                        <a moz-do-not-send="true"
                          href="http://www.technologywise.co.nz"
                          target="_blank">www.technologywise.co.nz</a><br>
                        ph: <a moz-do-not-send="true"
                          href="tel:%2B64%20%280%297%20571%201060"
                          value="+6475711060" target="_blank">+64 (0)7
                          571 1060</a><br>
                        fax: <a moz-do-not-send="true"
                          href="tel:%2B64%20%280%297%20571%201061"
                          value="+6475711061" target="_blank">+64 (0)7
                          571 1061</a><br>
                        <br>
                        _______________________________________________<br>
                        <a moz-do-not-send="true"
                          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 moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a>
<a moz-do-not-send="true" href="http://www.technologywise.co.nz" target="_blank">www.technologywise.co.nz</a>
ph: <a moz-do-not-send="true" href="tel:%2B64%20%280%297%20571%201060" value="+6475711060" target="_blank">+64 (0)7 571 1060</a>
fax: <a moz-do-not-send="true" href="tel:%2B64%20%280%297%20571%201061" value="+6475711061" target="_blank">+64 (0)7 571 1061</a></pre>
          </div>
          <br>
          _______________________________________________<br>
          <a moz-do-not-send="true" href="http://www.vtiger.com/"
            target="_blank">http://www.vtiger.com/</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
<a class="moz-txt-link-abbreviated" href="mailto:richard@tw.co.nz">richard@tw.co.nz</a>
<a class="moz-txt-link-abbreviated" href="http://www.technologywise.co.nz">www.technologywise.co.nz</a>
ph: +64 (0)7 571 1060
fax: +64 (0)7 571 1061</pre>
  </body>
</html>