-
Keep in mind that all values are stored as text in the XML file... It is the schema that determines the data type of that text value.
So, when you enter ANY value from code, you do it the same way:
thisXDocument.DOM.selectSingleNode(''my:node'').text = ''999''
Hope this helps.
-
Hi. Welcome to the forums. I'm not sure that this is possible -- does anyone else know if it is?
-
Your not checking anything with your use of current().
You need to perform some sort of comparison:
[@Line = current()/@Line]
or something. . .
-
The first line gives away the issue: System.Security.SecurityException
Sounds like your form is going to need to be full trust for your code to work as it is written
-
Sorry, there is no XPath for this.... you will need to use code to determine your conditional formatting in this case. The code is requried to figure out the 48 hour difference.
-
If you are using InfoPath 2003, then you can export for form files (see File menu) and then look at the manifest.xsf file. That's where the rules are stored. Conditional formatting is another story, as this is stored in each view .xsl file, at the specific location where the condition is entered. Good luck on that!!
If you are using InfoPath ...
-
The easiest way to do what you want is to first create your condition on a field that is NOT in a preserve code block -- then look at the restulting XML and copy it to your field that IS in your preserve code block.
-
I think you might have missed drgkreddy's point... you don't have to write code if you use the built in date formatting.
If your field is of type ''date'' or ''date and time'' then you just need to go into the field properties (i.e. double click the control), and then on the Data tab, click Format. From here you can select how your generic date ...
-
You must use a 3rd party tool for this, or use InfoPath 2007 -- but even IP2007 will requrie a forms server to be installed on the backend, while the frontend is just a browser.
Otherwise, you will need to go through the DHTML work to make all the fields editable, etc., and tie into a backend storage system--not a pleasant thought!
-
Your explanation is somewhat confusing. Are you saying that the value 1 is sotred in B and the value 2 is stored in C, etc.? If so, where does Text1 and Number1 come from?
What it kind of sounds like you are asking is for the ability to have multiple tables bound to the same set of data nodes, and each table only showing a few of the fields. If ...