[CLOSED] Control ID is not replacing well

  1. #1

    [CLOSED] Control ID is not replacing well

    Hi,
    I have problem using syntax #{controlID} in event handlers. From time to time is expression transformed to Ext.get("controlID") instead of App.parentControlID_controlID.
    Do you have any idea, why is this happening?
    I can not provide example, because I can not reproduce it on local machine. It happens only on server.

    Thanks.
    Last edited by Daniil; Aug 18, 2015 at 12:07 PM. Reason: [CLOSED]
  2. #2
    Hi @ambruslaco,

    Most likely it means that a Control is not presented on the server when you use #{}.

    #{} syntax just searches for a Control instance on server. If found, it replaces with its ID. If not found, it is replaced with Ext.get().

    I guess you create those controls dynamically and they are not presented on the server when you use #{}. I am pretty sure that is the only reason of that behavior.

    You might need to switch #{controlId} to explicit App.ControlId.

Similar Threads

  1. [CLOSED] drawcomponent adding sprite in stead of replacing
    By HansWapenaar in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 12, 2014, 11:04 AM
  2. [CLOSED] replacing topBar (toolbar) of Panel
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 15, 2013, 4:28 PM
  3. Replies: 0
    Last Post: Feb 04, 2013, 6:55 AM
  4. Replies: 4
    Last Post: Jul 13, 2012, 7:47 PM
  5. Replies: 7
    Last Post: Dec 13, 2011, 2:39 PM

Posting Permissions