Show/Hide Animated Gif or Loading Notification When Query Is Being Executed - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Show/Hide Animated Gif or Loading Notification When Query Is Being Executed Show/Hide Animated Gif or Loading Notification When Query Is Being Executed Last post 05-23-2008 09:44 PM by Clay Fox. 1 replies. Page 1 of 1 (2 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 05-23-2008 08:45 AM jgill Joined on 05-15-2008 Posts 3 Show/Hide Animated Gif or Loading Notification When Query Is Being Executed Reply Contact I am trying to find a way to show an animated .gif (e.g. something that the users would be familar with like the spinner graphics often used with AJAX) when a DB call is being made and the query results are being retrieved and populated into form fields. The query sometimes takes a bit, and when it is completed I would like the image or loading notification to be hidden again (I have already tried adding the cursor hourglass, but it does not appear to be enough as most users ignore it and wonder what is going on when the query is occuring). // The following function handler is created by Microsoft Office InfoPath. Do not // modify the type or number of arguments. [InfoPathEventHandler(MatchPath="btnLookupCoInventor", EventType=InfoPathEventType.OnClick)]public void btnLookupCoInventor_OnClick(DocActionEvent e) { // Write your code here. Removed the actual code return; } 05-23-2008 09:44 PM In reply to Clay Fox Joined on 06-27-2006 USA Posts 1,935 Re: Show/Hide Animated Gif or Loading Notification When Query Is Being Executed Mark as Not AnswerMark as Answer... Reply Contact It would probably be better to look at using web services and improving the form performance :) You can always use a message box before the query is executed. Otherwise there would probably be some code options but that might require full trust. Clay Fox / Microsoft InfoPath MVP Page 1 of 1 (2 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I am trying to find a way to show an animated .gif (e.g. something that the users would be familar with like the spinner graphics often used with AJAX) when a DB call is being made and the query results are being retrieved and populated into form fields. The query sometimes takes a bit, and when it is completed I would like the image or loading notification to be hidden again (I have already tried adding the cursor hourglass, but it does not appear to be enough as most users ignore it and wonder what is going on when the query is occuring).
[
{
}
It would probably be better to look at using web services and improving the form performance :)
You can always use a message box before the query is executed.
Otherwise there would probably be some code options but that might require full trust.