Richard,<br><br>In the module.php file there is a function called vtlib_handler, you can place your script under postinstall condition.<br>This will be executed after the module is imported.<br><br><div class="gmail_quote">
On 12 September 2011 04:35, Richard Hills - TechnologyWise <span dir="ltr"><<a href="mailto:richard@tw.co.nz">richard@tw.co.nz</a>></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;">
<u></u>
<div 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?<div><div></div><div class="h5"><br>
<br>
On 11/09/11 06:30, Asha wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">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"><<a href="mailto:niclarcipretti@gmail.com" target="_blank">niclarcipretti@gmail.com</a>></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> = 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><br>
<br>
<br>
<br>
<div class="gmail_quote">2011/9/8 Richard Hills -
TechnologyWise <span dir="ltr"><<a href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a>></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>
> you give me more information on what you want
to do? I think I can<br>
> help you with that but I couldn't understand
where exactly do you want<br>
> your custom module information to show. If
possible, send me a print<br>
> from the screen where the information should
appear.<br>
<br>
<br>
</div>
--<br>
<div>
<div>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>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
_______________________________________________<br>
<a 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: </b><a href="http://twitter.com/#%21/vtigercrm" target="_blank">Twitter</a>
<b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" target="_blank">Facebook</a> <b>I</b> <a href="http://blog.vtiger.com/" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" target="_blank">Wiki</a> <b>I </b><a href="http://forums.vtiger.com/" target="_blank">Forums </a><b>I</b> <a href="http://vtiger.com/" target="_blank">Website</a><br>
<br>
</div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
<br>
<pre cols="72"><font color="#888888">--
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
</font><div class="im"><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: +64 (0)7 571 1060
fax: +64 (0)7 571 1061</div></pre>
</div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Vikas<br>Vtiger Team<br>