Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Manage Interactive Grid using javascript

Denis_LevshukNov 27 2018 — edited Nov 27 2018

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.

This post has been answered by Pierre Yotti on Nov 27 2018
Jump to Answer
Comments
Post Details
Added on Nov 27 2018
2 comments
1,947 views