Dear Team,
I want to create a new Custom field of type DateTime that can input Date and Hours/Minutes.
Please help me the solution !
Best Regards,
NNT
Dear Team,
I want to create a new Custom field of type DateTime that can input Date and Hours/Minutes.
Please help me the solution !
Best Regards,
NNT
public abstract class date : PX.Data.BQL.BqlDateTime.Field<date> { }[PXDBDateAndTime(DisplayNameDate = "Date", DisplayNameTime = "Time", UseTimeZone = true)]
[PXUIField(DisplayName = "Date")]
public virtual DateTime? Date { get; set; }
Hi @aaghaei,
I have performed customization as you instructed but the results only display the Date. Cannot enter Time.
Best Regards,
NNT
If you are using form then have a loot at the below
<px:PXTimeSpan DataField="Time" runat="server" ID="edtime" SummaryMode="true" InputMask="hh:mm" Width="100" ></px:PXTimeSpan>
If you are using grid then add from the data fields and it should come something like
<px:PXGridColumn DataField="Date_Time" CommitChanges="true" ></px:PXGridColumn>
A friendly advise. I underestand people like to be productive and get the things done but always is a good idea to read through the materials or watch the videos to learn doing the work the right way. I bet you would get answer for all your questions in the materials.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.