I have a report with several fields, one of them is an optional field with label.
The printable property for the label is currently set to Yes, but I would like to set it to No; then at runtime change it to Yes if the notes field has data.
Any suggestions on how to change the printable property at runtime when a field has data?
This looks like it should work, however I need the label to print only if a different field (note) has data - if the field has no data then the label should not print
var _jsForm = solutionModel.getForm("printForm");
var _jsLabel = _jsForm.getLabel("label");
var _jsNote = _jsForm.getComponent("note");
if (_jsNote != null){
_jsLabel.printable = true;
}