You need to sign in to do that
Don't have an account?
V K A
Closing the embedded browser containing the Visualforce page and returns the user to the originating tab or record.
Hello.
I have VF Page in Salesforce Classic in Andorid. I need to close that VF Page after saving the Records and go to Previous Record.
am using the Java Script functionalties provied in Salesforce Help Page to achive this, but its not working and give me the Error of Web page at Mobileforce:///Close migh be temprorily down or it may have moved Permanently to a new web Address.
Here is the link : https://www.salesforce.com/us/developer/docs/pages/Content/pages_mobile_javascript_library.htm
any help is appreciaed.
Thanks.
I have VF Page in Salesforce Classic in Andorid. I need to close that VF Page after saving the Records and go to Previous Record.
am using the Java Script functionalties provied in Salesforce Help Page to achive this, but its not working and give me the Error of Web page at Mobileforce:///Close migh be temprorily down or it may have moved Permanently to a new web Address.
Here is the link : https://www.salesforce.com/us/developer/docs/pages/Content/pages_mobile_javascript_library.htm
any help is appreciaed.
Thanks.
public pagereference mysave() {
try{
//save your record
}catch(DmlException ex){
ApexPages.addMessages(ex);
}
return new pagereference('/'+record.Id);
}
Thanks,
Vinoth
Have you used your browsers debug tool to look for any javascript errors?
<apex:page >
<apex:form >
<html>
<head>
<script type="application/x-javascript" src="http://na1.salesforce.com/mobileclient/api/mobileforce.js"></script>
<script>
function doClose() {
mobileforce.device.close();
return false;
}
</script>
</head>
<body>
<a href="mobileforce:///close">HTML close</a><br/>
<br/>
<br/>
<a href="#" onclick="return doClose();">JS close</a><br/>
<br/>
<br/>
<apex:commandButton value="Click" onclick="return doClose();" />
</body>
</html>
</apex:form>
</apex:page>