[CLOSED] DirectMethods: Understanding.

  1. #1

    [CLOSED] DirectMethods: Understanding.

    Hi!

    Well... I´m still problem with updating gridPanels in another aspx page.
    Actually, I need a standard process to update anything on my system.
    My difficulty is I have several aspx pages opened.

    1 - I have a main page with tabPanels... within each tabPanel I will opened a aspx page with gridPanel.
    2 - When the user double-clicked in gridPanel on aspx page contained into tabPanel, I call a directMethod in Main page that will create a window (the creation is in codebehind).
    3 - This window maybe contain another gridPanel or a trigger field, for example. And this gridPanel (or trigger field) maybe creating a new window (always calling the directMethod in Main Page).
    4 - Always I click in Ok button of any window, I wish update something. This 'something' depends of context. And this 'something' may is contained in any aspx page loaded (Remenber that windows are created in Main Page, always).

    Therefore, the control that I wish update, maybe don´t is contained in parent or in body of parent. i.e., the path to this control is not static.

    I think that my problem can be solved with directMethods.
    If directMethods can be access in any place, maybe I can 'registry' this directMethod to be triggered when the Ok button of any window is clicked.
    For this, I need that directMethods are visibles for all pages.
    How I access a directMethod in a child page (any page) from anywhere? I wish trigger this directMethod (of child page of main page) in a window, created in a MainPage.

    Thanks for any help!
    Last edited by Daniil; Mar 15, 2012 at 9:53 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Quote Originally Posted by supera View Post
    How I access a directMethod in a child page (any page) from anywhere? I wish trigger this directMethod (of child page of main page) in a window, created in a MainPage.
    If I correctly understand it should look like this (client side):
    ContainerWithChildPageCliendId.getBody().Ext.net.DirectMethods.SomeDirectMethod();
    Also we would suggest to move out this logic to WebService (-s) or Handler (-s). You won't get an access to page controls at all, but get more flexibility.
    https://examples2.ext.net/#/Events/D...ds/WebService/

    So, you can access a "method" using its URL.

    And you will need to return a respective JavaScript from WebService or Handler. Or just some data to handle with a Success handler.
  3. #3
    Ok!

    I will try this;

    Thanks a lot, Daniil.

Similar Threads

  1. [CLOSED] Ext.net.DirectMethods Scope
    By dev in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 31, 2012, 10:39 AM
  2. Replies: 3
    Last Post: Feb 24, 2011, 2:41 PM
  3. [CLOSED] [1.0] MVC Ext.net.DirectMethods
    By alliedwallet.com in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 19, 2011, 10:31 PM
  4. Understanding the big picture
    By meareal in forum 1.x Help
    Replies: 3
    Last Post: Dec 30, 2010, 9:20 AM
  5. [CLOSED] having trouble understanding ObjectDataSource Update
    By pkellner in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 16, 2008, 3:42 PM

Posting Permissions