I have a problem with new charts in Oracle APEX 5.1. I need to do chart from PL/SQL Function Body returning SQL Query, but it only works if I do it with exact parameters and no page or app variables. If I use variable as parameter, then i get error "Parsing returned query results in "ORA-06550: line 16, column 37: ORA-00936: missing expression".", but in legacy chart the same function with parameters works just fine...
for example this source for chart works
return CHARTS.GET_IOPROFILE_CHART(1, 1701);
but this does not
return CHARTS.GET_IOPROFILE_CHART(:P22_PROFILE, :G_TEST_ID);
Can enybody please help me, I just do not see what is wrong...