cancel
Showing results for 
Search instead for 
Did you mean: 

How to raise the Information message ?

Former Member
0 Kudos

Hi Gurus,

I got a requirement that If the index is 0 I have raise the information message.... " Remove the Blank Entry" in the view controller.........

how to do this .........

I would appreciate If I get a answer ASAP....

Higher points will be rewarded more good answers.......

Thanks in Advance,

Dharani

Accepted Solutions (0)

Answers (5)

Answers (5)

nikhil_bose
Active Contributor
0 Kudos

hi dharani!

To display messages you have to get the Message manager which is in the ComponentAPI.

code:

if ( index == 0) {

wdComponentAPI.getMessageManager.reportWarning("Remove the Blank Entry);

}

[/code]

if this is not getting involved, try getting ContextElement in the condition.

e.g.

if ( wdContext.currentContextElement().getIndex() == 0 )

regards,

nikhil

if you got solution, plz mark as answered

Former Member
0 Kudos

Hi,

pls use the code above but don't forget to add the ui-element of type message area to your view !!

Regards

Sebastian

former_member197348
Active Contributor
0 Kudos

if(index==0)

{

wdComponentAPI.getMessageManager().reportSuccess(

"Remove the Blank Entry");

}

regards

Siva

Former Member
0 Kudos

Hi Guys,

Thanx for the input........

Unfortunately its not working.........Its not displaying any message there?

Kindly tell me what will be the problem for this ?

Thanks in Advance,

Dharani

Former Member
0 Kudos

Hi,

Put a message area element and try.

Unfortunately its not working.........Its not displaying any message there?

what you mean by "there"?

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

use as follows


 if(index == 0)
	  {
		  wdComponentAPI.getMessageManager().reportWarning("Remove the Blank Entry");
	  }

Regards

Ayyapparaj

Former Member
0 Kudos