Hi Norbert,
you have to distinguish between the entries of the message pool you declare as text and the other types (standard, warning, error).
The text entries are accessible the way you described, the other entries are accessible by IMessage<ComponentName>.CONSTANT (type WDMessage).
For example if you declare a message with type "standard" and message key "NoEntry" in the component "Test", you'll get:
IMessageTest.NO_ENTRY
usable for example as
wdComponentAPI.getMessageManager().reportMessage(IMessageTest.NO_ENTRY, null, false);
In both cases there's no iterator, collection or array available.
Hope that helps.
Regards
Stefan
Add comment