Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

d_pranskus
Contributor III

Displaying Qlik Sense style modal dialog

Hi Sense Experts

Not sure if it's possible, but could someone help me how to display QlikSense style dialog box and get the user response. I am developing an extension and want to provide to the user a nice dialog box for confirmation

Qliksense Dialog Box.png

Thanks

1 Solution

Accepted Solutions
d_pranskus
Contributor III

Re: Displaying Qlik Sense style modal dialog

Hi

It looks like this is possible:

define([

    "assets/client/dialogs/confirm-dialog/confirm-dialog"

], function (confirmDialog) {

    "use strict";

    return {

        confirm: function () {

            return confirmDialog.show({

                text: "Are you sure you want to delete the item \"" + item.name + "\"?",

            }).then(

                function () {

                    // User clicked OK, do the processing

                    return true;

                },

                function () {

                    // User clicked Cancel

                    return false

                }

            );

        }

    }

});

Qliksense Confirmation.png

3 Replies
ahaahaaha
Honored Contributor

Re: Displaying Qlik Sense style modal dialog

Hi,

You need either create yourself or look for a ready extension.

d_pranskus
Contributor III

Re: Displaying Qlik Sense style modal dialog

Hi

It looks like this is possible:

define([

    "assets/client/dialogs/confirm-dialog/confirm-dialog"

], function (confirmDialog) {

    "use strict";

    return {

        confirm: function () {

            return confirmDialog.show({

                text: "Are you sure you want to delete the item \"" + item.name + "\"?",

            }).then(

                function () {

                    // User clicked OK, do the processing

                    return true;

                },

                function () {

                    // User clicked Cancel

                    return false

                }

            );

        }

    }

});

Qliksense Confirmation.png

giovanni_cirillo
New Contributor

Re: Displaying Qlik Sense style modal dialog

Hi,
How I should call the function to show the confirm dialog in my js script file ?
Thanks a lot,
Giovanni
Community Browser