Skip to main content
Answer

Add Current Date as Default Value

  • September 25, 2023
  • 2 replies
  • 308 views

Forum|alt.badge.img

Need to know how to add Current Date as default value to [PXDefault()]?

Best answer by palbores

hi @bhagyat25.

 [PXDefault(typeof(AccessInfo.businessDate))]

 

2 replies

palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • Answer
  • September 25, 2023

hi @bhagyat25.

 [PXDefault(typeof(AccessInfo.businessDate))]

 


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • September 25, 2023

HI @bhagyat25 ,

If using unbound DAC, use below.

   [PXUnboundDefault(typeof(AccessInfo.businessDate))]

If using bound DAC use like below,

[PXDefault(typeof(AccessInfo.businessDate))]