I am trying to call a method to change an Item to/from read only status based upon data in the record being loaded in the Form. I have the following method to mark say a TextItem as ready only:
When i call that method I get the following warnings:
It works but the warnings lead me to believe I am not doing this correctly. Any suggestions/advice?
Using: SmartClient Version: v10.1p_2017-03-11/Pro Deployment (built 2017-03-11)
Code:
public void markReadOnly() { setCanEdit(Boolean.FALSE); setCanFocus(Boolean.FALSE); setTextBoxStyle(TEXT_ITEM_READ_ONLY_STYLE); }
Code:
08:47:50.130:XRP1:WARN:configProperties:FormItem.setCanEdit(): unable to apply the Boolean argument to the FormItem instance because the instance was previously used to configure the properties of another Object 08:47:50.130:XRP1:WARN:configProperties:FormItem.setCanFocus(): unable to apply the Boolean argument to the FormItem instance because the instance was previously used to configure the properties of another Object 08:47:50.130:XRP1:WARN:configProperties:SelectItem.setTextBoxStyle(): unable to apply the String argument to the SelectItem instance because the instance was previously used to configure the properties of another Object
Using: SmartClient Version: v10.1p_2017-03-11/Pro Deployment (built 2017-03-11)
Comment