Hi there
I created a custom map from tableA0. I want to have a sort priority 1. Down 2. Warning 3. Unusal
Is it possible to define the sortby this way?
This is what I have so far
<!--Data Tables: Custom Alarms--> <div class="map_object map_table" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:auto;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <#checkobjecttype objecttype="probenode,group,device" nicemessage="true" id="<@objectid>"> <div class="maptablecontainer" style="overflow:hidden"> <#lang key="html.mapobjects.tablea0.tabletitle" default="Alarms (@@@@)" var="tabletitle"> <#table tableid="sensortable" id="<@objectid>" content="sensors" columns="downtimesince,sensor,status,lastvalue,message" sortby="downtimesince" infoheader="false" links="false" sortable="false" varexpand="tabletitle" tabletitle="@tabletitle" filter_tags="@tag(<@tagfilterstring>)" filter_status="5" filter_status="4" filter_status="10" > </div> <#mapobject type="htmlafter" subid="<@subid>"> </div>
Article Comments
Hi binarybubble,
your solution is the best in that case. It is not possible to control the sort order other then asc/desc.
Best Regards, Daniel Elsner
Nov, 2014 - Permalink
balls.... thats bad. maybe you can add that as feature in an upcoming version ;)
but thanks anyway.
Gruss Thomas
Nov, 2014 - Permalink
Maybe I found something. If I use only those 3 filters, I use sortby="-status"
This sorts the sensors to Down, Warning, unusal.
It's not exactly what I wanted, but if I use only those 3 it works.
Oct, 2014 - Permalink