i have tried but everytime i think i get close i make a internal 500 error. so i am asking for help, anyway to set it so that the default order is lastname and not how it does it currently?
Thanks!
and thanks for a great product, it is exactlly what we need.
Default Sort Order Lastname?
Moderator: davidyin
Default Sort Order Lastname?
Thans for the great product!
woohoo, got it working
here is what i did to get it to work the way i wanted.
i added the redirect so that if there is no order in the url it will refresh with one in there, i know its not that good because you cant do location or group yet, but it worked for me.
i added the order=userlastname to prevent it kicking me out of groups and locations
thanks for the help, and a great product![/code]
i added the redirect so that if there is no order in the url it will refresh with one in there, i know its not that good because you cant do location or group yet, but it worked for me.
Code: Select all
if request.QueryString("order") = empty then
Response.Redirect "default.asp?order=userlastname"
if orderby <> "userlastname" and orderby <>"recordstatus" and orderby <> "recordaddon" then
response.Redirect("error.asp?eno=9")
i added the order=userlastname to prevent it kicking me out of groups and locations
Code: Select all
<%
if request.QueryString("groupid") <> empty then
if request.QueryString("locationid") <> empty then
orderbyname = "default.asp?order=userlastname&locationid="&request.QueryString("locationid")
&"&groupid="&request.QueryString("groupid")
else
orderbyname = "default.asp?order=userlastname&groupid="&request.QueryString("groupid")
end if
else
if request.QueryString("locationid") <> empty then
orderbyname = "default.asp?order=userlastname&locationid="&request.QueryString("locationid")
else
orderbyname = "default.asp?order=userlastname"
end if
end if
%>
Thans for the great product!
-
- Newbie
- Posts: 1
- Joined: Tue May 15, 2018 1:43 am
- Contact:
Re: Default Sort Order Lastname?
How to turn that sort of last name and making those standing position