![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello! The passed orderBy parameter string can consist of one of these 8 possibilities The code is at the end. TicketID ASC TicketI DESC Priority ASC Priority DESC CreatedDate ASC CreatedDate DESC Owner ASC Owner DESC I want to sort in the way that the given parameter orderBy is specified. It would be easy to use string.format but I hope that I can avoid that because of sql injection I hope somebody know how to fix this in an easy way without using string.format. I tried below but I get error probably of not understanding this fully. It must be an easier way to use case then I have done below. It seems like a lot of writing whan I have the sort expression ready to be used. |
#3
| |||
| |||
|
|
I tried below but I get error probably of not understanding this fully. |
![]() |
| Thread Tools | |
| Display Modes | |
| |