-
Hi Evert and welcome to the forums!
On the OnAfterChange event of the field that the user inputs to, try this code:
DateTime f1 = DateTime.Parse(e.Source.text);
DateTime f2 = f1.AddMinutes(-15);
thisXDocument.DOM.selectSingleNode(''/my:myFields/my:field2'').text = f2.ToShortTimeString();
-
Thanks I will give that a try.
-
We implemented this functionality for one of our forms by making webdav calls from inside of our form code (implemented in C#). If you'd like some sample code, just let me know.
-
My forms and database are published to a shared folder on a network.
I set up a password to MS Access yesterday to secure the database.
However, whenever a user open IP, it asks for password. And my managers doesn't want this. They want to end users open the froms without entering the password.
Therefore, I tried to modify the dataconnection in ...
-
Here's where I'm stuck. The IP 2007 c# table sort example from infopath team blog uses the
XPathNavigator xn = this.MainDataSource.CreateNavigator();
to get the xpath navigator object. To my knowledge the MainDataSource object is not available in the IP 2003 managed code solution. I'm guessing there's a workable conversion from the form's main ...
-
I don't see why it won't work. Here is the complete script code:
/*
* This file contains functions for data validation and form-level events.
* Because the functions are referenced in the form definition (.xsf) file,
* it is recommended that you do not modify the name of the function,
* or the name and number of arguments.
*
*/
// The ...
-
Hi Michael,
I have very little experience with IPFS, but I'm not sure how you could do this without code. The only thing I can think of is hooking up a web service that takes a date and returns a dayOfWeek. If you have one of these then you can get it using just rules.
Rules on the Date node:
Set field's value: Date value into parameter of web ...
-
Hi Alexander,
I don't see anything wrong with what you're doing - could you paste the error?
-
Hi Alexander,
You should be able to do this:
private MyService myService;
OnLoad()
{
myService = newMyService();
}
Then you can reference this global myService variable from any of the functions in the class. To generate the OnLoad event, click Tools -> Programming -> OnLoad event.
-
Something is wrong with the XPath. You should double-check that it's correct and then see if you're hitting a namespace issue.
http://infopathdev.com/howto/tutorials/default.aspx?i=ed2cf0c5895f468995cdd081cf17fead