I have a Class Screen with ClassID and Description
I have a Setup Preference Screen With ClassID and an attribute grid with default values.
Then I have VCContract Screen with the attribute values ”Answers”
I am trying to replicated what Acumatica does with is Vendor Screen.
My Setup Graph looks like this.
public class VCContractPrefMaint : PXGraph<VCContractPrefMaint, VCSetup> {
[PXViewName(PX.Objects.CR.Messages.Attributes)] public CSAttributeGroupList<VCSetup, VCContract> Mapping; }
My Contract Graph looks like this:
public class VCSVVendorContractMaint : PXGraph<VCSVVendorContractMaint, VCContract> { [PXViewName("Vendor Contract Answer")] public CRAttributeList<VCContract> Answers;
}
In my Contract DAC I have:
#region UsrAttributes public abstract class usrAttributes : IBqlField { }
[CRAttributesField(typeof(VCContract.contractClassID))] public virtual string[] UsrAttributes { get; set; } public virtual string[] Attributes { get; set; } #endregion
I am not sure if I have used the CSAttributeGroupList in a right way(What should be the EntityClass and Entity), my Mapping grid is always null in this case.