Hi all,
So I seem to be going round in circles with trying to find the correct information / any forum post that touches on what I’m trying to accomplish, and have reached the point of finally reaching out, even though I’m no doubt missing something super obvious!!!
We have data in an external database that we’re pulling into our Squiz Matrix Instance with a “DB Connector” asset, and then making the necessary queries with “DB Data Source” assets.
However, I’m trying to figure out how to convert the returned results into usable JavaScript variables for use by the JavaScript files on our website, and am struggling to see how to do this!
Out of necessity of making some progress, I ended up creating “Asset Listing Pages” for each query, to insert the results into a hidden div onto the HTML page, and then using the JavaScript file to pull that data from the DOM into variables that can be usable, but I know there must be an easier way!!
I’ve tried to play around with the other assets that look like they should be able to accomplish something like this (REST Resource etc) but to be honest, I don’t do much development work in Squiz Matrix in our organization, so I’m struggling to use the CMS to accomplish this seemingly simple task!
Can anyone point me towards any tutorials, or provide a simple summary of the assets I’d need to create and establish relationships to do this?
Thanks for your time!
Cheers,
Gavin