Trying to figure out what is best practice in wappler.
I currently have 5 server side actions and each of these has a corresponding server connect.
Pulls all open tickets.
Pulls all overdue tickets.
Pulls all tickets by user id.
Pulls all closed tickets.
Pulls all tickets by date opened.
Would it be better to move these server side API actions to the library, and create one api with conditionals that cause the correct library action to execute? 5 Server actions and 5 server connects is going to slow this app down quite a bit once load in all the production data.
Would be awesome if there was an isset() equivalent in wappler on server side and the ability to dynamically build a where statement by concatenating to it.
It returned results for both queries, regardless how the condition was met. That seemed really odd so I changed it.
In past projects I usually build a dynamic where clause. So I can use the the same select and joins but change the results by adding to the where clause when a parameter is set. Typically I do this in a class and build the a $where variable if the parameters have values or a specific value. That seems very difficult, if not impossible, in wappler without writing custom code.
I’ve used this project to learn wappler, coming from dev background… I’ve ignored that setting until now. I’ve learned something new about wappler! Thanks!