-
18 Nov 2012 8:10 PM #1
Answered: [ASK] Is possible to change xtype via function..?
Answered: [ASK] Is possible to change xtype via function..?
Dear all ,
i want to ask you something,
i have a session's item. if session is not empty then mymodule's xtype is changed..
is that possible..?
here's the example :
RegardsCode:$beksit = $_SESSION['idbacksheet']; skip..skip..skip.. doCekBeksit: function(){ var nobeksit = '$beksit'; if(nobeksit <> '') { nfp.form.findField('$ModuleName'+'textBS1').xtype = 'hidden'; nfp.form.findField('$ModuleName'+'textBS2').xtype = 'hidden'; } else { nfp.form.findField('$ModuleName'+'_bukaloket').xtype = 'hidden'; } }
Thanks for Visiting My thread?
-
Best Answer Posted by evant
No, you can't. Instead, just hide the field using the hide method.
-
18 Nov 2012 11:39 PM #2Sencha - Ext JS Dev Team
- Join Date
- Apr 2007
- Location
- Sydney, Australia
- Posts
- 15,067
- Vote Rating
- 96
- Answers
- 166
No, you can't. Instead, just hide the field using the hide method.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
19 Nov 2012 1:20 AM #3


Reply With Quote
