I am trying to create a form that extends a template form (done in the designer: name is contained in template_frm).
In the following snippet child_frm is a string, servername and tableName are strings and all are valid.
var child_frm = template_frm + '_sub';
var subForm = solutionModel.newForm(child_frm, serverName, tableName, null, false, 0, 0);//ignore width and height
subForm.extendsForm = solutionModel.getForm(template_frm);//TODO this fails to extend the form - why?
After this code the subForm.extends remains null.
Under what circumstances will the “.extendsForm” fail silently?
Note neither form has been loaded nor shown prior to this code executing.
(Servoy 6.0.0)