-
Hi,
When you take a dataconnection to an XML file, then InfoPath recognizes every thing as a string, even FileAttachment. So you need to change your schema so that the fields type is changed to Fileattachment.
-
Hi,
You can get the child nodes using the ''child::node()'' Xpath.
node.selectNodes(''child::node()'').length should give you the length of the child nodes.
-
Hi Mario,
You need to convert the Adapter into apropriate type and then call ''Submit'' on that.
For ex: If it is a Webservice adapter
WebserviceAdapter2 xyz = (WebserviceAdapter2)thisXdocument.DataAdapters(''Whatever'')
xyz.Submit()
Similarly for all the ''Adapters'' you need to convert to its actual type and then call submit on that object.
-
'User names' on 'User roles' use network names. They do not use Sharepoint usernames. Infopath takes the loggedin user names not the username with which he is recognised in sharepoint.
-
Verify the XML that you are opening contains ''<?mso application=”Infopath.Document”>''. If does not you can insert it.
If you have it in the XML and stil think that InfoPath is removing it, you can add the PI in the code. Here is the code to do it,
string sAttachmentPI = ''mso application='Infopath.Document''';
string sDomXML = ...
-
Hi Dave, Welcome to the Forum!
If you can increase the size of the field in the database then take connection to that table again, then you should be able to accept more than 256 characters.
-
For Full Trust: Tools->FormOption->Security, there you can set full trust. But full trust is not advisable unless until it is necessary. Instead you can take dataconnection to your webservice.
InfoPath will refer to the DLL in the manifest.xsf file. You can open manifest.xsf and search for ''.dll'' there you find dll of your project.
-
Third option basically looks for usernames listed in the form. For ex: You have a list of users in your form and want to give permision to those people then you can select the field where the user name is set in the third option.
I think regarding the network I think it needs your machine to be there in network because it has to look for users in ...
-
Hi vasanthaprabu,
How are you accessing the Webservice, through a dataconnection or did you add a webreference to your project?
If it is a Webreference then you need to give full trust to your form.
-
Hi Oguz, After a long time :)
Is your machine in the network?
Can you try the third option ''UserNames in the form'' and see if that works?