You need to sign in to do that
Don't have an account?
How to pass transient data from one visualforce page to another?
Hi,
I've a link in my visualforce page, which renders the data as Excel. However, post developement, I wanted to do some performance tuning and to reduce the view state size, have declared the list variable (having the complete set of data to be displayed) as transient. As a result, no values are being passed to the next VF page.
As of the moment, I've removed the transient type and it is working fine. However, if there is any way to pass transient values to subsequent pages, it will be very useful as I'm worried about the view state size in case of a huge volume of data.
Thanks...!!
~Ayan
I've a link in my visualforce page, which renders the data as Excel. However, post developement, I wanted to do some performance tuning and to reduce the view state size, have declared the list variable (having the complete set of data to be displayed) as transient. As a result, no values are being passed to the next VF page.
As of the moment, I've removed the transient type and it is working fine. However, if there is any way to pass transient values to subsequent pages, it will be very useful as I'm worried about the view state size in case of a huge volume of data.
Thanks...!!
~Ayan
To pass value from one page to another use non-transient variable. If you have any viewstate issue set that variable to null after you finished with it.
All Answers
If you are then you can pass the Id to your second page and then re-query for the data to access it in your second page.
To pass value from one page to another use non-transient variable. If you have any viewstate issue set that variable to null after you finished with it.