I have a custom non-persisted field defined on the CRQuote DAC:
public class usrDays: Constant<string> { public usrDays() : base(" working day(s) to ship") { } }
[PXString(60)]
[PXUIField(DisplayName="Lead Days Description")]
[PXFormula(typeof(Add<CRQuoteExt.usrRevLeadDays, usrDays>))]CRQuoteExt.usrRevLeadDays is:
[PXDecimal(0)]
[PXUIField(DisplayName="Lead Days (Rev)")]
[PXDBCalced(typeof(
IsNull<
CR.Standalone.CRQuoteExt.usrLeadDays, CR.Standalone.CRQuoteExt.usrRevLeadDays
>
), typeof(decimal))]usrDays is a string, as defined above. I want to concatenate the decimal and the string in the PXFormula. I have tried many combinations of Add, Concat, Use, and have not been able to get these fields combined. The current configuration publishes, but when I try to load CRQuotes, I get:
System.FormatException | |
| Message: | Input string was not in a correct format. |
I cannot find any examples of casting types, or combining strings with decimals in PXFormula. Can anyone help?
Thank you for reading.
