Need some code writing help for an event
Well, I need to drive an event on a change only if a particular attribute value is the identified trigger value. NO THIS IS NOT A PX so I will not trigger through the workflow criteria. Right now the event triggers on the workflow any time I enter the status but now I want it to only trigger on the following;
IF CHANGE.CATEGORY is Change Item Data (iSPOT required) or
IF CHANGE.CATEGORY is New Item (iSPOT required)
Then trigger the following code….
Anyone help with the line of code I need?
You say this is not a PX but are talking about code. Patrick, not sure what you are asking for. Anything that extends Agile functionality beyond what can be configured is a PX in my book. Whether that is event handling or the old workflow, create and dashboard extensions.
If you are looking for a line of code then trigger on your choice of events, then read the category field and exit if it is not one of your values. For instance, if you are using a script PX:
IChange ichg =(IChange)((IObjectEventInfo)eventObj.getPXEventInfo()).getDataObject();
String productLine = ichg.getValue(ChangeConstants.ATT_COVER_PAGE_PRODUCT_LINES).toString();