[CLOSED] RAZOR / JS component Ref question

  1. #1

    [CLOSED] RAZOR / JS component Ref question

    Hi Guys

    I am cracking on through my dynamic tab creation and now I have a wee reference question. I am adding

    To my id's that I need to be unique but part of the code uses a javascript direct method to build and fire a url in this I was just saying

    Which worked fine but of course it wont now are the ID will be assetType1 , assetType2, etc, etc

    I thought that using
    Ext.getTextField('sStock' + tabnumber).getValue()
    might work as
    does the trick for stores. But just get errors

    Not sure how I should reference these text fields etc.
    Last edited by Daniil; Apr 12, 2013 at 3:01 PM. Reason: [CLOSED]
  2. #2
    Hi @OriCoder,

    There is the getCmp function.

    Ext.getCmp('sStock' + tabnumber).getValue()
  3. #3
    douhhhh! should have thought of that using it all the time in the controller. Closed

Similar Threads

  1. Replies: 8
    Last Post: Feb 06, 2013, 6:27 PM
  2. [CLOSED] Question about component loader
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 22, 2013, 4:57 PM
  3. [RAZOR] Component Column - [JS] me.el is null
    By carlosveber in forum 2.x Help
    Replies: 0
    Last Post: Nov 12, 2012, 5:59 PM
  4. [CLOSED] MCV RAZOR navigation question from backing code
    By zwf in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 12, 2012, 5:16 PM
  5. Replies: 12
    Last Post: Sep 07, 2012, 2:42 PM

Tags for this Thread

Posting Permissions