1. SmartClient Version: 3.1p.2013-04-24/PowerEdition
2. FF20.0
Hi,
we're using the setShowIfCondition on some element to decide dynamically if the element is visible or not:
formItem.setShowIfCondition(new FormItemIfFunction() {
@Override
public boolean execute(FormItem item, Object value, DynamicForm form) {
return DUMMY_RADIO_GROUP_VALUE.equals(radioButton.getValueAsString());
}
});
It works fine when we're expanding/collapsing a SectionItem (named advancedSection) in which this element is a memeber.
Now we're changing the value of the readio button programmatically whitout any user interaction and want to fire this method to determine the visibility of the element, for this purpose we tried:
-form.markForRedraw
-advancedSection.redraw
-advancedSection.formItem.redraw
but none of them made the showIfConditions to do their job.
Is it a frimework bug and if not could you please give us a hint how to do it right?
Thanks,
zapryano
2. FF20.0
Hi,
we're using the setShowIfCondition on some element to decide dynamically if the element is visible or not:
formItem.setShowIfCondition(new FormItemIfFunction() {
@Override
public boolean execute(FormItem item, Object value, DynamicForm form) {
return DUMMY_RADIO_GROUP_VALUE.equals(radioButton.getValueAsString());
}
});
It works fine when we're expanding/collapsing a SectionItem (named advancedSection) in which this element is a memeber.
Now we're changing the value of the readio button programmatically whitout any user interaction and want to fire this method to determine the visibility of the element, for this purpose we tried:
-form.markForRedraw
-advancedSection.redraw
-advancedSection.formItem.redraw
but none of them made the showIfConditions to do their job.
Is it a frimework bug and if not could you please give us a hint how to do it right?
Thanks,
zapryano
Comment