Skip to Content
avatar image
Former Member

Table UI element refresh problem

Hi ,

I have a scenario where in I am retreving data from a data base table using ejb . I have a single view with 3 input fields to collect inputs for selection of records. The returned records are displayed in the table. The data retrival is triggered at the click of a button on the same view. The data retrival part is working fine. However for every successive click on the button after the first click, the new records are appended in the table, with old data still displayed in the table. I would like to have only the records selected based on the inputs to be displayed I have tried using

wdContext.getContext().reset(true)

and wdContext.....invalidate();

to reset the context.

It seems like the Table is not cleared .

I am looking forward for guidance/advice from the SDN members in resolving this problem.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 14, 2006 at 10:29 AM

    Vinay,

    First, dont use call "wdContext.getContext().reset(true)" here: it removes dynamically created attributes / nodes, node invalidation is something different.

    Second, how do you populate Table node? Is it done via supply function, or manually via node.bind()?

    VS

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks Valery,

      As suggested By you, by correcting the node to be invalidated the problem is resolved. Earlier I had included your suggestion to use this.wdContext.nodeContextValueNodeResponse().invalidate(); and executed but the results were not as expected.

      However later when I executed in debug mode it worked as expected. I build the project and then executed and it is working. Thanks Valery for your guidance....

      Regards

      Vinay Rane