Newly created attribute api name
Hi folks,
I`m dealing with the following situation, I built some groovy px using newly created attributes, I used the Base ID value do get and set values as needed. It`s working fine on an dev environment but when I moved the configuration to the test env, using ACP, the attribute`s Base ID changed on the test environment. Now the codes are not working, because the Ids are different, off course.
Here are two examples:
- Using Base Id works fine on the dev env
float Y2ACM = obj.getValueByAttId(2482706) == null ? 0 : Integer.valueOf(obj.getValueByAttId(2482706));
- Using Common Constants it doesn't work because there is no such property for class com.agile.api.CommomConstants