on 12-10-2007 2:58 PM
Hi all,
I have a screen.in that scrren i having some mandatory fields.when we go down and wan tot go next screen and mandatory fields are initial.then it shows eror messages.
Now my query is that i want if any error message comes out then screen will automatically scrolled top of the page.
Suggess how is it posible.
Points will be sured max.
Thanks
Sanket sethi
Hi Sanketh,
Here you need to do two things.
1.Create a <b>MessageArea</b> UI element in the place <b>where you want the error message to be displayed</b>. MessageArea automatically displays the message caused by <i>IWDMessageManager</i>. If you want to focus on the error message.
2.Just below <b>MessageArea</b> create a <b>LinkToAction</b> UI element then create an action <i>Focus</i> (No code is needed in this). Then whenever you populate error message add this line of code.
wdThis.wdGetAPI().requestFocus(wdThis.wdGetFocusAction());
Feel free to get back if there is any issue.If you have resolved please mention solution also before closing this.
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try to raise context exeptions
public void reportContextAttributeMessage(IWDAttributePointer attribute,
IWDMessage message, Object[] args);
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.