Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Another sorting question Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: January 06 2010 at 22:17 | IP Logged Quote MrGibbage

I didn't want to threadjack the other sorting question in
this forum, but how does one sort the webview of the Device
Status page? When I view the page in PH, it is sorted by
"Type" (Digital Input, Digital Output, Insteon, Int Grp).
But when I view the page over the PH web server, I think it
is sorted by "Location". I see no place to change the sort
though.
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 07 2010 at 13:26 | IP Logged Quote dhoward

I checked the code and the default sort for both the Client device status and the Web device status is Location, Type, ID. Of course, in the client, you can change the sort to whatever you like and I suspect this is the case with your system.

What isnt well known is that you can sort the Web device status as well. Its not the easiest to explain but I'll give it a try. The first thing to do is to determine the actual column names. This is easiest by just opening the client device status screen and clicking on the sort button. In the left hand pane of the sort window are the actual column names. Say we want to sort by the column that appears in the device status screen as "Device Name". In the sort list, the actual column name is "key_desc". To get a web device status sorted by device name you could use this URL:

http://127.0.0.1:8000/ph-cgi/main?sort=key_desc

Of course, you may have to adjust the IP and port for your web server. You can go into Web Server settings in the PowerHome Explorer and change your main page to use this customized URL so it always sorts this way.

Hope this helps,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum