Think Dynamic, Do Dynamic Microsoft Dynamic CE | Powerapps || Dynamic CRM || Power Apps || Power Platform || Canvas App || D365CE

HOW TO DISPLAY AN ALERT IN POWER APPS USING JAVASCRIPT

 HOW TO DISPLAY AN ALERT IN POWER APPS USING JAVASCRIPT


When using JavaScript, we can display alerts in model-driven Power Apps. To do this, we can use openAlertDialog.

The syntax for this method looks like below:


Xrm.Navigation.openAlertDialog(alertStrings,alertOptions).then(closeCallback,errorCallback);


As a simple example, we can use:


var confirmStrings = { text:"This is a confirmation.", title:"Confirmation Dialog" };

var confirmOptions = { height: 200, width: 450 };

Xrm.Navigation.openConfirmDialog(confirmStrings, confirmOptions).then(

function (success) {    

    if (success.confirmed)

        console.log("Dialog closed using OK button.");

    else

        console.log("Dialog closed using Cancel button or X.");

});

Share:

0 Comments:

Post a Comment

Dynamic 365

Talha Manzoor. Powered by Blogger.

About Me

My background is entirely involved in Microsoft Dynamics CRM Sales/Service/Marketing solution management, implementation, development, .Net Development, with the majority of it in Microsoft Dynamics CRM 2011/2013/2015/Online and .Net Solutions Implementation, Development and Application analysis. Extensively worked in Dynamics CRM Customization and Configuration, Plugins, custom workflow activities, Rest, Soap,Javascript and CRM custom integration and data migration.

Ex-QB Mark Sanchez arrested, faces three possible charges

  Ex-QB Mark Sanchez arrested, faces three possible charges Former NFL quarterback and current Fox Sports broadcaster Mark Sanchez was arres...

Search This Blog

Design by - Blogger Templates | Distributed by Talha Manzoor

Social

pictory

No Thumbnail

No Thumbnail