LightSwitch: Validating data on screen doesn't working RRS feed

  • Question

  • Hi,

    maybe someone could help me with my problem. The validation fires and the invalid data is identified with the red box (I have to press twice the save button, not idea why - I guess for the asynchronous calls -). However, when the data is corrected to pass the rule the property error does not clear. The red box remains around the field. Any idea what would be causing it not to clear?

    myapp.AddEditSet.created = function (screen) {
        function (e) {
            var accion = screen.Accion;
            var contentItem = screen.findContentItem("Descripcion");
            if (screen.taSet.Descripcion === "" || screen.taSet.Descripcion == null) {
                contentItem.validationResults = [
                new msls.ValidationResult(screen.taSet.details.properties.Descripcion, "This field is required.")];

    Friday, July 4, 2014 1:51 PM