1. #1
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    -1
    Riaz is an unknown quantity at this point

      0  

    Default Unanswered: How do I call?

    Unanswered: How do I call?


    I have following code.

    In jsEntryTimesheet.js
    Code:
     var x = new Ext.form.FormPanel({
    :
     });      
    
    
    Ext.reg("jsEntryTimesheet", x);
    And in jsTimeAndExpenses.js
    Code:
    btnTimesheet = new Ext.Button({
        ui:'round',
        text: 'Timesheet',
        flex: 1,
        handler: function () {
            // need to call "x of jsEntryTimesheet"
            
        }
    
    });
    
    How do I call x object which is in "jsEntryTimesheet.js", when I click on "Timesheet" button?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Mods need to move this into the Help forum.

    Is the Buttons a child of the FormPanel?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User Eraser's Avatar
    Join Date
    Apr 2011
    Location
    Germany
    Posts
    11
    Answers
    1
    Vote Rating
    0
    Eraser is on a distinguished road

      0  

    Default


    Hi Riaz,

    if you want to access this button from a function I'd do it this way:
    Code:
    var panel = new Ext.form.formPanel({ });
    [nameOfYouApp].views.formPanel = panel;
    And you can call it this way:
    Code:
    handler : function() {
      var formPanel = [nameOfYourApp].views.formPanel;
    }
    That's all

Similar Threads

  1. Could I create "Call" button that will cause Iphone to make a call?
    By lexer in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 12 Nov 2010, 8:11 AM
  2. Ext.get call
    By febus in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 31 Aug 2009, 2:20 PM
  3. call to dll on Store
    By dtondo in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 29 Apr 2009, 8:58 AM
  4. Call Ext.extend function from FeedWindow.superclass.constructor.call
    By adelphus in forum Ext 2.x: Help & Discussion
    Replies: 17
    Last Post: 3 Jun 2008, 1:42 AM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi