Skip to main content
added 16 characters in body
Source Link
Sebastian Kessel
  • 13.2k
  • 12
  • 38
  • 61

I have an Apex controller which is exposed as REST API. In the above controller , there is page reference method.

Once the Page reference method gets invoked , Am passing the VF Page name and the Apex Page id in the below: PageReference myVFPage = new PageReference('/apex/VFPageName=' + vfPageId); myVFPage.setRedirect(true); return null;

PageReference myVFPage = new PageReference('/apex/VFPageName=' + vfPageId);
   myVFPage.setRedirect(true);
   return null;

The page reference method is getting executed with no errors, however the VisualForce page name that was passed in the method is not loading. Please advice on how can the VF Page could be loaded.

I have an Apex controller which is exposed as REST API. In the above controller , there is page reference method.

Once the Page reference method gets invoked , Am passing the VF Page name and the Apex Page id in the below: PageReference myVFPage = new PageReference('/apex/VFPageName=' + vfPageId); myVFPage.setRedirect(true); return null;

The page reference method is getting executed with no errors, however the VisualForce page name that was passed in the method is not loading. Please advice on how can the VF Page could be loaded.

I have an Apex controller which is exposed as REST API. In the above controller , there is page reference method.

Once the Page reference method gets invoked , Am passing the VF Page name and the Apex Page id in the below:

PageReference myVFPage = new PageReference('/apex/VFPageName=' + vfPageId);
   myVFPage.setRedirect(true);
   return null;

The page reference method is getting executed with no errors, however the VisualForce page name that was passed in the method is not loading. Please advice on how can the VF Page could be loaded.

edited title
Link
David Cheng
  • 7.4k
  • 18
  • 55
  • 89

Unable to redirect to the VF Page using Page Reference method in the ControllrController

added 3 characters in body
Source Link

I have a page reference method in thean Apex controller which is exposed as REST API.

The In the above controller , there is page reference method gets invoked and below is the syntax:.

PageReference myVFPage = new PageReference('/apex/VFPageName=' + vfPageId);
myVFPage.setRedirect(true);

ForOnce the PagereferencePage reference method gets invoked , I had setAm passing the return type as VFPageNameVF Page name and the Apex Page id in the below: PageReference myVFPage = new PageReference('/apex/VFPageName=' + vfPageId); myVFPage.setRedirect(true); return null;

The page reference method is getting executed with no errors how ever, however the VisualForce page name that was passed in the method is not loading.

How Please advice on how can I make sure the VisualForce page getsVF Page could be loaded and the JavaScript events gets fired during the page load?.

I have a page reference method in the Apex controller which is exposed as REST API.

The page reference method gets invoked and below is the syntax:

PageReference myVFPage = new PageReference('/apex/VFPageName=' + vfPageId);
myVFPage.setRedirect(true);

For the Pagereference method, I had set the return type as VFPageName.

The method is getting executed with no errors how ever the VisualForce page is not loading.

How can I make sure the VisualForce page gets loaded and the JavaScript events gets fired during the page load?

I have an Apex controller which is exposed as REST API. In the above controller , there is page reference method.

Once the Page reference method gets invoked , Am passing the VF Page name and the Apex Page id in the below: PageReference myVFPage = new PageReference('/apex/VFPageName=' + vfPageId); myVFPage.setRedirect(true); return null;

The page reference method is getting executed with no errors, however the VisualForce page name that was passed in the method is not loading. Please advice on how can the VF Page could be loaded.

deleted 18 characters in body
Source Link
David Reed
  • 93.7k
  • 14
  • 90
  • 166
Loading
Source Link
Loading