You need to sign in to do that
Don't have an account?
Chanagan Sakulteera
Why I can't open visualforce page from visualforce page
Hi all,
I'm new for salesforce help me please. Why I can't open visualforce page by button.
This is my code
public PageReference onSave(){
upsert(lstProductService);
String url = 'Cost_Calculator_2?&CF00NO0000001EtuG_lkid='+theProduct.Id+'&CF00NO0000001EtuG='+theProduct.Name;
PageReference pref=new PageReference('/'+url);
return pref;
}
This is my page.
This code in visualforce page.
<center><apex:commandButton value="Save" action="{!onSave}"/></center>
I want open the another page by visualforce page.
Thank you for ans.
I'm new for salesforce help me please. Why I can't open visualforce page by button.
This is my code
public PageReference onSave(){
upsert(lstProductService);
String url = 'Cost_Calculator_2?&CF00NO0000001EtuG_lkid='+theProduct.Id+'&CF00NO0000001EtuG='+theProduct.Name;
PageReference pref=new PageReference('/'+url);
return pref;
}
This is my page.
This code in visualforce page.
<center><apex:commandButton value="Save" action="{!onSave}"/></center>
I want open the another page by visualforce page.
Thank you for ans.
Maybe you can try to add "apex" at the beginning of the url : Hope this helps
Gil
Question Solved ? Please mark as the best answer to help other users !
All Answers
Are you sure that onSave method is called ??. i mean did you debug it .??
did you try redirecting to some static pages??.
Maybe you can try to add "apex" at the beginning of the url : Hope this helps
Gil
Question Solved ? Please mark as the best answer to help other users !