On the Request form RQ301000, we would like to limit the number of characters in the RQRequestLine description field. The default limit is 256. Is there a relatively simple way to limit to 100 characters?
Solved
Limit number of characters in request line description field?
Best answer by Nilkanth Dipak
Hi
Do something like below in your extended DAC.
Use CacheAttached event of that field and set length as 100 in your DAC code.
[PXNonInstantiatedExtension]
public class RQ_RQRequestLine_ExistingColumn : PXCacheExtension<PX.Objects.RQ.RQRequestLine>
{
#region Description
[PXDBString(100, IsUnicode = true)]
[PXUIField(DisplayName = "Description")]
protected void RQRequestLine_Description_CacheAttached(PXCache cache) { }
public string Description { get; set; }
#endregion
Note : I have not tested the logic.
Hope, it helps
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.