Results 1 to 2 of 2

Thread: setValue for TextFieldMask

  1. #1
    Sencha User ghatfan99's Avatar
    Join Date
    Apr 2010
    Location
    Grenoble 38000, France
    Posts
    29

    Default setValue for TextFieldMask

    hello,
    i have a TextFieldMask for puting the hours:
    Code:
    final
    
    TextFieldMask finAbsenceHeure = new TextFieldMask("99:99:99");
    finAbsenceHeure.setFieldLabel("heure de fin"); right.add(finAbsenceHeure, agentAbsenceFormData);

    when i click on a mission i have a FormPanel with fields and one of this fields is endHoure
    Code:
    final TextFieldMask endHoure = new TextFieldMask("99:99:99");
    i want to fill it with the houre captured from my model data mission, i do that like this
    Code:
    endHoure.setValue(DateTimeFormat.getFormat("hh:mm:ss").format(mission.getBeginDate));
    where (mission.getBeginDate) type is Date, but i have nothing in the field,
    if i do :
    Code:
    endHoure.setEmptyText(DateTimeFormat.getFormat("hh:mm:ss").format(mission.getBeginDate));
    it works, did you have an idea??
    thank's

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    I dont know the TextFieldMask class, it probabl does not come from GXT.

    Can you please post some fully working testcase that imlpements EntryPoint and shows your problem?

Similar Threads

  1. ComboBox and setValue
    By sir-takouille in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 9 Jul 2010, 6:53 AM
  2. how to use setValue()?
    By poplau in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 10 Oct 2009, 10:32 AM
  3. DS OnLoad - setValue
    By Jack_S in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Sep 2008, 1:27 AM
  4. SetValue in a Datefield
    By joaosobrinho in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 9 Nov 2007, 10:17 AM
  5. Where is setValue() ?
    By ethraza in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 23 Jul 2007, 8:00 PM

Posting Permissions

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