I am creating a new screen and I’m trying to use the autonumber for it. i was following the below post to try to get it working. It fixed the first initial error but I am getting a new one that i cant seem to fix. Does anyone have any ideas on what is wrong with it? everytime i try to save it, it says that the field “Planid” does not exist.

here is where the field should be pulling the autonumber from.

here is the dac extension for that field.
namespace PX.Objects.AM
{
public class AMPSetupExt : PXCacheExtension<PX.Objects.AM.AMPSetup>
{
#region UsrProdPlanNum
[PXDBString(15, IsUnicode = true, InputMask = "")]
[PXDefault(PersistingCheck = PXPersistingCheck.NullOrBlank)]
[PXSelector(typeof(Numbering.numberingID), DescriptionField = typeof(Numbering.descr))]
[PXUIField(DisplayName="Production Planning Number" , Visibility = PXUIVisibility.Visible)]
public virtual string UsrProdPlanNum { get; set; }
public abstract class usrProdPlanNum : PX.Data.BQL.BqlString.Field<usrProdPlanNum> { }
#endregion
}
}
This is the dac for the field on the new screen.
namespace PTMProductionPlanningScreen
{
[Serializable]
[PXCacheName("ProdPlan")]
public class ProdPlan : PXBqlTable, IBqlTable
{
#region Planid
[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = ">CCCCCCCCCCC")]
[PXUIField(DisplayName = "Planid" , Visibility = PXUIVisibility.SelectorVisible)]
[PXDefault(PersistingCheck = PXPersistingCheck.NullOrBlank)]
[PXSelector(typeof(ProdPlan.planid), typeof(ProdPlan.planid))]
[AutoNumber(typeof(AMPSetupExt.usrProdPlanNum),typeof(AccessInfo.businessDate))]
public virtual string Planid { get; set; }
public abstract class planid : PX.Data.BQL.BqlString.Field<planid> { }
#endregion
and here is the graph for the new screen.
namespace PTMProductionPlanningScreen
{
public class PTMProdPlanMaint : PXGraph<PTMProdPlanMaint, ProdPlan>
{
public SelectFrom<ProdPlanLine>.LeftJoin<INItemSite>
.On<ProdPlanLine.inventoryID.IsEqual<INItemSite.inventoryID>
.And<ProdPlanLine.siteid.IsEqual<INItemSite.siteID>>>.View LineItem;
public SelectFrom<AMBomOper>.View oper;
public PXSetup<AMPSetup> AutoNumSetup;
public PTMProdPlanMaint()
{
AMPSetup setup = AutoNumSetup.Current;
}






