on 02-22-2008 11:13 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
pls use the code above but don't forget to add the ui-element of type message area to your view !!
Regards
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if(index==0)
{
wdComponentAPI.getMessageManager().reportSuccess(
"Remove the Blank Entry");
}
regards
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use as follows
if(index == 0)
{
wdComponentAPI.getMessageManager().reportWarning("Remove the Blank Entry");
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have a look at the tutorial
Regards,
Sudhir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.