-
If you are opening new form from code then you, you will have a reference(XDocument) to the newly opened from in the old form. You can set values in this new forms reference(XDocument).
If you just have a link in the UI then you will not have referece to the newly opened form, so will not be able to populate the data.
-
Hi Mike,
Welcome to the Forum!
There is a tool up in the site which publishes to multiple location at same time.http://www.infopathdev.com/webstore/detail.aspx?itemid=21
-
Hi,
Welcome to the Forum!
If you are using sharepoint to submit forms to then sharepoint itself creates sequential ID for each form submitted. You can use this ID, get it and set it in your form.
You can get this using lists.asmx webservice of sharepoint. Search in the forum and InfoPathdev site, about how to get a value from sharepoint using ...
-
Hi,
There are three things that you can do here
1. Insert 5 rows in the template.xml manually
2. Change schema so that minoccurs of the node is 5.
3. Do it in the code, check if there are five nodes and if they are not there insert them.
-
Hi Patrick,
Welcome to the board!
InfoPath by default removes foreign code from the XSL when ever the view is changed. If you dont want this to be done you need to use xd:preserve code block.
Tknow more about ''xd:preserve'' look at http://www.infopathdev.com/howto/tips/default.aspx?i=ae7e79f32dcf4aa4a5f511883ebd8149
-
There is a How-To written by Greg on how to populate dropdown from codehttp://www.infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbddc7db724202
-
Hi Vasanth,
1. First create a HTML page with ''File'' control.
2. Add this HTML page as Resource file.
3. Go to ''Tools->FormOptions->Advanced->Select 'Enable Custom Taskpane'
4. Select your HTML page in the dropdown.
5. Click ok.
You can get reference to the XDocument in the taskpane with the following line of code ...
-
Hi Vasanth,
You can add a File dialog control(HTML) to your task pane and ask user to click on the button to open the file dialog and select the File URL. You can pass this value to the Webservice and then get the result from the webservice.
-
Sorry for miscommunication above, for 2ds InfoPath does not allow file control.
This is how InfoPath File Control works, When you add a File Control to the UI, InfoPath will have a reference to this control in the Manifest.xsf. Here is how it maintains the ref:
<xsf:xmlToEdit name=''field1_1'' item=''/my:myFields/my:field1''>
...
-
This should help you, just remove '$'
''file://systemname/d/uc/abc.xml''