Show/Hide Animated Gif or Loading Notification When Query Is Being Executed - InfoPath Dev
in

InfoPath Dev

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: Previous Next
  • 05-23-2008 08:45 AM

    • jgill
    • Not Ranked
    • Joined on 05-15-2008
    • Posts 3

    Show/Hide Animated Gif or Loading Notification When Query Is Being Executed

    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

    Re: Show/Hide Animated Gif or Loading Notification When Query Is Being Executed

    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.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.