Hi,
I've developed a function that dynamically generates the query and mydbr view options, but using a variable with the category_order option doesn't seem to work (while a static listing does).
I set a variable:
SET @SortLegend = (SELECT CONCAT("'", GROUP_CONCAT(ta.answer ORDER BY sortorder ASC SEPARATOR "','"), "'") FROM answers ta WHERE ta.qid = inOptQid);
which produces something like
'Very frequently','Frequently','Occasionally','Rarely','Very rarely','Never'
and then later I reference it:
select 'dbr.chart.options', 'category_order', @SortLegend;
But it just displays the legend as if the whole statement wasn't there (meaning out of order).
Does dbr.chart.options and/or category_order accept variables (I don't see why it wouldn't!) and can you see any other problem?