Announcement

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

    How to reset default properties?

    SmartClient Version: v8.3p_2013-06-19/PowerEdition Deployment (built 2013-06-19)

    In our application, the user can set the day of the week for the application (and the date chooser). When they do this, we execute code like this:

    Code:
    DateChooser chooser = new DateChooser();
    chooser.setFirstDayOfWeek( value );
    DateChooser.setDefaultProperties( chooser );
    Which works fine. The problem comes if they change it again and we again call setDefaultProperties, the change does not take effect.

    I expect this is because the underlying code calls $wnd.isc.DateChooser.addProperties(properties);, which doesn't sound like it overrides any existing default properties.

    Is there a way that default properties can be reset or overridden?

    Thanks!

    #2
    Yes - reload the page. For certain fundamental changes, like a locale or skin change, there would a lot of complexity and vanishingly small value in being able to change it on the fly, so reloading the page is the approach that's required.

    Comment

    Working...
    X