1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    40
    Answers
    1
    Vote Rating
    -1
    kramal is an unknown quantity at this point

      0  

    Default Unanswered: Remote method ore ...?

    Unanswered: Remote method ore ...?


    Hello Friends!

    I have encountered with a problem. The problem is I cant execute method (in current page) on the other place.The order is:1) I must click save button and i will be redirected to another place2)then will be executed method alert('I am previuos page`s'method). Ok. Code is here:

    Ext.onReady(function(){


    Ext.define('windo',{
    extend:'Ext.window.Window',
    initComponent:function(){
    this.title='Order No.',
    this.height=400,
    this.width=600,


    //I`d like something like this
    this.renderRemote='path/to/aim';
    //and there I will be redirected and my alert-method will be executed
    this.bbar=[
    '->',
    {
    text:'Save',
    scope:this,
    handler:function(){
    alert('I am here '); //this method must be executed on another place
    this.close();

    }
    },{
    text:'Cancel',
    handler:function(){alert('handler Cancel')}
    },
    ]
    this.callParent(arguments);
    }


    });


    var a=Ext.create('windo');
    a.show();
    });

    Thanks !
    And I beg your pardon for my harsh english

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      1  

    Default


    Hi kramal,

    Are you calling parent page method from the popup window? if yes then you must first take a reference of parent page and under your popup window, after that you can access parent page method.
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    40
    Answers
    1
    Vote Rating
    -1
    kramal is an unknown quantity at this point

      0  

    Default


    Great! I have deemed that it is impossible. Thank you! Turk agalarimizga salem!

Thread Participants: 1