-
Hi Delu,
Welcome on board!
You dont need a hidden listbox binded to the datasource for this, you can directly loop through the datasource for doing this.
Search for ''selectNodes'' keyword in the forum you will find lot of posts which specify how to loop through the the reapeating nodes.
Agni
InfoPath Dev India
-
Here are the steps
1. Add a button control.
2. Double click on the button control and click on edit form code.
3. Write code that you want.
4. Now call ''thisXDocument.Submit();''
Agni
InfoPath Dev India
-
When you take a secondary dataconnection to DB you won't have queryFields. You will just have dataFields. This node will contain the rows returned by your DB.
Starting from your redline to ''obj.Query();'' should be replaced with the following lines of code
var adoAdapter = thisXDocument.DataObjects[''asdd''].QueryAdapter;
//Below you should ...
-
Hi Lewis,
You need to do setProperty of namespaces on your obj.DOM. Namespace is something which is prefixed before the node.
For ex:
obj.DOM.setProperty(''SelectionNamespaces'', ''xmlns:dfs=\''http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\'' xmlns:d=\''http://tempuri.org/\'''');
Agni
InfoPath Dev India
-
Hi Pich,
Welcome to this wonderful Forum!
Thanks for encouraging us, We want to keep up this work and we can make this forum even better if people like you contribute by aswering to some of the posts.
Agni
InfoPath Dev India
-
Hi turboy,
Do you want to close the form after saving the file? In that case you can enable file save option in form options and call ''thisXDocument.View.Window.Close(true)'' method. When close() method is called Save dialog will automatically come up.
I dont think that there is any other way of doing this. Probably you can call some ActiveX ...
-
Add following lines to your node defination. Study the lines it is specifying type for your node. If it is of the following type then only you can add a richtext box to that control.
<xsd:complexType mixed=''true''>
<xsd:sequence>
<xsd:any minOccurs=''0'' maxOccurs=''unbounded'' namespace=''http://www.w3.org/1999/xhtml'' ...
-
Hi Adam,
You cannot disable a child controls depending on the conditional formatting set on the parent control.
If you need to implement that feature then
You need to create two sections one with controls enabled and the other with disabled. And show the enabled/disabled section depending on the conditional formatting.
Agni
InfoPath Dev India
-
Hi,
Did you check out the type of the field in the schema? It should be of
<xsd:element name=''sss''>
<xsd:complexType mixed=''true''>
<xsd:sequence>
<xsd:any minOccurs=''0'' maxOccurs=''unbounded'' namespace=''http://www.w3.org/1999/xhtml'' processContents=''lax''/>
</xsd:sequence>
...
-
Hi Dblank,
Try accessing your script file from taskpane code.
Please let us know if it works.
Agni
InfoPath Dev India