Ext.MessageBox in SelectRows Callback?

LabKey Support Forum (Inactive)
Ext.MessageBox in SelectRows Callback? bill c white  2014-02-19 14:58
Status: Closed
 
I am attempting to load an Ext.MessageBox.show() in a LABKEY.Query.selectRows() success callback (takes a few seconds). Is there some reason this is not allowed? An alert() call works. It works from a Javascript console on the same page.

Thanks,

Bill
 
 
jeckels responded:  2014-02-19 15:11
Hi Bill,

I'd expect it to work just fine. Are there any errors in the JavaScript console?

Thanks,
Josh
 
bill c white responded:  2014-02-19 15:31
No errors in the console.
 
Nick Kerr responded:  2014-02-19 17:57
Hi Bill,

Are you able to set a break-point in your success callback? If so, try to evaluate if "Ext" is available or if you can make any calls from there.

Thanks,
Nick
 
bill c white responded:  2014-02-19 18:11
I load several Ext sliders and a grid panel in the same function successfully.
 
bill c white responded:  2014-02-19 18:43
If I add an alert after the message box, I see both on the screen until the hide at the end of the function. What should 'animEl' be? Maybe the message box is being rendered on another layer/container brought back by the alert but not there without it? // debugger; Ext.MessageBox.show({ msg: 'Please wait...', progressText: 'Loading...', width:300, wait:true, waitConfig: {interval:200}, //animEl: 'mb3' }); alert("After the Ext message box");
 
Ben Bimber responded:  2014-02-19 18:52
I think you might be able to simplify that to: Ext.Msg.wait('Loading...'); wait() will handle a lot of this config automatically for you. I typically only use the convenience methods of Ext.MessageBox like alert() or wait(). If I want to make any other sort of window, I'd typically do directly to an Ext Window. My guess is animEl is an element that should be used to animate showing the window (it looks like it grows from that element).