Showing posts with label InfoPath 2003. Show all posts
Showing posts with label InfoPath 2003. Show all posts

Tuesday, November 25, 2008

Security Warning in InfoPath

Disable the Internet Explorer security risk dialog box:
· From Internet Explorer, choose Internet Options from the Tools menu.
· On the Security tab of the Internet Options dialog box, select the Local Intranet Web Content Zone and then click Custom Level.
· Locate the Miscellaneous/Access Data Sources Across Domains setting, and then select Enable, as shown in Figure 2.
· Click OK, and then click Yes to the warning dialog box that appears.
· Click OK to close the Internet Options dialog box.

These Internet Explorer security options are per machine settings. If you choose to use this solution as part of deployment, you will need to follow the above steps on each machine that will be using your form.

How to add custom menus in InfoPath form

Add the following code in manifest.xsf

<xsf:menuarea name="msoStructuralEditingContextMenu">
<xsf:button name="TestMenu" caption="Test Menu" xmltoedit="field1" showif="immediate">lt;/xsf:button>
</xsf:menuArea>

A new custom menu "Test Menu" will be added. xmltoedit specifies the field for which this menu must appear.

In FormCode.vb, add the event handler for the menu as follows:
< infopatheventhandler(matchpath:="testmenu",> _
Public Sub TestMenu_OnClick(ByVal e As DocActionEvent)

Tuesday, May 6, 2008

Connection Timeout in InfoPath 2003

To overcome the connection timeout issue in InfoPath 2003, specify Timeout for QueryAdapter as given below:
thisXDocument.QueryAdapter.Timeout = 100
By default it is 30 seconds.

Wednesday, April 23, 2008

An introduction to InfoPath 2003

I got an opportunity to work on InfoPath 2003 about 2 years back. It was for a very short time, but a few months back we, by we I mean, me and a colleague of mine were asked to share our experience on the same at the organization level as a part of knowledge sharing exercise. That is when I started digging into it again. It wasn’t a very matured technology at the time we worked on it, we wouldn’t get enough resources on the internet too in case of issues and troubleshooting. That also led to applying some tricks to achieve some of the functionalities (I’ll discuss some of these in my next article); nonetheless, it was a very exciting experience working on InfoPath. You can view the presentation below: