<div dir="ltr">Thanks for your time Alan,<div><br></div><div>I am adding some of my findings too to this thread. It may be help someone else  </div><div><br></div><div>I have seen a function in ModTracker.php file which will do all this magic</div><div><br></div><div><div><span class="" style="white-space:pre">   </span>static function enableTrackingForModule($tabid){</div><div><span class="" style="white-space:pre">           </span>global $adb;</div><div><span class="" style="white-space:pre">               </span>if(!self::isModulePresent($tabid)){</div><div><span class="" style="white-space:pre">                        </span>$res=$adb->pquery("INSERT INTO vtiger_modtracker_tabs VALUES(?,?)",array($tabid,1));</div><div><span class="" style="white-space:pre">                  </span>self::updateCache($tabid,1);</div><div><span class="" style="white-space:pre">               </span>} else{</div><div><span class="" style="white-space:pre">                    </span>$updatevisibility = $adb->pquery("UPDATE vtiger_modtracker_tabs SET visible = 1 WHERE tabid = ?", array($tabid));</div><div><span class="" style="white-space:pre">                     </span>self::updateCache($tabid,1);</div><div><span class="" style="white-space:pre">               </span>}</div><div><span class="" style="white-space:pre">          </span>if(!self::isModTrackerLinkPresent($tabid)){</div><div><span class="" style="white-space:pre">                        </span>$moduleInstance=Vtiger_Module::getInstance($tabid);</div><div><span class="" style="white-space:pre">                        </span>$moduleInstance->addLink('DETAILVIEWBASIC', 'View History', "javascript:ModTrackerCommon.showhistory('\$RECORD\$')",'','',</div><div><span class="" style="white-space:pre">                                                                    </span>array('path'=>'modules/ModTracker/ModTracker.php','class'=>'ModTracker','method'=>'isViewPermitted'));</div><div><span class="" style="white-space:pre">            </span>}</div><div><span class="" style="white-space:pre">  </span>}</div></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><br>Regards,<br>Lajeesh<br></div>
<br><div class="gmail_quote">On Mon, Sep 15, 2014 at 5:49 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 15/09/14 12:43, lajeesh k wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
How can we enable history view or recent update for a module . Is there<br>
any such option available via front end ?<br>
</blockquote>
<br></span>
Using the vtlib API you need to add the ModTracker showhistory action link link to your module and also add the tabid of your module to vtiger_modtracker_tabs.<br>
<br>
HTH<br>
<br>
Al<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>