method validate

bool validate();

Argumente

Zurückgegebener Wert

This method validates the data for this binding. For a binding to be valid, it must have a target and a validator. The validator is executed and the result is returned.
function onSample()
{
    var box  = scene.getBoxById("myBox");
    var binding = (box) ? box.getDataBinding("value") : null;
    if (binding)
    {
        if (binding.validate())
        {
            shell.print("validate successful!!!!");
        }
        else
        {
            shell.print("validate failed!");
        }
    }
}