Sascha
apex:commandButton action="{!OpenReport}" value="Report" id="ReportButton"/>
public PageReference OpenReport() {
String UserName = [SELECT Id, Name FROM User WHERE Id =: SelectedUserId].Name;
return new PageReference('/00Og0000000LInY?pv0='+UserName);
}
7 Antworten