It give me this error :
Cannot read property 'High' of undefined
when I write this code:
filters.add("ActvityStatus", this.Terrasoft.createColumnFilterWithParameter(
this.Terrasoft.ComparisonType.EQUAL, "Status",ConfigurationConstants.Activity.Status.High));
why can't access the value 'High' of the lookup 'Status' of the activity object
Like
Dear Mohamad,
Please follow the steps given by Grigory. The issue is most likely related to not indicated activity status in Configuration Constants.
The other reason could be not indicated ConfigurationConstants as a dependency in the schema. Please check, that you have added it to dependencies:
Regards,
Anastasia
Mohamad,
In this case please double-check that you have added "High" activity status to the Configuration Constants.
Regards,
Anastasia
Dear Mohamad,
In order to set needed status you can go two ways:
1. Hard code the Id of needed status. In this case filtration will look like this, where zeros are status Id:
filters.add("ActvityStatus", this.Terrasoft.createColumnFilterWithParameter( this.Terrasoft.ComparisonType.EQUAL, "Status", "00000000-0000-0000-0000-00000000"));
2. Go to the system configuration, create a replacing module of ConfigurationConstants schema. Copy all the code from parent ConfigurationConstants schema. Finally, add the activity status to the activity status block in the schema.
Regards,
Anastasia