cancel
Showing results for 
Search instead for 
Did you mean: 

scroll scren at the top of page

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Regards,

Naga

Former Member
0 Kudos

Hi,

You can try to raise context exeptions

public void reportContextAttributeMessage(IWDAttributePointer attribute,

IWDMessage message, Object[] args);

Regards

Ayyapparaj