Problem:
When you blank out data in InfoPath using JScript, you would probably use the following method.
XDocument.DOM.selectSingleNode("my:xpath/my:node").text = "";
Above code works well when “my:node” is of data type String. If the data type is Number or Date, above code will work but on the user interface you will see an error “Only integers allowed.” and “Only date allowed.”
Read more…
Error:
If you are trying to get/set values using XPath on Secondary Data Source, you might get the error “Reference to undeclared namespace prefix: dfs”.
Cause:
When you are trying to use XPath expression on Secondary Data Source, you must have to declare the namespace that is going to be used in the code. By default, InfoPath does NOT add namespace for Secondary Data Source. You have to add it manually.
Resolution: Read more…
Last year I purchased Western Digital 360GB external USB harddrive. I tried to copy a big file but it said that I don’t have enough space on my hard disk. I wondered why it was throwing an error as I had enough space on my external drive and also computer drive (in case copy command need it for buffer????) I searched internet and found that if the hard disk is formatted as FAT32, it will not allow the file greater than 4 GB size. So what is the solution? Read more…
I had an application in which I had a code like
Dim qdf as QueryDef
qdf = new QueryDef("Query")qdf.execute
The query was not running because of error but the application was not breaking at the time of error generation. To force the application to break/throw exception write the statement like
qdf.execute dbfailOnError
and by this way we can catch all errors.