[CLOSED] as I can get the Id of all the buttons that are used in a web form

  1. #1

    [CLOSED] as I can get the Id of all the buttons that are used in a web form

    I can get the Id of all the buttons that are used in a web form? all with the goal of applying permissions per user, to validate the buttons you can use

    also, as could validate the gridpanel commands so that only certain users can perform these actions?

    thank you very much
    Last edited by Daniil; Apr 29, 2013 at 3:57 PM. Reason: [CLOSED]
  2. #2
    Hi @JCarlosF,

    Quote Originally Posted by JCarlosF View Post
    I can get the Id of all the buttons that are used in a web form? all with the goal of applying permissions per user, to validate the buttons you can use
    You can use the following code.
    var btns = [];
    
    Ext.ComponentMgr.each(function (id, c) {
        if (c instanceof Ext.button.Button) {
            btns.push(c);
        }    
    });
    Quote Originally Posted by JCarlosF View Post
    also, as could validate the gridpanel commands so that only certain users can perform these actions?
    It should be done via prepare handlers.
    http://examples2.ext.net/#/GridPanel...pare_Commands/
    http://examples2.ext.net/#/GridPanel...epare_Toolbar/
    Last edited by geoffrey.mcgill; Apr 29, 2013 at 3:36 PM.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @JCarlosF,



    You can use the following code.
    var btns = [];
    
    Ext.ComponentMgr.each(function (id, c) {
        if (c instanceof Ext.button.Button) {
            btns.push(c);
        }    
    });


    It should be done via prepare handlers.
    http://examples2.ext.net/#/GridPanel...pare_Commands/
    http://examples2.ext.net/#/GridPanel...epare_Toolbar/

    ok, thanks!

Similar Threads

  1. Replies: 1
    Last Post: Aug 18, 2010, 3:19 AM
  2. Replies: 4
    Last Post: Jun 09, 2010, 9:33 PM
  3. [CLOSED] [1.0] Radio buttons that appear as buttons
    By MP in forum 1.x Premium Help
    Replies: 4
    Last Post: Mar 24, 2010, 7:28 PM
  4. Centering buttons on a Form
    By EzaBlade in forum 1.x Help
    Replies: 1
    Last Post: Jan 23, 2009, 9:45 AM
  5. Image buttons / Custom built buttons
    By conman in forum 1.x Help
    Replies: 2
    Last Post: Jul 15, 2008, 12:01 PM

Posting Permissions