Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Good day!As in the apex controller to get a user ID and page ID VF, in String variable?
Use UserInfo.getUserId() to get the current User Id. What do you mean page Id?
BTW, you can use PageReference Class to get the info of a VF page, see
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_pages_pagereference.htm
Jia Hu wrote:Use UserInfo.getUserId() to get the current User Id. What do you mean page Id?
Thank you!
BTW, you can use PageReference Class to get the info of a VF page, seehttp://www.salesforce.com/us/developer/docs/apexcode/Content/apex_pages_pagereference.htm
I read, but I do not quite understand how to get the ID of the page in the String.
I need it to make a line of this form - ActPage = new PageReference ('/' + Prefix + '/' + 'e? What_id =' + adID + '& retURL =' + '/ apex / MyCoachBusinessPlan');
Use UserInfo.getUserId() to get the current User Id. What do you mean page Id?
BTW, you can use PageReference Class to get the info of a VF page, see
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_pages_pagereference.htm
Thank you!
I read, but I do not quite understand how to get the ID of the page in the String.
I need it to make a line of this form - ActPage = new PageReference ('/' + Prefix + '/' + 'e? What_id =' + adID + '& retURL =' + '/ apex / MyCoachBusinessPlan');