Results 1 to 5 of 5

Thread: #itemId Doesn't Work as a controlQuery for a Controller Action

    Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-1872 in a recent build.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    7

    Default #itemId Doesn't Work as a controlQuery for a Controller Action

    # prepended with itemId works as a selector for a Controller Reference and also in Ext.ComponentQuery.query, but it doesn't work when used as a control query for a Controller Action. # prepended with id works in all cases. Our current workaround is to use the xtype of the view followed by #itemId such as "loginForm #userIdField" as the controlQuery.

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,560
    UI: Sencha Architect / ExtJS 4 - 6
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: WildFly / Weblogic
    Databases: Oracle
    / MySQL / DB2 / Firebird

    If you like my answer please vote!

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    7

    Default Unrelated to Original Post

    Thanks, but the reply is unrelated to my original post. The problem is the the "#itemId" notation for component query doesn't work as a controlQuery for a Controller Action. It works fine for Controller References and in a call using ComponentQuery.query(). The prepended # notation works fine in the controlQuery for a Controller Action when prepended with id, but not when prepended with itemId.

  4. #4
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488

    Default

    Thanks for the bug report. We're working to get this resolved.
    Aaron Conran
    @aconran

  5. #5
    Sencha Premium Member
    Join Date
    Dec 2009
    Location
    Rhode Island
    Posts
    241

    Default

    Is this configuration specific? I am doing this w/o issue...

    This is a snip of my init function from S.A. 2
    Code:
    init: function(application) {
            this.control({
                "#cancelButton": {
                    click: this.onCancelButtonClick
                },
                "#searchButton": {
                    click: this.onSearchButtonClick
                }
            });
        },

Tags for this Thread

Posting Permissions

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