Running query on Client Script

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Posts: 519

Running query on Client Script

Post by christ2000 »

Hello, i was trying to run a query to get some values on my clientscript area, my code look as :

const query = 'SELECT `Phrasesmall` FROM `messagestemplates` WHERE PhraseID = 3';
const queryResults = results;
args.settings.templates = [
                title: 'Select One',
                description: '',
                content: results

but i dont getting any results show, is this the correct way to run a query on javascript? thanks

Posts: 11473

Post by mobhar »

You may refer to Create Your Own API Action -> Example 2.

Post Reply