Skip to Content
author's profile photo Former Member
Former Member

updating / refreshing view

Hi.

Can someone please point me in the right direction. I am having troubles refreshing a view and updating view elements with new data.

There are two groups within a single view. first contains a table, second some input fields. I have a copy button in the table toolbar and I want to copy fields from the selected row into the inputfields below.

I am doing this with something like this in the onActionCopyLine():

wdContext.currentContextElement().setField(wdContext.currentXxxElement().getField());

...but the input fields are not refreshed with the new values.

I reckon I need to refresh the view (with wdDoModifyView?), but am not sure how to do so.

Many thanks in advance! ( <b>Points promised for helpful answers!</b> )

faB

PS. Would it be better pratice to put the 2nd group in a new view and call the navigation plug in the onActionCopyLine()?

Message was edited by: faB

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2005 at 10:18 AM

    Use data binding instead of copying.

    Bind the "value"-property of the InputField to the same context attribute as the table column editor and it automatically gets the value in the selected row.

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.