SKIP: Adding custom code to Javascript events

0 votes

Is it possible to add javascript code to field events? for example, onchange event in quantity or price field for calculate the total field = quantity * price values

in Features (Skip) by (180 points)
recategorized by

1 Answer

0 votes

At the moment there is no ability to augment the javascript code in dbFront, either via a limited javascript API or by including your own custom javascript.

This is an intentional decision because dbFront is designed primarily for DBAs. In addition, opening a javascript API would make it much harder for me to modify dbFront in the future, for example, if I need to rebuild the web client to use newer technology. This is not an academic problem because there is already pressure to upgrade or replace the UI.

For this reason, my strong preference would be to suggest server-side solutions such as a calculated column or a view field.

If immediate field feedback is required then I can possibly resolve this by automatically sending certain field updates to the database along with a local refresh.

For all of these reasons I am going to skip this feature request. Feel free to comment if you think of reasons why I should pursue this further.

by (64.4k points)
edited by
Welcome to the dbFront Q&A site, where you can ask questions and receive answers from other members of the community.
 | Minimalist Answer Theme by Digitizor Media
Powered by Question2Answer