-
In InfoPath 2007, addDays(today(), -1) should work.
In InfoPath 2003 you will most likely need to use code.
-
It seems like you want some text in the form that always shows the same message, but sometimes has different formatting. Is that correct?
If so, it would be easiest to split it into separate expression boxes on separate lines, and then apply conditional formatting to all of them. Would that do the trick?
-
You can use ordinary DOM manipulation to do this easily enough. If you're using a button inside th repeating section to do this, you should be able to just use this code in the button's event handler:e.Source.parentNode.removeChild(e.Source);If you want to have a single button somewhere outside the repeating section, you'll ...
-
If you're using the 2007 VB object model, this is the general idea. You'll need to adjust the underlined parts to suit your solution.:
' Retrieve a reference to the repeating node's parent
Dim repeatingNodeParent As XPathNavigator = _
...
-
Just use relative XPath selection like in my earlier post.
So visualizing that your XPathNavigator is positioned at the my:GROUP_1MM_sub node, you have to use ".." to move up several levels of the data source tree before going down again: XPathNavigator group1CM = myNode.SelectSingleNode("../../my:GROUP_1CM", ...
-
You can also create a URN-based solution by having the InfoPath form as an installable form (.msi), though this requires users to run the installer before they can use the form.
I believe this also requires the full version of Visual Studio as well.
-
The trouble is that you're using "/my:myFFIM_base_table/my:Species_Records/my:SpeciesGroup/my:SPECIES_ID"instead of "../../my:SPECIES_ID"like I suggested
-
Then something's not quite right with your code. Could you attach an actual screenshot of your datasource, and the actual code you have tried so far, including the part to retrieve the specieID?
-
I'm still not sure exactly what the problem is. Are you saying you don't have access to the Species ID when you find a weight/length ratio that violates the constraint?
If so, you should be able to get at the current id within that while loop with something like: myNode.SelectSingleNode("../../my:Species_ID", ...
-
You should be able to use XPath to accomplish any validation that you need. If you could provide a diagram of your data source and an example of what kind of validation you are trying to perform, one of us can show you an example of the sort of code to use.