Skip to main content
Solved

Attributes for Employees


pandachan48
Jr Varsity II
Forum|alt.badge.img

could someone show me how to add attribute in Employees?

 

 

Best answer by pandachan48

Thank you all

I found where can add the Attribute.

View original
Did this topic help you find an answer to your question?

5 replies

pandachan48
Jr Varsity II
Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 31 replies
  • Answer
  • March 24, 2021

Thank you all

I found where can add the Attribute.


  • Freshman II
  • 8 replies
  • November 24, 2021

@pandachan48  Hello , Can you please add how did you manage to add attribute?


Doug Johnson
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica VP, Product Management
  • 587 replies
  • November 24, 2021

@mmahima12 Attributes are copied from the Employee Class, so you can go to the employee classes screen (EP.20.20.00) to add the attributes. 

 


  • Freshman II
  • 8 replies
  • November 24, 2021

@Doug Johnson  For example,

  1. I have a Class Screen with ClassID and Description 
  2. I have a Setup Preference Screen With ClassID and an attribute grid with default values.
  3. 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.

 

Please Advice!


  • Freshman II
  • 8 replies
  • November 29, 2021

BQL in Attribute fields is not needed

 [CRAttributesField(typeof(VCContract.contractClassCD), typeof(VCContract.noteID))]
 public virtual string[] Attributes { get; set; }

This will work as everything is connected to Note ID


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings