Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Force FormItem.setShowIfCondition check

    I'm trying to hide a FormItem and some other widgets when the FormItem's value is null using the showIfCondition.

    I set a breakpoint in FormItemIfFunction.execute() and it stops there after calling ValuesManager.fetchData() but the value argument passed to execute() is always null (also, item.getValue() is null) even if there's actually a value shown if I don't set the showIfCondition.

    The documentation for showIfCondition says it does the check when the FormItem gets drawn or redrawn but even if I call redraw() on the FormItem, it still doesn't execute the ShowIfCondition. When does the showIf condition get executed?

    Using SmartGWT 9-28-10 nightly (schedule doesn't permit updating yet) on IE7.

    #2
    We have automated test verifying that the ShowIf function is called as advertised, we can only guess that you hit an overnight regression on 9/28. If you think it might still be an issue that just isn't covered by our tests, you could create a test case we can look at, but your time might be better spent just doing the upgrade.

    Comment

    Working...
    X