[Vtigercrm-developers] Relate custom module to troubletickets

Richard Hills - TechnologyWise richard at tw.co.nz
Sun Sep 11 16:05:49 PDT 2011


Thanks,

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.

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?

On 11/09/11 06:30, Asha wrote:
> Hi Richard Hills,
>
> The right way to achieve this is through vtlib api.
>
> You can related other modules to your new custom module, through 
> manifest.xml file.
>
> But to relate your new custom module to existing module, you will have 
> to using the setRelatedlist api of vtlib.
>
> On Fri, Sep 9, 2011 at 5:35 PM, Nicolas Larcipretti 
> <niclarcipretti at gmail.com <mailto:niclarcipretti at gmail.com>> wrote:
>
>     Ok, now I got it. Go to the "vtiger_relatedlists" table, add a
>     record there like this:
>
>     *relation_id* =  the next number of the tables sequence (128 in my
>     case)
>     *tabid* = 13 (that's the HelpDesk's tabid)
>     *related_tabid* = your_custom_module_tabid (in my case 46)
>     *name* = get_related_list (that will do the trick for you I guess,
>     if not, try to find another function that fits you best)
>     *sequence* = next_sequence_for_the_module (in my case 7)
>     *label* = your_custom_module_label
>     *presence* = 0
>     *actions* = null (that's what I've used, can be ADD and/or SELECT too)
>
>     Try this and tell me if that's what you were looking for.
>
>     Cheers
>
>     Nicolas
>
>
>
>
>     2011/9/8 Richard Hills - TechnologyWise <richard at tw.co.nz
>     <mailto:richard at tw.co.nz>>
>
>         When I enter a job ticket single view, I want a list of my own
>         custom
>         modules related information in its own small list under the
>         main ticket
>         information, by default there are already lists for "Activities",
>         "Documents", "Ticket History", "Activity History", "Services and
>         Projects" in this area.
>
>         I have since been able to make a dirent sql entry and create
>         this list,
>         however I was hoping that this could be done via manifest.xml,
>         I am also
>         unsure how to force the relation on save, do I need to write a
>         custom
>         function in my modules Save.php which forces the relation?
>
>         Thanks
>
>         On 09/09/11 00:40, Nicolas Larcipretti wrote:
>         > you give me more information on what you want to do? I think
>         I can
>         > help you with that but I couldn't understand where exactly
>         do you want
>         > your custom module information to show. If possible, send me
>         a print
>         > from the screen where the information should appear.
>
>
>         --
>         Richard Hills
>         TechnologyWise Ltd, Tauranga, NZ
>         richard at tw.co.nz <mailto:richard at tw.co.nz>
>         www.technologywise.co.nz <http://www.technologywise.co.nz>
>         ph: +64 (0)7 571 1060 <tel:%2B64%20%280%297%20571%201060>
>         fax: +64 (0)7 571 1061 <tel:%2B64%20%280%297%20571%201061>
>
>         _______________________________________________
>         http://www.vtiger.com/
>
>
>
>     _______________________________________________
>     http://www.vtiger.com/
>
>
>
>
> -- 
> Regards,
> Asha
> vtiger Team
>
> *Connect with us on: *Twitter <http://twitter.com/#%21/vtigercrm> *I* 
> Facebook 
> <http://www.facebook.com/pages/vtiger/226866697333578?sk=wall> *I* 
> Blog <http://blog.vtiger.com/>*I* Wiki 
> <http://wiki.vtiger.com/index.php/Main_Page> *I *Forums 
> <http://forums.vtiger.com/>*I* Website <http://vtiger.com/>
>
>
> _______________________________________________
> http://www.vtiger.com/


-- 
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
richard at tw.co.nz
www.technologywise.co.nz
ph: +64 (0)7 571 1060
fax: +64 (0)7 571 1061

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20110912/889757d8/attachment-0002.html 


More information about the vtigercrm-developers mailing list