Show/Hide LoadingBox for my custom ajax functionality in Sugar 7.6

Hello All,

Please see below screen shot, I want to show/hide dynamically Std Loading Box in Sugar 7.6
LoadingBox.png

Thanks,

Shyam

  • Hi Shyam

    check this link

    https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/API/Sidecar/Alerts/

    app.alert.show('mehulalert', {

                            level: 'error',

                            title: ' title of your alert ',

                            messages: ' your message ',

                            autoClose: true,

                            autoCloseDelay: 10000

    });

  • Hello Shyam,

    Try below code in your custom ajax call.

    success: function(data) {
        if(data){
            app.alert.show('message-id', {
                level: 'process',
                title: 'In Process...'
            });
        }
    },
    
    complete: function() {
      app.alert.dismiss('message-id');
    }
    
    
    

    Hope it will work.

    -BPATEL