-
Almost!
I changed the line to this and it works.
XDocument.DOM.selectSingleNode(''//dfs:myFields/dfs:dataFields/d:VendorSelect[@number = ''' + r + ''']/@quotenum'').text = quote;
However I get an error when I Insert a new record in the table. ''XDocument.DOM.selectSingleNode(...) is null or not an object.'' What could be causing that?
Also, ...
-
Hm, it must be different for databases. This works with XML as main DOM.
Try this:
XDocument.DOM.selectSingleNode(''//dfs:myFields/dfs:dataFields/d:VendorSelect[ @quotenum = ''' + r + ''']/@quotenum'').text = quote;
---------------
Matt Faus
InfoPath Dev Texas
-
Hello Matt,
Thanks for the response.
However, I get an error when I use that line of code. ''Site.parentNode is null or not an object''.
Any idea's?
-
Try this:
eventObj.Site.parentNode.selectSingleNode( ''@quotenum'' ).text = quote;
---------------
Matt Faus
InfoPath Dev Texas
-
What does your InfoPath form look like that is printing to these cards? I'm pretty sure this wouldn't be too hard to do by simplying tweaking the spacing between each ''card''.
One option would be to check out the Page Setup tab of the View Properties (double-click on the view in the views task pane). And play around with the paper size and page ...
-
To get the count of the number of records returned you could do this (substitute obj for XDocument if necessary):
var recordsReturned = XDocument.DOM.selectNodes( ''//dfs:myFields/dfs:dataFields/d:VendorList'' );
var numberOfRecords = recordsReturned.length;
For an easier way to get at the fields there are a couple shortcuts. Check out this ...
-
The only way that I can think of to do this is to make two different views. One page will be portrait and then the next landscape. You can change how each view prints by opening the View Properties dialog box by double-clicking on the view name in the Views task pane.
Other than that you could use the process described above and print one page ...
-
Erwin,
I think you are trying to limit the number of rows that a repeating table connected to a database displays. To do this check out these two tutorials for a much easier way to accomplish ...
-
I know this has been asked and answered many times, but I'm still having trouble relating the solution it to my situation.
I have a Lookup field in a repeating table. When someone enters a value in the the field, it goes out to a 2nd data source and returns data. I want the record in the table to be filled with these returned fields. However when ...
-
Hi Ann and welcome,
Should work with SQL fine and I believe Matt Faus just posted a related HowTo on master detail and query recently athttp://www.infopathdev.com/howto/tutorials/default.aspx?i=0bb37b4de44348408680a53a449f2353. Good luck!
Patrick Halstead [InfoPath MVP]
InfoPathDev