You searched for the word(s): 12
-
Sorry my apologies. I see you are using script and not managed code. I have not used InfoPath scripting. Initial questions that spring to mind are;
* is the thisXDocument object definatly set?
* does the eventObj parameter provide the XDocument?
Sorry i cant be of much more use. Cheers. Scott.
-
Well actually the code I am using is:
Dim GMSRef
GMSRef = ''abc.xml''
which produces the original error about thisXDocument
If I use
Dim GMSRef As String
GMSRef = ''abc.xml''
or
Dim GMSRef As String = ''abc.xml''
it fails to even open the form:
quote:
InfoPath cannot open new blank form.
InfoPath cannot open the selected form because of an ...
-
Hi. Again just a sanity check. Your code is - DIM GMSRef as string = ''abc.xml'' Cheers. Scott.
-
Hi. That is correct, assuming you do not use any of the framework dlls in your JScript. Cheers. Scott.
-
I changed the value of GMSref to abc.xml
GMSRef = abc.xml
'GMSRef = thisXDocument.DOM.selectSingleNode(''my:myfields/my:field5'').text
The error message changed, only now instead of saying object required is 'ThisXDocument' it was now requiring object ''abc.xml''
-
Hello
The field does exist and hopefully I am referencing it correctly. In looking at the datasource (main) I have a folder myfields, within it I have the field called field5 which is expecting a string - it has validation ensuring that the field is not left blank.
I simply added a series of text boxes etc and accepted the default names.
I ...
-
O.K!!!! Now I get it!
So, If I want to avoid install .NET Framework on client I need to write my code in JS editor. Am I right?
-
I want to be able to set the query parameter of the webservice.so I have done this:
Dim fieldValue
fieldValue = thisXDocument.DOM.selectSingleNode(''/my:myFields/my:field3'')
'Get a reference to the Web Service data connection
Dim theDataObject
theDataObject = thisXDocument.DataObjects.Item(''GetPatientCDA'').DOM
'Set the SelectionNamespaces ...
-
I would suggest extracting the files and then looking at the mainfest.xsf at line 1590. Sometimes even though its not the manifest that contains the error we get the same message the search all of the files for the text PrintOut and see if anything looks incorrect.
You can use Extract.exe ...
-
Hello
This link should give the appropriate info on how to use preceding-sibling and following-sibling to get your scenario to work.
http://www.infopathdev.com/howto/tips/default.aspx?i=2d9c464bbf4146ae91bf66395dca34ad
Shanthi
InfoPathDev India