cancel
Showing results for 
Search instead for 
Did you mean: 

How to get reference to Message Manager ?

Former Member
0 Kudos

Hello All,

I'm trying to validate the input fields in my WD Application.

For this I declared a method checkMandatory () with parameters fieldname type string.

I've defined a message in my message pool.

To access the meesage manager in my method I've wriitten the following :-


 public void checkMandatory( java.lang.String fieldname )
  {
    //@@begin checkMandatory()
    
//Get reference to the Mapping Manager

IWDMessageManager msgMgr = wdControllerAPI.getComponent().getMessageManager();

    //@@end
  }

<b>I'm getting an error saying :-

" IWDMessageManager cannot be resolved or is not a type "</b>

Exact Error Information :-


Kind	Status	Priority	Description	Resource	In Folder	Location
Error	IWDMessageManager cannot be resolved or is not a type	StartView.java	Ex_Messages/gen_wdp/packages/com/bshg/factory	line 148


Can anyone help me out ?

Regards,

Deepu.K

Accepted Solutions (1)

Accepted Solutions (1)

Greg_Austin
Active Participant
0 Kudos

Organize the imports. Right click on the code -> Source -> Organize Imports.

Former Member
0 Kudos

Hello Greg,

Thanks for ur reply.

I was struggling with this for the past 1 hour.

I searched for the classes in the Folder path for this Message Manager and lost somewhere.

At last when I thought that there is no other go for me then I posted to u people.

It's great my friend.

Ur reply solved my problem.

Thanks a lot.

Regards,

Deepu.K

Answers (0)