Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2005

Tip: Looking for answers? Try searching our database.

point me to the right website

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 12 Aug 2005 05:20 GMT
I read once on the website where infopath can check to see if the database
that it's source is from, and if it is not available, will display a dialog
box and then disappear. I know that you code it in the onLoad event, but I
cannot seem to find the instructions on how to do it.

Does anyone know where that is explained?

Thanks
me
agni - 12 Aug 2005 05:52 GMT
Hi,
Checking has to be done in the onload method.
When you are crating the dataconnection, in the last dialog there will be a
check box which asks to query the dataconnetion in onload, you just uncheck
that checkbox and click ok.
Once you do this you can query the dataconnection via tha code. The code
which you write should be written inside a "try catch" block.

There are various posts regarding quering the dataconnection at
www.autonomysystems.com

-Agni
www.autonomysystems.com

>I read once on the website where infopath can check to see if the database
>that it's source is from, and if it is not available, will display a dialog
[quoted text clipped - 5 lines]
> Thanks
> me
Eric - 12 Aug 2005 15:52 GMT
Thanks

can you supply a web address from your site that explains how to do it, as a
search on your site does not add any new light to the subject.

> Hi,
> Checking has to be done in the onload method.
[quoted text clipped - 19 lines]
>> Thanks
>> me
Eric - 12 Aug 2005 16:18 GMT
I also went through a new dataconnection wizard, and in no place is there a
place (checkmark box) to query the dataconnection in onload.

Are you sure what you posted is correct?

> Hi,
> Checking has to be done in the onload method.
[quoted text clipped - 19 lines]
>> Thanks
>> me
agni - 12 Aug 2005 17:35 GMT
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=417
Above link gives tips about quering a dataconnection and offline scenarios.
Please search in the "Forums Search" instead of site search. with "try
catch" keywords.
Hope this Helps!

-Agni
www.autonomysystems.com

>I also went through a new dataconnection wizard, and in no place is there a
>place (checkmark box) to query the dataconnection in onload.
[quoted text clipped - 24 lines]
>>> Thanks
>>> me
Eric - 12 Aug 2005 18:30 GMT
Has anyone seen a blog or website that walks you through coding the
connectivity to a database, and if the connection does not exist, gives a
dialog box stating that the database is unavailable and closes?

Thanks,
Eric

>I read once on the website where infopath can check to see if the database
>that it's source is from, and if it is not available, will display a dialog
[quoted text clipped - 5 lines]
> Thanks
> me
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.