SO I am curious...  Does record contract have something to do with service contracts?<br><br><div class="gmail_quote">On Wed, Mar 13, 2013 at 3:19 PM, Adam Heinz <span dir="ltr">&lt;<a href="mailto:amh@metricwise.net" target="_blank">amh@metricwise.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I finished my prototype a couple days ago and finally remembered to take some screenshots of it.  You can see how I&#39;ve replaced the links of the list view Action column with a single icon that opens up my context menu (jquery-ui dialog).  Comparing that to the detail view, you can see that the options are nearly identical; the view appointment link is omitted from detail view for obvious reasons).  The View History link was added by stock ModTracker and it works from the ListView without any changes!  So far my handler function is pretty straightforward:<div>

<div><br></div><div><div><span style="white-space:pre-wrap">        </span>/**</div><div><span style="white-space:pre-wrap">        </span> * @param Vtiger_LinkData $linkData</div><div><span style="white-space:pre-wrap">        </span> * @return bool</div>

<div><span style="white-space:pre-wrap">        </span> */</div><div><span style="white-space:pre-wrap">        </span>public static function isLinkPermitted($linkData) {</div><div><span style="white-space:pre-wrap">                </span>$link = $linkData-&gt;getLink();</div>

<div><span style="white-space:pre-wrap">                </span>$url = $link-&gt;linkurl;</div><div><span style="white-space:pre-wrap">                </span>$parts = parse_url($url);</div><div><span style="white-space:pre-wrap">                </span>if (&#39;javascript&#39; == $parts[&#39;scheme&#39;]) {</div>

<div><span style="white-space:pre-wrap">                        </span>return self::isJavascriptPermitted($linkData, $parts);</div><div><span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">                </span>$query = $parts[&#39;query&#39;];</div>

<div><span style="white-space:pre-wrap">                </span>$parms = array();</div><div><span style="white-space:pre-wrap">                </span>parse_str($query, $parms);</div><div><span style="white-space:pre-wrap">                </span>$action = $parms[&#39;action&#39;];</div>

<div><span style="white-space:pre-wrap">                </span>$record = $linkData-&gt;getInputParameter(&#39;record&#39;);</div><div><span style="white-space:pre-wrap">                </span>if ($parms[&#39;module&#39;] != &#39;$MODULE$&#39;) {</div>

<div><span style="white-space:pre-wrap">                        </span>$module = $parms[&#39;module&#39;];</div><div><span style="white-space:pre-wrap">                        </span>$record = self::getRelated($module, $record);</div><div><span style="white-space:pre-wrap">                </span>} else {</div>

<div><span style="white-space:pre-wrap">                        </span>$module = $linkData-&gt;getModule();</div><div><span style="white-space:pre-wrap">                }</span></div><div><span style="white-space:pre-wrap">                </span>if (isPermitted($module, $action, $record) != &#39;yes&#39;) {<br>

</div><div><span style="white-space:pre-wrap">                        </span>return false;</div><div><span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">                </span>return true;<br></div><div>
<span style="white-space:pre-wrap">        </span>}</div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Feb 8, 2013 at 2:11 PM, Sreenivas Kanumuru <span dir="ltr">&lt;<a href="mailto:svk@vtiger.com" target="_blank">svk@vtiger.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Adam,<div><br></div><div>We can certainly tweak vtiger6 UI if it helps. We&#39;ll await your screenshots to get a better idea of the proposed change. </div>

<div><br></div><div>thanks,</div>
<div>Sreenivas</div><div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div>--<br>Sreenivas Kanumuru<br>vtiger Team<div><div><br></div><div>Direct: <a href="tel:%2B91%2096323-55656" value="+919632355656" target="_blank">+91 96323-55656</a><br>
Skype: skanumuru</div>

<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>


</div></div>
<br><br><div class="gmail_quote"><div><div>On Fri, Feb 8, 2013 at 3:18 AM, Adam Heinz <span dir="ltr">&lt;<a href="mailto:amh@metricwise.net" target="_blank">amh@metricwise.net</a>&gt;</span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr">I am working on a prototype replacement for the list view action column. We have never found it very useful as our users prefer the detail view ajax edit for the bulk of their changes and generally don&#39;t have delete permissions; which are the only two actions ever listed [1].  I&#39;ve reviewed vt6 and the mouse over behavior is no better; we&#39;re stuck with the same basic actions for every record.<div>



<br></div><div>The Vtiger_Link class has enabled us to remove custom code and replace it with data, bringing our fork more in line with stock vtigercrm.  One thing that I&#39;ve started to notice is that our context menu entries often overlap our detail view actions, the main difference being that our context menus are custom code, whereas the detail view actions are Vtiger_Links.  The obvious next step is to generate context menus from Vtiger_Links!  The handler parameter gives me a ton of control over which links are shown when I generate the context menu, which I am doing via a simple action=ModuleAjax&amp;file=ContextMenu request.  This lazy evaluation prevents list view load times from being unwieldy, without sacrificing flexibility.</div>



<div><br></div><div>Anyway, I&#39;ll have a patch up before too long (and maybe some screenshots), but I really wanted to throw this out before the mouse over behavior in vt6 is set in stone.  We&#39;re finally starting to deploy 5.4.0 to our users, so I am only now beginning to look at vt6.  Though I generally like the crisp new look, it takes several steps backwards in terms of user interface.  I&#39;ll start a new thread tomorrow enumerating my usability concerns.</div>



<div><br></div><div>[1] <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/5.4.0/include/utils/ListViewUtils.php#L970" target="_blank">http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/5.4.0/include/utils/ListViewUtils.php#L970</a><br>



</div></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>