Results 1 to 2 of 2

Thread: How can I call Controller-Function from refreshFn() ?

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default Answered: How can I call Controller-Function from refreshFn() ?

    Hello,

    I have a function getResults() which loads a JSONP-Store and makes some things with the result.
    These things are implemented in my controller (I have currently only one). Now I want to reuse the same function within the refreshFn() - defined in the PullRefreshPlugin. So how can I call it from there?

    Best regards,
    Stefan

  2. You can call FireEvent and Listen for it in your Controller.

    OR

    you get the Controller and launch the Function like:
    APPNAME.app.getController("CONTROLLERNAME").FunctionToLaunch();

  3. #2
    Sencha User
    Join Date
    Feb 2012
    Location
    Germany
    Posts
    72
    Answers
    8
    Vote Rating
    2
      0  

    Default

    You can call FireEvent and Listen for it in your Controller.

    OR

    you get the Controller and launch the Function like:
    APPNAME.app.getController("CONTROLLERNAME").FunctionToLaunch();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •