<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">I have found the correct function etc
      for linking. <br>
      <br>
      <blockquote type="cite">if($focus-&gt;column_fields['RelatedTo'])
        {<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $delete = $adb-&gt;pquery("DELETE FROM
        vtiger_crmentityrel WHERE crmid = ?",array($focus-&gt;id));<br>
        <br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $setype1 = $adb-&gt;pquery("select setype from
        vtiger_crmentity where crmid=?",
        array($focus-&gt;column_fields['RelatedTo']));<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $setype =&nbsp; $adb-&gt;query_result($setype1,0,"setype");<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $focus-&gt;save_related_module($currentModule,
        $focus-&gt;id, $setype, $focus-&gt;column_fields['RelatedTo']);<br>
        <br>
        <br>
        }<br>
      </blockquote>
      <br>
      If anyone wants to tell me I'm doing it wrong go ahead. I just
      added this to the Save.php of my module.<br>
      <br>
      I still have an issue with the relatedlistview, I see the label
      for the column I want to display, but I dont see any values. The
      edit, assigned to and delete links work fine, so it does link and
      is usable, but very ugly.<br>
      <br>
      Thanks <br>
      <br>
      On 06/11/12 19:21, Richard Hills - TechnologyWise wrote:<br>
    </div>
    <blockquote cite="mid:5098AC76.8050305@tw.co.nz" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">I have since found that the
        relatedlist view should not display (can anyone provide a script
        example to do this? If not I will have a look in the office
        tomorrow).<br>
        <br>
        source <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://wiki.vtiger.com/index.php/CreatingEntityModule">https://wiki.vtiger.com/index.php/CreatingEntityModule</a><br>
        <blockquote type="cite">"This is an attempt to achieve generic
          behavior. You can write custom call back functions to handle
          related list queries that will meet your requirements. "</blockquote>
        My list entries not displaying a link correctly remains an
        issue, if anyone can suggest a solution that would be great.<br>
        <br>
        Thank you.<br>
        <br>
        On 06/11/12 10:32, Richard Hills wrote:<br>
      </div>
      <blockquote cite="mid:50983058.8090204@tw.co.nz" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        <div class="moz-cite-prefix">I have been having countless issues
          and am pulling out hair. If anyone could take a look at what I
          have provided that would be great:<br>
          <br>
          <a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://pastebin.com/5peXxJF0">http://pastebin.com/5peXxJF0</a><br>
          <br>
          (this is just the part I believe is relevant from my modules
          php file, if you need more just let me know).<br>
          <br>
          Issues:<br>
          <ul>
            <li>Popup.php items are not clickable</li>
            <li>List view items are not clickable</li>
            <li>The related account / contact saves fine when editing a
              record, however is not viewable in the "related list" from
              contacts / accounts.</li>
          </ul>
          <p>Thank you<br>
          </p>
          <br>
          <br>
          <br>
          On 06/11/12 09:48, Richard Hills wrote:<br>
        </div>
        <blockquote cite="mid:50982606.9020006@tw.co.nz" type="cite">
          <pre wrap="">Can anyone give me an overview of what the table "vtiger_entityname" is 
used for?

I am having issues with a custom module and I believe that not 
understanding this is the route of the issue.

Thank you.

On 06/11/12 05:17, John Crisp wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">On 05/11/12 16:50, Adam Heinz wrote:
</pre>
            <blockquote type="cite">
              <pre wrap="">Anyway, I'm going to look into writing some sort of afterdelete
trigger on Documents to delete the associated attachment (I will check
for other references first).

</pre>
            </blockquote>
            <pre wrap="">Nice one - we store loads and it will be great to know that they get
tidied up !

B. Rgds
John
_______________________________________________
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a>
</pre>
          </blockquote>
        </blockquote>
        <br>
        <br>
        <pre class="moz-signature" cols="72">-- 
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:richard@tw.co.nz">richard@tw.co.nz</a>
<a moz-do-not-send="true" 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>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
      </blockquote>
      <br>
      <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>