Page 1 of 1

Use Lock Indicator on form create

PostPosted: 11 Sep 2013 15:12
by zsleo
I have a process that starts on creation of a form and may take up to 1 minute to complete multiple independent events.

How do I start the lock indicator in the form create and stop it when the last event process completes?

TIA

Zane

Re: Use Lock Indicator on form create

PostPosted: 11 Sep 2013 17:19
by Jorge Sousa
Hi Zane

Just put an indicator in the event where you create the form

Since this event envolves the render of a form, must be a full submit event (Ajax = False)

Just ensure that ServerController.ShowAnimation is false to not mix the two.

Best Regards

Re: Use Lock Indicator on form create

PostPosted: 13 Sep 2013 22:21
by zsleo
Thanks, I will try it in the next few days.

Regards

Re: Use Lock Indicator on form create

PostPosted: 23 May 2014 13:28
by AndyTucks
Having problems with this myself. What do I set LockOnSubmit/LockUntil loaded to on the form (if this makes a difference)?
Indicator should appear during formcreate method as I open a database and access a few tables / queries. I've Set ShowLoadingAnimation to False on server controller.

I'm also unsure what I set AsyncIndicatorIndex/SubmitIndicatorIndex to.

Thanks,
Andy.

Re: Use Lock Indicator on form create

PostPosted: 23 May 2014 14:20
by Jorge Sousa
Hi Andy

Please send us a test case, with a Sleep(5000) instead of your dataset operations.

Re: Use Lock Indicator on form create

PostPosted: 23 May 2014 19:21
by zsleo
Also, is it possible to set the lock CGD lock indicator globally for an application or a form or a frame?

Not setting for individual presents 'ugly/unnecessary' errors.

A problem I have not resolved when in design mode using a frame is that I frequently get a message that my main for is not included in the project (but it is) and all the frame's components lock indicator settings are removed... I now put lock indicator settings in code but frequently forget which ones were set on components. This is difficult to repeat.

TIA

Re: Use Lock Indicator on form create

PostPosted: 23 May 2014 19:26
by Jorge Sousa
Also, is it possible to set the lock CGD lock indicator globally for an application or a form or a frame?


In the ServerController