-
If the command you want to use is just static text (i.e. it doesn't use concat() or anything like that), I wouldn't advise using the formula editor to build up the command. You can just type it directly into the Value: box of the Set Value dialog. If it's a particularly long command, you can build it up ahead of time using ...
-
It seems there's an issue with your image, but the answer is yes, you can. The and and or operators in XPath are and and or.
/my:myFields/my:FirstField = 5 and /my:myFields/my:SecondField = 7
-
I doubt that there's a decent codeless way to do this in 2003. Does it have to be 30 days? Would just incrementing the month be sufficient?
-
Unfortunately, there isn't a completely codeless way to do this. However, qRules provides functionality to do this (and a lot more) and can save you from having to write any of your own code.
-
No, resp will only equal the value it has. You can't assign it a new one mid-formula. This would work for obtaining a 1 when resp has one of those values and 0 if not:
number(boolean(resp1[. = "Discrepancy" or . = "Finding"]))
but that's pretty verbose. The approach in my previous post ...
-
The expression resp1[. = "Discrepancy" or . = "Finding"] = 1 will evaluate to 1 if resp1 is equal to 1 and 0 if resp1 is equal to 0, but since resp1 will never have the value "1", this will always evaluate to 0.
How about this expression:
count((resp1 | resp2 | resp3 | resp4)[. = 'Discrepancy' or ...
-
Typically position() is used with no arguments, but I think there's a high likelyhood that it won't be of any help in this situation, no matter how you use it. Though it will make the formula even uglier, I think Anson's preceding-sibling:: suggestion is probably the way to go.
-
I don't think this has anything to do with the datatype, and I wouldn't necessarily call this a bug, but I agree it is a bit confusing the way this feature is presented. Due to the way InfoPath forms work, default value formulas can only be defined for all instances of a field in a repeating group. If you use static values, ...
-
When a form uses qRules, the qRules functionality is all built into the form template (XSN) so users do not have to have anything special installed on their systems (aside from InfoPath of course) in order to use the forms.
-
The default values dialog should allow you to set different values in each row. Have you given that a try? We always suggest avoiding using unnecessary code.