I need to perform some data conversion when performing update and insert transactions into a database. As a simple example, I need to store a numerical value into the database, however I want the user to be able to enter hexadecimal data. I could do this on the client side with a simple JS parseInt
call, but I’ve not worked out how to call this.
On the display side, Wappler provides custom formatters, but I’ve not seen something similar for converting UI data to a format required for the database.
Additionally, if this can be done in PHP that would also be fine. I found the following post which I think is looking for similar functionality to call custom functions but haven’t seen that anything is implemented.
I’d welcome any thoughts on this - it seems like this must be possible so I’m sure I’m just missing the obvious.