12-07-2015, 11:57 PM
Two things:
1.- Event handler get called on ALL events for ALL modules. So you just need to register it once and inside the handler you have to check for the module that is launching the event.
2.- when you create a picklist or reference field, you must set it's values AFTER the addField call. In other words, setPicklistValues MUST be called after addField.
The rest looks ok.
1.- Event handler get called on ALL events for ALL modules. So you just need to register it once and inside the handler you have to check for the module that is launching the event.
2.- when you create a picklist or reference field, you must set it's values AFTER the addField call. In other words, setPicklistValues MUST be called after addField.
The rest looks ok.
Joe
TSolucio
TSolucio