-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to use variables for min
, max
, etc.
#309
Comments
When done, also update this doc. |
This should be much easier with the new and improved model variable resolver. |
This also makes sense for repeated |
+1 from me as I was writing an example |
See #2910 for a function to access the value of a control. |
In an example, I tried to use Here again, a Form Runner function would help. |
+1 from customer who hit the use case mentioned earlier by Erik, and expected to be able to refer to the value of a control when setting the min/max number of iterations in a grid. |
+1 from me for |
See also:
With #2910 implemented, what would it take to make this work? We would like that:
Q: How can we do this translation? Parsing and rewriting XPath expressions is not hard, but round-tripping to a string expression is not reliably possible with Saxon. One possibility is to do the rewrite at XBL processing time, at least for <xf:var name="min">
<xsl:copy-of select="namespace::*"/>
<xxf:value value="$repeat-context-outer/xxf:evaluate-avt($min-avt)" xxbl:scope="outer"/>
</xf:var> But we should probably use So which code should do the rewrite of the expression? Should UPDATE: By "local variable" I guess I meant something like Should other Form Runner code do the translation when assembling the form?
|
Another way to look at One issue with this is to handle backward-compatibility. Form Builder would have to read the |
For |
min
, max
, and other formulas
After discussion with @avernet, handling |
Similar requirement for dynamic LHH(A) formulas to be able to refer to variables. See #3807. |
+1 from customer to make variables visible in the view, so we can use them in templates |
+1 from user who would like to be able to refer to the value of another field with |
In the model,
|
So now, in the view, Added a clarification section in the doc about the variable notation and what it does. |
In email templates, "The Form Runner function library is not in scope in this XSLT", and right now we use |
- incorrect call to `frf:replaceVarReferencesWithFunctionCalls()` - handling of `$fr-lang`
Updated the documentation about renaming. |
This is a feature that the data-bound select1 calls for. It would allow form authors to easily create linked data-bound select1 control in Form Builder, e.g. (LHHA and table cells removed for clarity):
Without bind names exposed as variables, form authors need to know what the structure of the XML is to refer to the value of another field.
The text was updated successfully, but these errors were encountered: