You need to sign in to do that
Don't have an account?

How do i render a VF page based on URL parameters?
Hello,
I'm trying to render a visualforce page based on a value passed from another record. The Custom Button URL i'm using to open the VF page is:
and rendering the records using the following:
Thanks!
I'm trying to render a visualforce page based on a value passed from another record. The Custom Button URL i'm using to open the VF page is:
/apex/AvailableInstructors?id={!Lesson__c.Id}&Date_c={!Lesson__c.Lesson_Date__c}
and rendering the records using the following:
<apex:pageblocktable value="{!schedules}" var="s" columns="13" rendered="{!Schedule_Availability__c.Date__c== DATEVALUE($CurrentPage.parameters.Date__c)}" >The VF page is showing all records and not rendering it based on the date value passed. Any help would be appreciated!
Thanks!
Check out this post...
https://developer.salesforce.com/forums/#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=906F0000000Au1WIAS
If you really want to stay with the StandardRecordSet controller - then you could go away from the PageBlockTable tag, build an HTML table, with do an apex repeat tag - and then conditionally render the <TR>'s. I think you'll have about as much learning curve eitherway.
All Answers
You would need to limit the list "schedules" in your controller to the value of the $currentpage.parameters.Date__c.
(And check your apex call - you only have one underscore for the Date_c parameters - are you expecting two?
Check out this post...
https://developer.salesforce.com/forums/#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=906F0000000Au1WIAS
If you really want to stay with the StandardRecordSet controller - then you could go away from the PageBlockTable tag, build an HTML table, with do an apex repeat tag - and then conditionally render the <TR>'s. I think you'll have about as much learning curve eitherway.
something like that.
<apex:pageblocktable value="{!schedules}" var="s" columns="13" rendered="{!Schedule_Availability__c.Date__c== DATEVALUE($CurrentPage.parameters.Date__c)}" >
this is a amizing method to render a PageBlockTable on a VF page using URL parameter...........
Thank you so much,
Ghulam