I have an interactive report with a region named: “MY_DATA_REGION” (and static id too).
I created a button with java code:
var region = apex.region("MY_DATA_REGION").widget().interactiveGrid("getViews","grid");
but when i run the page and check the console it displays the following error:
Uncaught Error: cannot call methods on interactiveGrid prior to initialization; attempted to call method 'getViews'.
Will you guys tell me what do I have to initialize and where? I'm following a video in youtube and i followed step by step and i ended getting this error, HOWEVER… my version es 22.2 and in youtube's version was “i think 20.1” or so.