Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 13, 2007 at 02:11 PM

    Hi,

    Try this:

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

    Regards,

    Satyajit.

    Add comment
    10|10000 characters needed characters exceeded