-
Notifications
You must be signed in to change notification settings - Fork 218
In view, label of date and number fields isn't read #6707
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
Comments
In both cases, we use The handler for
I was thinking that alternatively, we could have the static-readonly detection be semi-statically-detected: when we build the subtree for the component, if we knew the So could we link two or more controls/elements with |
I updated the title and example to show that this problem also occurs with the number field. Hopefully, the solution for both the date and number fields will be the same. |
We store a single
However, if we restrict what
Thinking about this, I am not sure it will work given the number of cases to handle! And annoyingly, we would be implementing this just to handle two exclusive branches: regular, and static-readonly. It does not, for now at lesat, satisfy other valid use cases, and that would come at the price of complexity. Can we explore the alternative of updating components with a static-readonly annotation? What it would take:
|
In this Gist I show which bindings based on attributes we have right now for the Controls form. We bind on:
|
So we do have the ability to match on different attributes, just a single attribute at a time. The code does check all attributes of the element for a match. |
Issue: right now we determine
The mode as known by XSLT and the mode as known by XForms can differ:
(Based on this, testing on
The latter two are annoying, because that means we depend on parameters and method. Does that mean we'd possibly generate two different compiled forms depending on whether we are doing a |
After further discussion. I dislike the first approach of supporting multiple references for The annotation approach might be better, but it is work. In the longer term, we don't want the PDF template to work the way it does (#1573). But in the meanwhile, it is probably ok to modify
|
One issue with
|
|
In protected def handleLabel(lhhaAnalysis: LHHAAnalysis): Unit =
handleLabelHintHelpAlert(
lhhaAnalysis = lhhaAnalysis,
controlEffectiveIdOpt = XFormsBaseHandler.isStaticReadonly(currentControl) option getEffectiveId,
forEffectiveIdWithNsOpt = getForEffectiveIdWithNs(lhhaAnalysis),
requestedElementNameOpt = XFormsBaseHandler.isStaticReadonly(currentControl) option "span",
control = currentControl
) On the other side, we use |
Discussion with @avernet: with the current solution, the decision about whether to show a static readonly date or time, due to the native picker logic, is taken externally from
and have the binding selector use the combination of these extra attributes to make the decision. |
- they would NPE if there was no query string
Included in 2024.1.1. However, a backport to 2023.1.x might be too difficult. |
I removed this from the 2023.1.8 project. |
…are not filled" - regressed with #6707
See how how, for the first control, the
<span>1/14/2025</span>
is missing a number of thearia-
attributes, while those are present to<span>52</span>
for the second control.Form in Form Builder on demo
+1 from customer
The text was updated successfully, but these errors were encountered: