You need to sign in to do that
Don't have an account?
SunnySun
A Visualforce Page with Filtering
Hi,all!
Then I code a visualforce page with filter function,I use some selectoption . I use inputHidden to deliver what I selected.
I can get the value in this page's controller. but when I want to based on these conditions to refresh the page, I found I can't send these conditions to the new page.
This is my code for refresh the page.
public PageReference selectChange(){ PageReference pageRef = ApexPages.currentPage(); pageRef.getParameters().put('FyValue', FyValue); pageRef.getParameters().put('ACCValue', ACCValue); pageRef.getParameters().put('ProductNameValue', ProductNameValue); pageRef.getParameters().put('CropNameValue', CropNameValue); pageRef.getParameters().put('PackageValue', PackageValue); pageRef.getParameters().put('BrandValue', BrandValue); pageRef.getParameters().put('ItermValue', ItermValue); pageRef.setRedirect(true); return pageRef; }
I use pageRef.getParameters().put('FyValue', FyValue); to send the conditions. But I found I Failure.
So,I want to know How should I do!
Any help will be admiration!
In what way did you fail? I've used this technique to send information through to the next page many times before.
When you are redirected to your new page, what is the full URL?
Thanks for your answer!
I can debug those value. But I can't send thos value.
The url connot be understood. Than,could you gave me a demo?
Include page and controller.
Parameters of the definition and how to called PageReference.
Coming back to this a bit late - what did the URL look like? it may be that you need to encode the parameters using the EncodingUtil class.