cancel
Showing results for 
Search instead for 
Did you mean: 

set Position of Window after action

Former Member
0 Kudos

Hello Experts,

is there any oppurtunity to set the position of the scroll - bar to the top after execute a action?

Many Thanks

Marco

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Which scrollbar? The browser scrollbar, a table scrollbar...?

Armin

Former Member
0 Kudos

Hello Armin,

I mean the scroll bar of the Browser.

Regards

Marco

Former Member
0 Kudos

In NW 7.1 there will be an API to scroll a view element into the visible area (IWDViewElement.scrollIntoView()). In earlier versions you might try to set the focus for a certain view element but I am not sure if this will help.

Armin

Former Member
0 Kudos

I have now implemented following code in my ModifyView:

IWDAttribute Info attribute = wdContext.node<MyNode>.getNodeInfo().getAttribute(IPrivateMyView.IMyNodeElement.Attribute);

wdThis.wdGetAPI.requestFocus(wdContext.current<MyNode>,attribute

But the focus will not set to my InputField which is bound to the Attribute

Any ideas why?

Regards

Marco

Former Member
0 Kudos

Code looks ok. As you do it inside wdDoModifyView() you could also try


view.getElement("InputFieldID").requestFocus();

Armin

Answers (0)