-
You will have to change your XPath to include use of the current() function. I'm not sure how your schema is laid out, but this might work:
xdXDocument:GetDOM(''Company Mileage'')/dfs:myFields/dfs:dataFields/dfs:Company_Mileage/@Mileage[(../@Company_Name = current()/my:Mileage/my:Client_Name) and (current()/my:Mileage/my:Override_Mileage != ...
-
-
Matt,
The drop down list works fine, it's the Miles control that is duplicating miles for the second company. I can send you the form if you'd like.
Thanks,
-
Many thanks, should have spotted that myself ;-)
-
Hi Taffman and welcome to the forum!
This has been discussed many times here on the forum. There is a search box in the upper right corner of the page that would be helpful, but here's a link to start:
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2169
-
Yeah the forum thinks that the period at the end of the sentence should be used in the URL. Try this:
http://www.infopathdev.com/howto/tutorials/default.aspx?i=075c4e8e56db4fa5bd63615b712c0d91
-
I've created a repeating table to create an bill of materials.
I have an expression box as the last field in each row that calculates the product of ''Quantity'' and ''List Price'' to give ''line item total''.
I now want another expression box in this and another view that evaluates the sub of all the ''line item total'' fields to produce a total ...
-
This link is broken!
quote:Originally posted by Patrick Halstead
it's probably the xpath filter when you are setting the values. There have been at least 10 posts on how to do this. You need to use the current() xpath function. Check out Greg's HowTo on cascading ...
-
Further to my last comment I must add that the original code did not even change the view.
Once I removed the return(i) the view changed but text was not copied to the cloned row.
-
Hi,
What I try today is to make an optionnal section but link to my secondary datasource not to the primary.
I have try to modify the schema of my 2nd datasource but nothing to do infopath will not insert a optionnal section when I drag and drop my optionnal group of my 2nd datasource Infopath will only insert me section or controls!
Is there a ...