Visualforce Page In Salesforce1 App

How to Show Visualforce Page in Salesforce1 App


Hi All Trailblazer Community,

From long back i was getting problem to show the visualforce page in salesforce1 app. You can show that page after creating the tab. But it will be visible only on the Navigation Menu.

So as i am perfect creating visualforce page so i preferred to do development in visualforce instead of lightning.

For opening visualforce page from lightning in salesforce1 app i have used earlier :

   Window.open('/apex/Mypage',height=400,width=500);

But it was not working in the salesforce1 app. if you will use that in lightning then the app will ask to open that in chrome or other browser. fine it will work in chrome(Desktop and Mobile). But it will not work in salesforce1.

Here i have used another method to open my visualforce page in salesforce1 app.


    var urlEvent = $A.get("e.force:navigateToURL");
    urlEvent.setParams({
      "url": "/apex/Mypage"
    });
    urlEvent.fire();


Boom Problem solved....Happy Coding..:)

Comments

Popular posts from this blog

PATH IS NOT COMING IN MOBILE??

WHATSAPP INTEGRATION WITH SALESFORCE

UPLOAD FILE FROM JAVASCRIPT REMOTING