-
Hi,
You can directly add the changing event for a field. Follow the below steps.
1. In your code you will see InternalStartup() method. In this method write the following.
EventManager.XmlEvents["xpath of your repeating node"].Changing += new XmlChangingEventHandler(repeatingfieldname_Changing);
Ex: ...
-
Hi,
To my knowledge there are no other controls that allows the user to select a person from Active Directory. You need to add the share point site to the trusted sites.
-
Hi,
You can achieve this using the following code. Write an on after change event for the check box.
[InfoPathEventHandler(MatchPath = "/my:myFields/my: Bestellungen/my: Bestellung/my: check", EventType = InfoPathEventType.OnAfterChange)]
public void field29_OnAfterChange(DataDOMEvent e)
{
if ...
-
Hi,
You can add the data validation to a field using the below code.
this.Errors.Add(<node of the field to which you want to add validation>, "<name of the validation>", "<message>");
You need to add this code by checking whether the pattern is correct or not using if condition.
-
Hi,
Try the following steps.
1. Go to text box properties.
2. Click on fx button.
3. Click on Insert field or group. Select ‘DeductionAmnt' from the secondary source.
4. Click Filter data. And click Add button.
5. Select ‘CodeDesc' in the first drop down, is equal to in the second drop down, and enter ‘Pension Join Service' text ...
-
Hi,
You can restrict the number rows in a repeating table using the following code in C#.
public void group6_Changing(object sender, XmlChangingEventArgs e)
{
XPathNavigator xn = this.MainDataSource.CreateNavigator(); XmlNamespaceManager xnsm = new XmlNamespaceManager(new NameTable()); xnsm.AddNamespace("my", "<Name space of ...
-
Hi,
Write the code to submit to net work as well as SharePoint in the button click event.
Use the following links to write the code.
http://msdn.microsoft.com/en-us/library/bb251026.aspx
http://www.infopathdev.com/forums/p/10172/36195.aspx
-
Hi,
Is Welcome Title a picture? If so make sure that picture is there in the form's resource files.
-
Hi,
Add a filed to data source (ex: field1 and its xpath is like /my:myFields/my:field1). Before submitting the form, write the following code.
XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text = XDocument.View.Name;
Add a switch view event and write the following code.
function XDocument::OnSwitchView(eventObj)
{
var ...
-
Hi,
We can add a validation using the custom patterns so that if the user enters the wrong format (other than SSN) you can let the user to enter correct format by showing a screen tip.
For this follow the below steps.
1. Go to data validation of the text box.
2. Click Add. Select the text box field in the first drop down, does not match ...