X.GetCmp and FileUploadField

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    X.GetCmp and FileUploadField

    Hi all.

    First of all, I'm completely new here in this forum, and I am not a Ext.Net Guru, so be patient with me ;).

    I am creating pages dynamically (in VB.net if it matters), based on a XML configuration, with all kind of controls and any number of them. So, for each field in the XML, I create the control and assign an ID to it (the ID is from the XML). I have a "submit" button that, when clicked, parse the XML again, get the ID of each field, and gets the control for this ID with Ext.Net.X.GetCmp. Then, once I have the control, I get the value and do some stuff with it. So if you don't press the "submit" button, nothing happens. Everything works like a charm except for the control type FileUploadField. According to http://forums.ext.net/showthread.php...ind-use-it-s-I, for some reason, GetCmp doesn't work with FileUploadField. I have spent like 15 or 20 stucked here, googling, reading ext.net forums with no luck. I can't see why it just doesn't work, and how to solve this. I can't just use the listener as suggested in this link, because the file should not be uploaded until the user press the submit button.

    So, again, my question is: Is there some way to get a FileUploadField control based on it's ID? (sounds like a noob question lol). And, just to know, why getcmp doesn't work with this kind of control?

    Thank you very very much in advance, and sorry for my bad english.
  2. #2
    Hi @josecano,

    I have answered your question on Stackoverflow.
    http://stackoverflow.com/questions/1...36551#16236551
  3. #3
    Thanks Daniil

Similar Threads

  1. Ext.getCmp() not working in UserControl
    By ontiv in forum 2.x Help
    Replies: 10
    Last Post: Oct 16, 2012, 7:54 AM
  2. [CLOSED] Ext.getCmp return undefined is not an object
    By farisqadadeh in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Aug 27, 2012, 11:50 PM
  3. [CLOSED] Ext.Net.X.GetCmp - how to call in parent?
    By wagger in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 25, 2011, 4:55 AM
  4. [CLOSED] Custom Search with X.GetCmp
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 15, 2011, 4:46 PM
  5. [CLOSED] Finding a menu with Ext.getCmp()
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jun 22, 2009, 3:40 AM

Tags for this Thread

Posting Permissions