ajax not working

Hi Team,Before im using
SetClientVar(“MyCustomSql”, Encrypt(sql)); // Pass a server side variable (encrypted SQL) to client sideand im using

ew_Ajax(ewVar.MyCustomSql, 100); // Send the encrypted SQL and client side input valueBut now i changed to below, but not working
ew.ajax(ew.vars.MyCustomSql,100); // Send the encrypted SQL and client side input value

ew.ajax does not support SQL anymore. Use API instead. Read help file topic: Lookup Table → Ajax by API and Client Scripts. (Assume you use v2020.)

Thanks so much