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
Best answer by aaghaei
View originalDear 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
Best answer by aaghaei
View originalpublic 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>
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.