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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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 2: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.
    https://examples2.ext.net/#/GridPane...pare_Commands/
    https://examples2.ext.net/#/GridPane...epare_Toolbar/
    Last edited by geoffrey.mcgill; Apr 29, 2013 at 2: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.
    https://examples2.ext.net/#/GridPane...pare_Commands/
    https://examples2.ext.net/#/GridPane...epare_Toolbar/

    ok, thanks!

Similar Threads

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

Posting Permissions