on 06-19-2007 7:43 AM
Hallo together,
on a view i have a context for a table. I must need the value 'when visible' for the view properties 'lifetime'.
My question: How can I initialization the context for my table?
I must do that, otherwise I have the entries with call everyone the view several times in the table.
Thanks for the answers
greetings
Rainer
if i understand your question correctly ...basically you want to populate your table with some initial data?
please correct me if i am wrong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rainer,
To delete the existing binding, use the method node->invalidate( ).
Then do a binding again for your fresh values. Every time you update the data thats bound, just call a bind_elements on your node, that will update automatically. You do not have to invalidate each time.
Regards
Nithya
Hi all,
Thanks a lot for explaining everything. It functions now.
Regards
Rainer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rainer,
do you mean that you have the data in the table duplicated each time someone navigate to this view? So the table content gets larger and larger?
If so, where is the node located (view or component controller) and how do you fill the node?
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the wddoinit method of your view, fetch the internal table which you want to bind to your UI table. Then bind it to the context. If this is done in the doinit, it will be called only once, when the view is initialized.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rainer,
You could use the method WDDOINIT to initialize the context, or you could use a supply function.
If you want to initialize it only once, although the view is removed and recreated, you should map your context node to a node in the component controller or in a custom controller. They will stay, even when the view is not visible.
Ciao, Regina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.