hkeric.wci
(Haso Keric)
October 18, 2019, 6:50pm
15
You can use:
PushDisposableStatusText which will pop itself:
using (this.oTrans.PushDisposableStatusText("Printing...", true))
{
if (this.BuildBartenderFile(whereClauseUD100A) == true)
{
// Etc
}
}
If you use PushStatusText() then you have to follow up with PopStatus();
this.oTrans.PushStatusText("Importing: " + jobNum, true);
bool recordExists = this.CheckRecordExistsByJobNum(jobNum);
this.oTrans.PopStatus();
PS: I’ll port those Posts to E10Help, because LinkedIn is no place for snipp…
I always use the statusbar and I train the users to look at the statusbar, because Epicor uses it in various other screens. You cuold even add a progress bar to the statusbar.
// you can also use using()
this.oTrans.PushStatusText("Printing...", true); // Enable Mouse Hourglass
this.oTrans.PopStatus();
If you don’t keep popping them, you will remain on the wrong Status. Thats why when possible just use the PushDisposableStatusText with a using() block, but thats not always possible, if you want to update the status from within various methods then you use PushStatusText.
// Status Text: Ready
this.oTrans.PushStatusText("Cat.."); // Status Text: Cat...
this.oTrans.PushStatusText("Mouse.."); // Status Text: Mouse...
this.oTrans.PopStatus(); // Status Text: Cat...
this.oTrans.PopS…
// Status Text: Ready
this.oTrans.PushStatusText("Cat.."); // Status Text: Cat...
this.oTrans.PushStatusText("Mouse.."); // Status Text: Mouse...
this.oTrans.PopStatus(); // Status Text: Cat...
this.oTrans.PopStatus(); // Status Text: Ready
3 Likes