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
christ2000
User
Posts: 529

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


mobhar
User
Posts: 11905

Post by mobhar »

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


Post Reply