Question

How can I show an information dialog on mobile?

Hello!

I'm trying to show a pop up message on the mobile app when a certain condition is given.

Is there a way to do this?

I'm doing this right now:





Terrasoft.sdk.Model.addBusinessRule("OrderProduct", {

    name: "SaveValidationAprov",

    ruleType: Terrasoft.RuleTypes.Custom,

    events: [Terrasoft.BusinessRuleEvents.Save],

    executeFn: function(record, rule, column, customData, callbackConfig) {

            debugger;

        var IsFieldValid = true;

        if ( (record.get("IcoTotalAvailableStock")) < (record.get("Quantity")) ){

            alert("There is not enough stock");

            IsFieldValid = false;

        }

       

        Ext.callback(callbackConfig.success, callbackConfig.scope, [IsFieldValid]);

    }






Thanks!

})

Like 0

Like

3 comments
Best reply

Hello Fernando,

You can display a message in mobile using the following: 

Terrasoft.MessageBox.showMessage("This is a message!");

This works from code in the mobile client - as Oscar mentioned, there's no option for sending a message from the server to the mobile client, however, from within the mobile client code, you can use the above.

Ryan

Hello,

 

As stated here there is no possibility to display such popups in the mobile app. However here is an article on how to setup push notifications in the mobile app https://academy.creatio.com/docs/user/bpm_tools/bpm_process_examples/ne…

 

You can trigger it once the record is modified and perform the condition check there directly and send a push notification about the result.

 

Best regards,

Oscar

Oscar Dylan,

Thank you for your time and knowledge :)

Hello Fernando,

You can display a message in mobile using the following: 

Terrasoft.MessageBox.showMessage("This is a message!");

This works from code in the mobile client - as Oscar mentioned, there's no option for sending a message from the server to the mobile client, however, from within the mobile client code, you can use the above.

Ryan

Show all comments