Not able to customize Lead screen Source dropdown

Userlevel 2

Error: The entry form (ID: CR301000, title: Leads) cannot be automated. An item with the same key has already been added.



Actual Code in CRLead DAC:

// Summary:
// The source of the lead.
// Value:
// The field can have one of the values listed in the PX.Objects.CR.CRMSourcesAttribute
// class. The value of the field is automatically changed when the PX.Objects.CR.CRLead.ClassID
// property is changed.
[CRMSources(BqlTable = typeof(CRLead))]
[PXDBString(1, IsFixed = true)]
[PXFormula(typeof(BqlOperand<Selector<classID, CRLeadClass.defaultSource>, IBqlString>.When<BqlChainableConditionBase<TypeArrayOf<IBqlBinary>.FilledWith<And<Compare<False, Equal<Use<IsImport>.AsBool>>>>>.And<Brackets<BqlChainableConditionBase<TypeArrayOf<IBqlBinary>.FilledWith<And<Compare<EntryStatus, Equal<EntryStatus.inserted>>>>>.Or<BqlOperand<Current<source>, IBqlString>.IsNull>>>>.Else<source>))]
[PXUIField(DisplayName = "Source")]
public override string Source { get; set; }


My DACExtension Code:


public class CRLeadExt : PXCacheExtension<PX.Objects.CR.CRLead>
[PXMergeAttributes(Method = MergeMethod.Append)]
public string Source { get; set; }


0 replies

Be the first to reply!


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved