1. #1
    Sencha User thenevermore's Avatar
    Join Date
    Nov 2012
    Location
    Bandung , Indonesia
    Posts
    10
    Vote Rating
    0
    thenevermore is on a distinguished road

      0  

    Default 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 :
    Code:
    $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';
                    }
                }
    Regards

    Nice To Meet You All
    1 second ago · Like · Add as Friend





    Thanks for Visiting My thread?

  2. No, you can't. Instead, just hide the field using the hide method.

  3. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,050
    Vote Rating
    657
    Answers
    471
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    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!

  4. #3
    Sencha User thenevermore's Avatar
    Join Date
    Nov 2012
    Location
    Bandung , Indonesia
    Posts
    10
    Vote Rating
    0
    thenevermore is on a distinguished road

      0  

    Default


    Quote Originally Posted by evant View Post
    No, you can't. Instead, just hide the field using the hide method.
    Thanks evant,
    that's worked,,


Thread Participants: 1