PDA

View Full Version : ‘ref’ issue



Baron89
24 Sep 2012, 11:03 PM
hi all,i have a problem about 'ref',my question is in the pic below,pls help to take a look at where went wrong38909

vietits
24 Sep 2012, 11:50 PM
Your label does not have conditionDisplayfield but ref. Also, ref is your custom property only. Label does not have its own ref property.

Baron89
25 Sep 2012, 12:21 AM
Your label does not have conditionDisplayfield but ref. Also, ref is your custom property only. Label does not have its own ref property.
I checked the API and found Label has ref property:-/

vietits
25 Sep 2012, 12:25 AM
Which Ext version do you use? As I known with Ext 4.1.1, Ext.form.Label has no config named 'ref'.

Baron89
25 Sep 2012, 12:29 AM
Which Ext version do you use? As I known with Ext 4.1.1, Ext.form.Label has no config named 'ref'.
Ext 3.3.138911

vietits
25 Sep 2012, 12:33 AM
Oh, sorry. This forum is default for Ext 4.x Q&A. You post in wrong forum. Move to Ext 3.x.

Baron89
25 Sep 2012, 12:37 AM
Oh, sorry. This forum is default for Ext 4.x Q&A.
how about 'displayfield'?i changed the xtype to 'displayfield',still cant get it via ref?

scottmartin
25 Sep 2012, 2:58 PM
You should just use:
this.conditionDisplayfield

Scott.

Baron89
25 Sep 2012, 7:20 PM
You should just use:
this.conditionDisplayfield

Scott.thx Scott,ur rite:D