-
InfoPath 2007 provides date calculations. If you are in InfoPath 2003 or 2007, you can use managed code which has wonderful date functions, like AddMonths(). If you are using script, you will need to do all the footwork yourself to make this function as it should. You should be able to find appropriate help in a JScript or VBScript forum.
-
Your correct XPath entirely depends upon exactly what current() evaluates to. For example, if current() evaluates to my:group2, then current()/my:ddlTeamName makes sense. However, if current() evaluates to my:group2/my:SomeOtherField, then you would need to use a relative XPath to get back to the one you want, like this: ...
-
Yes, that is the best approach. It makes life much easier!!
-
Please note that I have only looked over your code, and have not actually tried to run any of it.
ERROR 1: You don't need to create a new app. Just reference XDocuments directly.
ERROR 2: You are missing your quotes.Microsoft.Office.Interop.InfoPath.Application myApp = new Microsoft.Office.Interop.InfoPath.Application(); // ...
-
I have got the code referenced at the bottom of my post to work successfully provided I block out the reference to the xml title(//oEnvelope.Subject = getNodeValue(xmlTitle); ). My issue resides specifically with this code:
var xmlTitle = XDocument.DOM.selectingSingleNode ("../dfs:dataFields/d:Tbl_Main/@Issue");
Can anyone ...
-
Thanks for sharing this. I know it will be very useful to people in similar situations! I'm glad you got it working.
-
Great! Hopefully they will add it. I know I could definitely use that feature!
-
Hi
I have created a student application form for our College to be used within the College's official Website over the Internet. This form contains seven different views which can be navigated (using switch rules) through using Infopath buttons. We do not have MOSS but are using SharePoint Services 3.0 Here ...
-
I worked around it by basing the Category drop down on a query instead of the table. In the query I included a field called CategoryName & a field called Category and filtered it. I based the drop down on the query connection and the entries on the query. I based the value & display name on Category instead of ...
-
Any ideas why the code below only works when the form is NOT fully trusted?
var conn = new ActiveXObject("ADODB.Connection");
conn.ConnectionString = XDocument.QueryAdapter.Connection;
conn.ConnectionTimeout = XDocument.QueryAdapter.Timeout;
try
{
conn.Open();
conn.Execute('execute ...