Hi,
Today i'm find wonderfull article about how to manage IG using javascript.
How to hack APEX Interactive Grid Part 2 – HardLikeSoftware
For example, using function below i can define toolbar menu:
function(config) {
config.toolbarData = [
{
groupTogether: true,
controls: [
{
type: "TEXT",
id: "search_field",
enterAction: "search"
},
{
type: "BUTTON",
action: "search"
}
]
},
{
controls: [
{
type: "BUTTON",
action: "show-filter-dialog",
iconBeforeLabel: true
}
]
}
];
return config;
}
But i can't understand the order in which I should include this script and where.
I guess, that i must get config of my IG like:
config
var config = apex.region("myregionid").widget().interactiveGrid("option").config
and pass into function below.
But it doesn't work for me.
Please, may be someone can shortly explain what i hava to do?
Thanks.