Forum Discussion
Ddidonato,
Your method code looks like it's on the right track. What issue are you having? You haven't mentioned how your action is configured, so if you aren't seeing the action in your ui I would go to an ItemType you want to be able to use this with and add your new action to the list of Actions for the itemtype. (Actions relationship tab, select button, then search for the new action by name.) If you've gone that far, you should at least get an error with a bit more information.
Skyler C.
Skyler,
The action is configuration is fine. It doesn't work with the "extended classification" property. If I add (this.setProperty("name","test");) to the method, the name changes to "test', but the extended property still doesn't change. I get no error messages. I'm not sure if extended classifications are handled different. TY
- Skyler_Crossman6 years agoCreator II
Ddidonato,
Ah, I believe you might need to add a line.
this.setAction("edit");
this.setProperty("xp-monthly","1");
this.setPropertyAttribute("xp-monthly","set","value");
this.apply();
return this;The SetPropertyAttribute function is used to create the property tag in the event that one doesn't already exist; given xProperties unusual relationship with items, this can be needed to properly function. Let me know if that helps.
Skyler C.
- ddidonato6 years agoCreator II
I get the following error:
You tried to perform "update" operation against not defined Extended Properties:
- ddidonato6 years agoCreator II
We added the extended classifications to our PART itemtype after we had already established thousands of records for parts. If I add a new part and select the extended class, then run method it will work.