sql query in onchange script

Hello,

I have a custom entity and want to get a value (price) from a custom sql-table based on the chosen value of three fields (product, channel, place)

Every time one of the three fields were updated in the screen I need to update the price.

In the onchange scripts of these three fields I can not use server-side commands like "CRM.CreateQueryObj".

How can I solve my problem?

Thank you in advance!