Skip to Content
avatar image
Former Member

avoid running whole on initialization again on page down.

hi ,

I am having 2 pages ,on 1st page i take input from user and on second page i display the table.

now when i do page down the whole code for fetching data for table is getting executed again which i don't want since it affects the performance.

if i skip this by setting a flag ,then when i do page down its shows table is empty.

how do i avoid this?

also i have defined a link for one column which opens a new page , when i click on

the column when on page other than 1st page of table view ,it displays 1st page of table view instead of retaining the same page.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 16, 2007 at 12:40 PM

    Hi,

    Try and put the code that you want to run only once in the onCreate, as this will run only once when the page is created and put those code which you want to run on every reload of the page in onInitialization...

    Hope this helps.

    <b><i>Do reward each useful answer..!</i></b>

    Thanks,

    Tatvagna.

    Add comment
    10|10000 characters needed characters exceeded