Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with WD Message Pool

Hi,

I am developing a WD application, and I am using messaage pool messages, in order to enable translations.

I defined some messages as type "Standard", and some as "Text" - in orde to define button,s labels etc.

I am trying to get the values using the following code:

IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();

//wdContext.currentLabelsElement().setLabelAction(textAccessor.getText((IMessageTaskList.<the message key?)));

The problem is: messages of type "text" are not recognized, and i am getting a compilation error. "Standar/warning/error" messages are recognized.

AnyIdeas why?

Thanks!

Oren.

Former Member replied

Hi,

Try this:

String labelText = wdComponentAPI.getTextAccessor().getText("<message key>"));
wdContext.currentLabelsElement().setLabelAction(labelText);

Regards,

Satyajit.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question