I added a custom field to store the internal company in both the Item Classes and Landed Cost Code screens, using the same approach in both cases. I also added a selector to choose the company.
In the Item Class screen, the selector works as expected and displays the available company list. However, in the Landed Cost Code screen, the selector is empty and does not show any values, even when logged in with the same user.
Following is the code
public class LandedCostCodeAccessRestExtP : PXCacheExtension<PX.Objects.PO.LandedCostCode>
{
#region UsrInternalCompanyID
[PXDBInt]
[PXUIField(DisplayName = "Company ID")]
[PXSelector(typeof(OrganizationBAccount.organizationID),
typeof(OrganizationBAccount.acctCD),
typeof(OrganizationBAccount.acctName),
SubstituteKey = typeof(OrganizationBAccount.acctName),
DescriptionField = typeof(OrganizationBAccount.acctName))]
public virtual int? UsrInternalCompanyID { get; set; }
public abstract class usrInternalCompanyID : PX.Data.BQL.BqlInt.Field<usrInternalCompanyID> { }
#endregion
}
Item class

Landed cost code
