<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Yeah seems like a very good idea and
hope to see this sort of solution pushed into vtiger 6.<br>
<br>
On 14/03/13 09:41, Joe Bordes wrote:<br>
</div>
<blockquote cite="mid:5140E48D.50906@tsolucio.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Looks really nice, flexible and
powerful. Good work.<br>
<br>
Joe<br>
TSolucio<br>
<br>
<br>
El 13/03/13 20:19, Adam Heinz escribió:<br>
</div>
<blockquote
cite="mid:CAKBdvM9wYbHoNt6YwVZovuhvU2ZfgHV7iwmvzfAinhqZ64DsMQ@mail.gmail.com"
type="cite">
<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'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 class="" style="white-space:pre"> </span>/**</div>
<div><span class="" style="white-space:pre"> </span> *
@param Vtiger_LinkData $linkData</div>
<div><span class="" style="white-space:pre"> </span> *
@return bool</div>
<div><span class="" style="white-space:pre"> </span> */</div>
<div><span class="" style="white-space:pre"> </span>public
static function isLinkPermitted($linkData) {</div>
<div><span class="" style="white-space:pre"> </span>$link
= $linkData->getLink();</div>
<div><span class="" style="white-space:pre"> </span>$url
= $link->linkurl;</div>
<div><span class="" style="white-space:pre"> </span>$parts
= parse_url($url);</div>
<div><span class="" style="white-space:pre"> </span>if
('javascript' == $parts['scheme']) {</div>
<div><span class="" style="white-space:pre"> </span>return
self::isJavascriptPermitted($linkData, $parts);</div>
<div><span class="" style="white-space:pre"> </span>}</div>
<div><span class="" style="white-space:pre"> </span>$query
= $parts['query'];</div>
<div><span class="" style="white-space:pre"> </span>$parms
= array();</div>
<div><span class="" style="white-space:pre"> </span>parse_str($query,
$parms);</div>
<div><span class="" style="white-space:pre"> </span>$action
= $parms['action'];</div>
<div><span class="" style="white-space:pre"> </span>$record
= $linkData->getInputParameter('record');</div>
<div><span class="" style="white-space:pre"> </span>if
($parms['module'] != '$MODULE$') {</div>
<div><span class="" style="white-space:pre"> </span>$module
= $parms['module'];</div>
<div><span class="" style="white-space:pre"> </span>$record
= self::getRelated($module, $record);</div>
<div><span class="" style="white-space:pre"> </span>}
else {</div>
<div><span class="" style="white-space:pre"> </span>$module
= $linkData->getModule();</div>
<div><span class="" style="white-space:pre"> }</span></div>
<div><span class="" style="white-space:pre"> </span>if
(isPermitted($module, $action, $record) != 'yes') {<br>
</div>
<div><span class="" style="white-space:pre"> </span>return
false;</div>
<div><span class="" style="white-space:pre"> </span>}</div>
<div style=""><span class="" style="white-space:pre"> </span>return
true;<br>
</div>
<div> <span class="" style="white-space:pre"> </span>}</div>
<div><br>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Feb 8, 2013 at 2:11 PM,
Sreenivas Kanumuru <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:svk@vtiger.com"
target="_blank">svk@vtiger.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Adam,
<div><br>
</div>
<div>We can certainly tweak vtiger6 UI if it helps.
We'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: +91 96323-55656<br>
Skype: skanumuru</div>
<br>
<b>Connect with us on: </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> <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> <b>I </b><a
moz-do-not-send="true"
href="http://forums.vtiger.com/" target="_blank">Forums </a><b>I</b> <a
moz-do-not-send="true" href="http://vtiger.com/"
target="_blank">Website</a><br>
</div>
</div>
<br>
<br>
<div class="gmail_quote">
<div>
<div class="h5">On Fri, Feb 8, 2013 at 3:18 AM, Adam
Heinz <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:amh@metricwise.net"
target="_blank">amh@metricwise.net</a>></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">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't have
delete permissions; which are the only two
actions ever listed [1]. I've reviewed vt6
and the mouse over behavior is no better;
we'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'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&file=ContextMenu
request. This lazy evaluation prevents list
view load times from being unwieldy, without
sacrificing flexibility.</div>
<div><br>
</div>
<div>Anyway, I'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'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'll
start a new thread tomorrow enumerating my
usability concerns.</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote>
</div>
<br>
</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>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
</body>
</html>