-
Hi again Joel,
Finding of XPath of the field you could open the template.xml and you can prepare of your xpath from root node with the separation of slash ''/''.
Check out this link you can get the more information,http://www.w3schools.com/xpath/default.asp
-
Hi mar,
I am sorry for I had given above line code. Here is the code for setting the property of the node.
XDocument.GetDOM(''DOMName'').setProperty(''SelectionNamespaces'',''Namespace of the your DOM'');
Can you check once in debug mode if you are getting the DOM and also need to check n that DOM your node is present or not. If your node is ...
-
Hi Micky Welcome to the Forums,
You want to send another view means; whenever you click on “Submit” button you can set this value to one filed. Depends on that field value you can switch to another view. Whenever you opened submitted form it will open by another view as default.
Do you want to send by email your form then we have lot more posts ...
-
Hi Michael,
Can you try below two Xpaths:
/myFields/datafields/d:TOSS/employeeDepartment[../@monthlyExpenses = current()/SelectedemployeeDepartment]
/myFields/datafields/d:TOSS[@monthlyExpenses = current()/SelectedemployeeDepartment]/employeeDepartment
-
Hi mar,
Can you try once this Xpath, Your Xpath should be like “/my:myFields/my:test”.
If above Xpath also doesn#%92t work then you need to set the property of your DOM by using below code:
thisXDocument.DOM.setProperty( ''SelectionNamespaces'', ''Namespace of your DOM'');
After this you can try to get the node. And you need to check your Xpath ...
-
Hi Joel Allen Welcome to the Forums,
You need to give the field XPath should be correct. Can you check once again XPath of the your field.
-
Hi Soham Bhatt,
You can write code for button to switching to another view.
btnSwitchView_OnClick(DocActionEvent e)
{
String viewName = thisXDocument.View.Name;
if(viewName == “Request”)
{
SwitchView(“Approve”);
}
else If(viewName == “Approve”)
{
SwitchView(“Request”);
}
else If(viewName == ...
-
Hi Shayken,
Can you check first as below the code returns correctly or not
Var disciplinaLength = xmlDoc.getElementsByTagName(''DISCIPLINA'')(i).length;
After it returns the number then you can try your code.
One more is you given example node name is PROFESSORES but you are trying PROFESSOR . Can you check once again node name is correct ...
-
Hi Turnipboy,
If you want to show message when button is disabled, you need to add one section above the button and say message “'please fill out the text boxes above'”. And you need to add reverse condition as you disabled the button. It will automatically show this message whenever button is disabled.
Whenever you fill all the data then this ...
-
Hi,
If you want to get the opened InfoPath form template in sharepoint,
string url = thisXDocument.URI;