Hello,
First off, many thanks to the site maintainers and InfoPath experts who have already (unknowingly) helped me on dozens of issues that I've had so far. These forums and tutorials are invaluable.
That said, I have come across an issue that I'm afraid I've run out of resources to try to fix. Here's the setup:
I have a repeating table that keeps a list of individuals (and is used throughout the form). On one view, the form user is asked to assign each individual to one square in a nine square box (via radio button). I have then been asked to create a print view of that nine square box that lists out the names of the individuals assigned to each of the boxes. Each of those names should be a separate line.
Based on
http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx, I have managed to get as far as creating a list of all individuals. My next step is to filter the full list of individuals and display only those individuals that were selected for the single square.
In a text box, I have the following code (which does not filter at all):
xdMath:Eval(xdMath:Eval(../my:associates/my:individual, 'concat(my:profile/my:name, xdXDocument:GetDOM("characters")/characters/@cr)'), "..")In order to filter, I used the following:
xdMath:Eval(xdMath:Eval(../my:associates/my:individual[my:profile/my:matrix_assignment_code = 'kc'], 'concat(my:profile/my:name, xdXDocument:GetDOM("characters")/characters/@cr)'), "..")This causes an error:
quote:
MSXML5.DLL
Reference to undeclared namespace prefix: 'my'.
Error occurred during a call to property or method 'Eval'.
If I remove the "kc" and simply have it check for the existance of the node (or that it is empty), the formula verifies properly, but of course, it no longer filters the names as required.
So the question.... is what I need to do possible with the way I'm using eval()? It seems like eval() places some restrictions on how filtering can be done (or it's just buggy--but I would never presume). Alternatively, should I just use code to do this and quit trying to turn a text box into a nuclear reactor?
Any suggestions or explanations would be helpful. Thanks!