<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Thanks,<br>
    <br>
    I have indeed now done it with a custom php script which must be run
    when my module is installed and this script calls the setRelatedList
    function.<br>
    <br>
    Do any of you know if there is an existing method of forcing a
    custom function to be run at the end of the module import process so
    that other users do not need to manually run the PHP script upon
    installation?<br>
    <br>
    On 11/09/11 06:30, Asha wrote:
    <blockquote
cite="mid:CAGH86tU28jMy1Vet-ztvhYwMUNUVsY4g6_nABzMAaeTW_ZOHEg@mail.gmail.com"
      type="cite">Hi Richard Hills,
      <div><br>
      </div>
      <div>The right way to achieve this is through vtlib api.</div>
      <div><br>
      </div>
      <div>You can related other modules to your new custom module,
        through manifest.xml file.</div>
      <div><br>
      </div>
      <div>
        But to relate your new custom module to existing module, you
        will have to using the setRelatedlist api of vtlib.<br>
        <br>
        <div class="gmail_quote">On Fri, Sep 9, 2011 at 5:35 PM, Nicolas
          Larcipretti <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:niclarcipretti@gmail.com">niclarcipretti@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">Ok, now I got it. Go to the
            "vtiger_relatedlists" table, add a record there like this:<br>
            <br>
            <b>relation_id</b> =&nbsp; the next number of the tables sequence
            (128 in my case)<br>
            <b>tabid</b> = 13 (that's the HelpDesk's tabid)<br>
            <b>related_tabid</b> = your_custom_module_tabid (in my case
            46)<br>
            <b>name</b> = get_related_list (that will do the trick for
            you I guess, if not, try to find another function that fits
            you best)<br>
            <b>sequence</b> = next_sequence_for_the_module (in my case
            7)<br>
            <b>label</b> = your_custom_module_label<br>
            <b>presence</b> = 0<br>
            <b>actions</b> = null (that's what I've used, can be ADD
            and/or SELECT too)<br>
            <br>
            Try this and tell me if that's what you were looking for.<br>
            <br>
            Cheers<br>
            <font color="#888888"><br>
              Nicolas</font>
            <div>
              <div class="h5"><br>
                <br>
                <br>
                <br>
                <div class="gmail_quote">2011/9/8 Richard Hills -
                  TechnologyWise <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><br>
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">
                    When I enter a job ticket single view, I want a list
                    of my own custom<br>
                    modules related information in its own small list
                    under the main ticket<br>
                    information, by default there are already lists for
                    "Activities",<br>
                    "Documents", "Ticket History", "Activity History",
                    "Services and<br>
                    Projects" in this area.<br>
                    <br>
                    I have since been able to make a dirent sql entry
                    and create this list,<br>
                    however I was hoping that this could be done via
                    manifest.xml, I am also<br>
                    unsure how to force the relation on save, do I need
                    to write a custom<br>
                    function in my modules Save.php which forces the
                    relation?<br>
                    <br>
                    Thanks<br>
                    <div><br>
                      On 09/09/11 00:40, Nicolas Larcipretti wrote:<br>
                      &gt; you give me more information on what you want
                      to do? I think I can<br>
                      &gt; help you with that but I couldn't understand
                      where exactly do you want<br>
                      &gt; your custom module information to show. If
                      possible, send me a print<br>
                      &gt; from the screen where the information should
                      appear.<br>
                      <br>
                      <br>
                    </div>
                    --<br>
                    <div>
                      <div>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>
                      </div>
                    </div>
                  </blockquote>
                </div>
                <br>
              </div>
            </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>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        Regards,<br>
        Asha<br>
        vtiger Team<br>
        <br>
        <b>Connect with us on:&nbsp;</b><a moz-do-not-send="true"
          href="http://twitter.com/#%21/vtigercrm" target="_blank">Twitter</a>
        <b>I</b> <a moz-do-not-send="true"
          href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall"
          target="_blank">Facebook</a>&nbsp;<b>I</b> <a
          moz-do-not-send="true" href="http://blog.vtiger.com/"
          target="_blank">Blog</a><b> I</b> <a moz-do-not-send="true"
          href="http://wiki.vtiger.com/index.php/Main_Page"
          target="_blank">Wiki</a>&nbsp;<b>I </b><a moz-do-not-send="true"
          href="http://forums.vtiger.com/" target="_blank">Forums&nbsp;</a><b>I</b>&nbsp;<a
          moz-do-not-send="true" href="http://vtiger.com/"
          target="_blank">Website</a><br>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
<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>