-
Thanks a lot!.
It works fine if context node is an element. But not if it is attribute. oNode.parentNode returns null for attribute..
Can you just tell me how do I get element owner of an attribute..?
Thanks,
E. Rajasekar.
-
Hi,
I have found a very Recurring bug on Infopath for reproduce do the following:
Design new blank form put one textbox and a button
make an event .Net on the button click for recup the value of the fields in a string or show it to the user
create a shortcut for the button (for example alt + s).
Now fill out the form go on the textbox write ...
-
Hi,
Use something around:
bool b = true;
string sTemp = oNode.nodeName;
while (b)
{
oNode = oNode.parentNode;
if (oNode != null)
{sTemp = oNode.nodeName + ''/'' + sTemp;}
else
{b=false;}
}
Regards,
Franck Dauché
InfoPathDev
-
Hi,
While handling OnContextChange() event, i want to get absolute path of context node (context node could be element or an attribute). or atleast owner element for selected attribute..
Can any one post some script/code for implementing this..?
Thanks,
E. Rajasekar.
-
My InfoPath form is a simple one based on a Access database connection. The submit button is the one offered by InfoPath just submiting to a database. My main connection is based on the company tabel. It looks like the following:
+ company
I------+ plant
______I------+ project
______I------+ contact
It's the same relationship like my Access ...
-
Thanks for the extra information around your process. I think we can help you but we could also use a little more information of how you have your InfoPath form set up. For instance, if you have a submit button, what is it submitting to and how are you pushing data into your database. You may have to add some logic that will tell if you are ...
-
Greetings once again,
Please forgive all my questions as I climb the learning curve. Here's my latest question:
I have a list of items that the user needs to select from. The user needs to be able to select more than one item. I'm getting the list of items from a secondary datasource (an xml doc).
Here's what the secondary datasource looks ...
-
Hi,
Try:
IXMLDOMNodeList oNodes = thisXDocument.DOM.selectNodes(''/my:PR_Form/my:Executers/my:Approvers/my:Approver'');
foreach (IXMLDOMNode oNode in oNodes)
{
oNode.parentNode.removeChild(oNode);
}
Regards,
Franck Dauché
InfoPathDev
-
Thank You Patrick. I think I am good for now.
VidetteP
-
This code for deleting rows from a repeating table doesnot work fine.
Could someone please help??
IXMLDOMDocument2 templateDom = (IXMLDOMDocument2)thisXDocument.CreateDOM();
templateDom.validateOnParse = false;
templateDom.load(''template.xml'');
templateDom.setProperty(''SelectionNamespaces'', ...