Solved

Problem with custom field with TimeList type

  • 4 December 2023
  • 2 replies
  • 40 views

Userlevel 3
Badge

Dear Team,

I have created a custom field with TimeList type. The purpose of this field is to enter Hour:Minute (HH:MM)

       #region UsrTimeIn
       [PXDBInt]
       [PXTimeList]
       [PXUIField(DisplayName = "Time in")]  
       public virtual int? UsrTimeIn { get; set; }
       public abstract class usrTimeIn : PX.Data.BQL.BqlInt.Field<usrTimeIn> { }
       #endregion

The result of Customization was being able to select HH:MM in the available TimeList.

 

 

But when entering HH:MM manually (for example: 10:25), it cannot be done.

 

Please help me the solution !

 

Best Regards,

NNT

 

icon

Best answer by Giri K 4 December 2023, 18:13

View original

2 replies

Userlevel 7
Badge +17

@nhatnghetinh  Can you please change the PXTIMELIST attribute like below and verify?

 

[PXTimeList(5, 12)]

Userlevel 4
Badge +1

@nhatnghetinh In aspx for Time In field

Give property InputMask="hh:mm"

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved