Developer Programs

Learn

Docs

AppStat

API Reference > AppStat
SoapActionn/a
Input NameAppStat
Output NameAppStatResponse
Input Namespacen/a
Group NameXperience
ContainerXP_MsgBus.xsd
AppStat.cs
if (!string.IsNullOrWhiteSpace(hostedWindowBase.WindowId))
{
    this.isChildBusy = !this.isChildBusy;

    // Issued by applications to indicate a status change is needed to the application's tab.
    AppStatRq_MType request = new AppStatRq_MType()
    {
        // This is the number of times to flash the tab.
        Flash = 5,
        HostId = hostedWindowBase.WindowId
    };

    // Start/Stop the spinner (Start/Stop)
    if (this.isChildBusy)
    {
        request.Spin = "Start";
    }
    else
    {
        request.Spin = "Stop";
    }

    Helper.FillHeader(request);

    this.messageBus
        .Send(request)
        .RegisterResponseHandler(this.OnChildApplicationStatusResponse);
}
AppStat.js
isBusy = !isBusy;

var request = new jackHenry.xperience.businessObjects.AppStat();
request.Flash = 5;

if (isBusy) {
    request.Spin = "Start";
}
else {
    request.Spin = "Stop";
}

sampleXPWebProductAngular.Helper.FillHeader(request);

var responceCallback = jackHenry.xperience.messageBus.send(request).registerResponseHandler(onToggleBusyCallback);

Did this page help you?

Last updated Mon Dec 9 2024