-
Your refresh button refreshes your secondary data source. The controls on your form are bound to your main data source. I see the form has code, so I'm going to guess you are copying the data from your secondary data source into the main data source. If you simply want to always have the latest from the secondary data source show, bind your ...
-
Hi, Catharine:
It shouldn't matter if this code runs from a field's changed event or a button. What line do you get the exception on? I'm assuming in the DbxlSubmit class....probably in the submit method, since your error message starts with "An exception occurred submitting the document..." Did you add the compiled .dll to ...
-
What event is your code in? This error sounds like what we'd see if we ran code to set a field's value in a changing or validating event rather than in the changed event. See this post for a bit more detail.
-
Hi -- I'm confused. What is your repeating table bound to? Your secondary data source? I'd expect this to always show the data as it is in the original data source. Thus, if you have a repeating table on your form that is bound to a data source that receives data from a SharePoint List (for example) and you change values in the fields in ...
-
Are you using IP 2003 or 2007? Do you want the Price_per_kg to be a calculated default? Or is its value set by a rule on the Material_Name?
-
Did you change the trust settings accidentally in the Tools / Form Options / Security?
-
Glad to hear it! Have a great weekend!
-
When you reply, there is an Options tab. You'll find a place there to attach a file.
-
No, "Test" is just a string that I was showing as a sample. You'd want to create a string variable with data from your original form (thisXDocument.DOM.selectSingleNode("xpathToNode") etc). And yes, the made up XPath in the newFormDom's selectSingleNode method would be to the field you wish to set.
-
Save your target form (the one you want to open in your code) as source files. Open up the template.xml in a text editor and look for the namespace declaration -- if you created the schema while building the template, it is probably the "my" namespace and looks like ...