You need to sign in to do that
Don't have an account?
Mktdev
Loading Detail page with the help of combox selection ID
public class myclass { List<SelectOption> VIEW_DEPARTMENT; public List<SelectOption> getDepartments() { VIEW_DEPARTMENT=new List<SelectOption>(); VIEW_DEPARTMENT.add(new SelectOption('0', 'All Departments')); for (Specialization__c spec : [select Name from Specialization__c]) { VIEW_DEPARTMENT.add(new SelectOption(spec.Name, spec.Name)); } return VIEW_DEPARTMENT; } }
Above is the class which is pulling data from database.and same has been used in below page under combo box.I got ID of the select data in the combox and want to pass that as query string to show a detail page.Can anyone guide me?
I knwo we can do if we place as list and user can click on it and the detail section will be displayed with {!currentpage.parameters..}.
But I want as sson as the user select the data detail page automatically loads.
<apex:outputText value="Department"/> <apex:selectList value="{!viewDepartmentName}"id="departmentViews" size="1" required="true"> <apex:selectOptions value="{!DepartmentViewNames}"/>
Hi,
You can make use of <apex:actionSupport> to help you to redirect to a detail page.
here is a small code snippet which can help you:
I hope i have anwered your query.