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

Refresh Data during navigation from one view

Hi,

i have Two views in WD.

my navigations as follows:

view1 -- Select a row and click edit button --> view2 (show the date that can be edited)

now i go from view2 --> view1.

Now , view1 --selecting other row of the table --> View2(showing the previous row details).

please give me slon for this..

regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 11:23 AM

    Hi

    In View we have frame controlled and When_visible properties set as When_Visible then it refresh the data

    or do wdContext.node<name>().invalidate();

    Thanks,

    Tulasi

    Edited by: Tulasi Palnati on Jul 23, 2008 1:23 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 11:12 AM

    Hi,

    If you want to refresh data, try invalidating the node.

    wdContext.node<Required-node>.invalidate();

    Regards,

    Apurva

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 23, 2008 at 11:19 AM

    Hi,

    While navigating from view1 to view2 are you passing any parametres/setting any context variables????

    If so test the value of the variable which is a key in identifying which row of the table is selected...

    2. Are you using Dynamic UI in view2???

    if so, make sure before every time you create dynamic UI in doModifyView() you are destroying the childs of transparent container that are previously created using TCObject.destroyAllChild()....

    3. Make sure on navigating back from view2 to view1 you are clearing the context node of view2 using node.invalidate()...

    If any of the above doesn't work for you, please explain your scenario clearly....

    Regards,

    Srinivas.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 11:28 AM

    Hi,

    Map the table node from View1 to View2 through ComponentController..

    and in View 2 get the values as follows

    String value1=wdContext.current<tableNode>Element().get<value1>();

    String value2=wdContext.current<tableNode>Element().get<value2>(); etc

    Regards

    LN

    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.