-
Hi,
Add the following code lines in the button click event.
IXMLDOMNode focusNode = thisXDocument.DOM.selectSingleNode("xpath of the field in which the focus comes");
If(focusNode!= null)
{
thisXDocument.View.SelectText(focusNode ,Type.Missing);
} This is for a normal button placed from ...
-
Hi,
Every time you are setting the first row total value. You can solve your problem by altering some code which is formatted as BOLD. public void DateFin_Changed(object sender, XmlEventArgs e) {XPathNavigator MainData2 = MainDataSource.CreateNavigator(); if (e.Site.SelectSingleNode("../my:DateDebut", ...
-
Hi,
DateFin_Changed(..) event will be called every time when the DateFin field value is changed. The field name should not be changed when we insert a new row. But if we use MainData2.SelectSingleNode("/my:DemandeConge/my:Conges/my:DateFin", NamespaceManager), in the changed event, every time the first row’s DateFin is considered. If ...
-
Hi,Every time you are calculating the first rows field’s difference. You can call the newly inserted “DateEnd” using e.Site.SelectSingleNode("../my:DateEnd",NamespaceManager) Use the following code.public void field2_Changed(object sender, XmlEventArgs e){ XPathNavigator ...
-
Hi,
Set the following xpath as default value to achieve your requirement.
xdXDocument:GetDOM("secondary datasource name")/RootNode/RepeatingNode[count(preceding-sibling::RepeatingNode) = count(current()/../preceding-sibling::my:RepeatingNodeOfMainDataSource)]/IDFieldNode ...
-
Hi,If the form is a browser form, [n] does not work. Use the following xpath as default value for a text box to get the nth element in a browser form.xdXDocument:GetDOM(“Secondary DOM Name")/RootNode/NodeName/RepeatingNodeName[count(preceding-sibling::RepeatingNodeName) = (n-1)]/fieldNodeExample: ...
-
HiYes. It is possible. Follow the below steps.1. Click on fx button in expression box properties.2. Click on ‘Insert a field’ in ‘Select 1 Field or Group’ window.3. Select the source from where you are getting the Id and Name in Source drop down.4. Select the ‘Name’ field and ...
-
Hi,
Get the last record of the repeating section using last() function. In that get the one field value. If that field value is blank then set the three text box values to the repeating nodes values like
thisXDocument.DOM.selectSingleNode("/my:myFields/my:group1/my:group2[position() = last()]/my:field1").text = ...
-
Hi,
Make sure that they have permissions to access the data base. And the form should be a full trust form.
-
Hi,
Set the status of the form in a hidden field (ex: status). And put a rule for the form using that field.
1. Go to Tools-> Form Options.
2. In Open and save tab, Click on Rules button.
3. Click on Add and then click on ...