cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Initialization Context

Former Member
0 Likes
504

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

View Entire Topic
Former Member
0 Likes

if i understand your question correctly ...basically you want to populate your table with some initial data?

please correct me if i am wrong

Former Member
0 Likes

Hi Rahul,

when i call the view first time, I load some Data in my Context. At next time i called the view, i want update the data. But I must delete the old data before.

Which method or Function must I need for do that?

Regards

Rainer

Former Member
0 Likes

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

Former Member
0 Likes

additionally

bind_table( ) overwrites old elements too

cheers,

sascha

Message was edited by:

Sascha Dingeldey