Announcement
Collapse
No announcement yet.
X
-
This will differ depending on the formItem type and exactly what appearance you're after, but you'll probably want to modify the TextBoxStyle of your formItem.
An explicit markForRedraw() of the form may be required to pick up the changed style.
Leave a comment:
-
I'm struggling with exactly how to mimick the Hilites feature on a DynamicForm. What api is is that lets you dynamically set the text color, for instance, based on a condition in the record the form is displaying, the way Hilites do?
Leave a comment:
-
Hilite functionality is shared by multiple DataBoundComponents so it's being inherited, but is inapplicable in this case.
Leave a comment:
-
Thanks for your quick reply, this will save me a lot of time spent in searching for nothing. Just one question then, why a setHilites() method on DynamicForm?
BTW thanks for providing such an amazing library.
regards, Ben
Leave a comment:
-
DynamicForm does not current support Hilites, however, you can achieve a similar look via the various formatting APIs available on FormItems.
Leave a comment:
-
Hilite and DynamicForm
Hi,
I am trying to make hiliting work on my DynamicForm. I define the following hilite:
and set it to my DynamicForm viaCode:private static Hilite[] orderStatusHilites = new Hilite[] { new Hilite() {{ setFieldNames("_mandays_delta"); setCriteria(new Criterion("_mandays_delta", OperatorId.NOT_EQUAL , 0)); setCssText("color:#00FF00;background-color:#FF0000,font-weight:bold;"); setId("0"); }}, };
form.setHilites(orderStatusHilites);
_mandays_delta field is bound to a FloatItem in my DynamicForm
it does not work like this, am I missing something? There is an example in showcase with ListGrid but no on DynamicForm. Could you please post a small example that works on a dynamicform.
Thanks, Ben.Tags: None
Leave a comment: