<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Display Order of Button Groups on Panel]]></title><description><![CDATA[<p dir="auto">Currently groups are ordered by the lowest extension in the group.  The SQL to simulate it is:</p>
<p dir="auto"><em>select <code>group</code> from fop2buttons group by <code>group</code> order by min(exten);</em></p>
<p dir="auto">Is it possible to sort the groups alphabetically (with the exception of having the first group be the logged-in user's group as it is now)?</p>
<p dir="auto">Tx,<br />
Ted</p>
]]></description><link>http://localhost:4567/topic/469/display-order-of-button-groups-on-panel</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 06:03:09 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/469.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Jul 2010 04:09:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Display Order of Button Groups on Panel on Wed, 04 Aug 2010 15:40:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi Ted,</p>
<p dir="auto">I really appreciate your post and help, and I also like this kind of SQL challenges.</p>
<p dir="auto">Although your solution does not apply because of the way fop2 is coded, it was an insightful post and I thank you for that, it adds richness to the forums. Proposing solutions is always a good thing in a forum.</p>
<p dir="auto">Now that I am back from vacations I will see if I can make the group sorting query and modification on the client to see if it is possible to change the group order on the display based on the logged extension.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/2093</link><guid isPermaLink="true">http://localhost:4567/post/2093</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 04 Aug 2010 15:40:22 GMT</pubDate></item><item><title><![CDATA[Reply to Display Order of Button Groups on Panel on Wed, 04 Aug 2010 14:10:12 GMT]]></title><description><![CDATA[<p dir="auto">As I don't see your internals, I can only guess how you get the underlying data.  My previous post (which I just corrected; there were a couple of syntax errors) was an attempt to help, clarify, and collaborate not tell you how to write your software.  I hope it didn't come across that way.  While I mostly develop in Java, wild SQL statements have always appealed to me.</p>
<p dir="auto">Regards,<br />
Ted</p>
]]></description><link>http://localhost:4567/post/2092</link><guid isPermaLink="true">http://localhost:4567/post/2092</guid><dc:creator><![CDATA[photo_ted]]></dc:creator><pubDate>Wed, 04 Aug 2010 14:10:12 GMT</pubDate></item><item><title><![CDATA[Reply to Display Order of Button Groups on Panel on Tue, 03 Aug 2010 21:21:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Thanks for the clarification. The problem is that the fop2 client does not perform any sql queries at the moment you login, it generates a static config that is stored in memory. And at the moment of rendering the buttons, it just swaps positions IN the group with the 1st button. So you cannot change the group display based on the extension you are logged as unless I hack deep into the code...</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/2091</link><guid isPermaLink="true">http://localhost:4567/post/2091</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 03 Aug 2010 21:21:18 GMT</pubDate></item><item><title><![CDATA[Reply to Display Order of Button Groups on Panel on Tue, 03 Aug 2010 18:29:02 GMT]]></title><description><![CDATA[<p dir="auto">It could be done with a single SQL statement.  If you assume a variable EXTEN has the extension of the FOP2 user:</p>
<pre><code>(select * from fop2buttons
where `group` in (select `group` from fop2buttons where exten="148") and type="extension"
order by exten)
union
(select * from fop2buttons
where `group` not in (select `group` from fop2buttons where exten="148") and type="extension"
order by `group`,exten)
</code></pre>
<p dir="auto">The first select gets the users in the same group and as there is only one group, it only has to sort by exten.  The second selection gets all the extensions not in the same group as the current FOP2 and sorts them by the group name then the exten.</p>
<p dir="auto">Ted</p>
]]></description><link>http://localhost:4567/post/2090</link><guid isPermaLink="true">http://localhost:4567/post/2090</guid><dc:creator><![CDATA[photo_ted]]></dc:creator><pubDate>Tue, 03 Aug 2010 18:29:02 GMT</pubDate></item><item><title><![CDATA[Reply to Display Order of Button Groups on Panel on Fri, 30 Jul 2010 08:55:03 GMT]]></title><description><![CDATA[<p dir="auto">It will be difficult to have the logged group shown first, it will require a source code change in the client. I will take a look when I get back from vacations.</p>
]]></description><link>http://localhost:4567/post/2089</link><guid isPermaLink="true">http://localhost:4567/post/2089</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 30 Jul 2010 08:55:03 GMT</pubDate></item></channel></rss>