-
Hi,
I have an order form that pulls all of its information from a web service. On the form I have textbox's that have calculated Default Values so that when changes are made in other textbox's the changes are recalculated. Everything works great when you make any changes that cause the Default Value to be recalculated. But where I am running ...
-
The reason you are getting the Node Test Expected error is because you need to specify which v1 you are trying to reference. Since the table is repeating you have several v2s (hence the sum(v2)) and several v1s. If the expression box is inside the repeating table row you should be able to use the function button on the expression box and Insert ...
-
Hi Guys
I have two tables. The master table has a value. Let's call it v1. The detail table has a value called v2. What I want is to display v1 - sum(v2) on an infopath form. What I have done is created an expression box to sum v2. However, there seems to be no way of referenceing this result in another expression box.
When I try the obvious of ...
-
Hi All
I have been designing a form which has around 15 optional sections on it so far. When I preview the form and click on one of the optional sections they all open up.
Has anyone come across this problem before? Not sure wether its important or not but most of the optional sections also contain repeating sections.
thanks
-
XPath is used to traverse the DOM of your schema.
If you made a blank new form and inserted one text field the XPath to get to that node would be:
''/my:myFields/my:field1''
Also, I'm sorry about the confusion, but instead of
XDocument.selectSingleNode()
it should be
XDocument.DOM.selectSingleNode()
I guess I forgot - my apologies!
Here is ...
-
In this line :
XDocument.selectSingleNode( ''XPath/To/Email/Node'' ).text;
I don't understant the ''XPath/To/Email/Node''.
I think it's about reference to the form but I don't know which reference I have o use.
Can you help me on this point?
BR
Pich
-
Check out this really cool article for more information:
http://blogs.3sharp.com/Blog/davidg/archive/2005/08/12/920.aspx
---------------
Matt Faus
InfoPath Dev Texas
-
You might be able to do this using XPath, but I think using SQL statements would be easier.
Using the SQL information and code I listed above your psuedo-code for onLoad will look like this:
*Query the database to get the first 2 records (use ORDER BY 'id' DESC LIMIT 2)
*set currentID to the first ID returned
*set nextID to the second ID ...
-
Matt,
Any idea on how to retrieve the next record ID and previous record ID? I have tried using preceding-sibling and following-sibling with no success.
Thanks.
Ann
-
If the last name and first name are split into two nodes, such as firstName and lastName, then you can set the drop-down to use firstName as the Display Name and lastName as the Value. This way, when you set your textbox to reference the drop-down it will get the Value.
---------------
Matt Faus
InfoPath Dev Texas