[CLOSED] Get Field of EventWindow

  1. #1

    [CLOSED] Get Field of EventWindow

    Hi, How Can I do to get the elements(objects ext.net) of a EventWindow in the next image:

    Click image for larger version. 

Name:	EventWindowFields.png 
Views:	13 
Size:	22.6 KB 
ID:	7322

    - First TextField I want to set the property setEditable(false).
    - First DateField I want to set the property setVisible(false).
    - First ComboBox I want set the property setDisabled(true).
    - Label "to" rename to "a".
    - Second DateField I want to set the property setVisible(false).
    - Second ComboBox I want set the property setDisabled(true).
    - CheckBox (All day) I want to set the property setVisible(false).

    I have the code to get other elements as:

    var titleItem = eventWindow.formPanel.getComponent('title');
    var dateRangeItem = eventWindow.formPanel.getComponent('date-range');
    var fbar = eventWindow.getDockedComponent(0);
    fbar.items.get(0).text = '<a href="#" id="tblink"></a>';
    fbar.items.get(2).setVisible(false); //"Guardar";
    fbar.items.get(3).text = "Borrar";
    fbar.items.get(4).setVisible(false); // = "Cancelar";
    This code is to configure those elements, but the getComponent(name) where "name" is other that the inspector in Firefox.

    Thank you
    Last edited by Baidaly; Dec 03, 2013 at 9:42 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Probably, I misunderstand your question but it seems you need the following:

    // First TextField I want to set the property setEditable(false).
    titleItem.setReadOnly(true)
    
    // First DateField I want to set the property setVisible(false).
    dateRangeItem.items.items[0].hide()
    
    // First ComboBox I want set the property setDisabled(true).
    dateRangeItem.items.items[1].disable()
    
    // Label "to" rename to "a".
    dateRangeItem.items.items[2].setText('a')
    
    // Second DateField I want to set the property setVisible(false).
    dateRangeItem.items.items[4].hide()
    
    // Second ComboBox I want set the property setDisabled(true).
    dateRangeItem.items.items[3].disable()
    
    // CheckBox (All day) I want to set the property setVisible(false).
    dateRangeItem.items.items[5].hide()
  3. #3
    Quote Originally Posted by Baidaly View Post
    Hello!

    Probably, I misunderstand your question but it seems you need the following:

    // First TextField I want to set the property setEditable(false).
    titleItem.setReadOnly(true)
    
    // First DateField I want to set the property setVisible(false).
    dateRangeItem.items.items[0].hide()
    
    // First ComboBox I want set the property setDisabled(true).
    dateRangeItem.items.items[1].disable()
    
    // Label "to" rename to "a".
    dateRangeItem.items.items[2].setText('a')
    
    // Second DateField I want to set the property setVisible(false).
    dateRangeItem.items.items[4].hide()
    
    // Second ComboBox I want set the property setDisabled(true).
    dateRangeItem.items.items[3].disable()
    
    // CheckBox (All day) I want to set the property setVisible(false).
    dateRangeItem.items.items[5].hide()
    Thank you Baidaly, this is working.

Similar Threads

  1. [CLOSED] ext:EventWindow: Localization
    By supera in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Dec 02, 2014, 8:04 AM
  2. Add new field in EventWindow for 2.x
    By rammus in forum 2.x Help
    Replies: 2
    Last Post: Mar 13, 2013, 5:14 PM
  3. How to customize CalendarPanel EventWindow?
    By ozlem in forum 2.x Help
    Replies: 10
    Last Post: Mar 04, 2013, 7:44 AM
  4. [CLOSED] Bug with EventWindow after update to 2.1
    By bossun in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 22, 2013, 3:49 PM
  5. [CLOSED] ext:EventWindow: All fields in window
    By supera in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Aug 04, 2012, 10:38 AM

Tags for this Thread

Posting Permissions