You need to sign in to do that
Don't have an account?
NTSdevelop
"nooverride=1" parameter
Hi everybody!
I was trying to override the behaviour of a "new" button for a custom object of mine with an s-control I've developed.
Clicking this button should change the url and throw another s-control.
The thing is that the url is properly written in the address bar but it automatically changes to a very long one with some nooverride parameters in it.
I once read that nooverride=1 means that the standard page behaviour is used, and having no nooverride parameters means that the custom s-control behaviour is used.
I don't know if this has something to do with my problem.
The code for the "new" button behaviour in the s-control is the one that follows:
<script language="javascript">
window.parent.location.href = "{!URLFOR($Action.GASSU0027__c.New , null , [saveURL=$SControl.<myOtherS-Control>, codek=URLFOR($Request.codek, null,null,true), IDkid=URLFOR($Request.IDkid, null,null,true), scontrolCaching=URLFOR($Request.scontrolCaching, null,null,true), retURL=URLFOR($Request.retURL, null,null,true)] ,true)}";
</script>
The url should be something like this (just 3 parameters): http://salesforce.com/<whatever>/codek=001&IDkid=d012k&retURL=%a43zP
And instead, it appears like this:
https://salesforce.com/<whatever>/e?retURL=%a43zP%3Fnooverride%3D1&nooverride=1&saveURL=%2Fservlet%2Fservlet.Integration%3Flid%3a45dK%26eid%3D__ENTITY_ID__%26enc%3DUTF-8%26ic%3D1&scontrolCaching=1%3Fnooverride%3D1&codek=001%3Fnooverride%3D1&IDkid=d012k%3Fnooverride%3D1
Any idea why this could happen??
Well, i would appreciate any comments.
Thanks!
Abs
I was trying to override the behaviour of a "new" button for a custom object of mine with an s-control I've developed.
Clicking this button should change the url and throw another s-control.
The thing is that the url is properly written in the address bar but it automatically changes to a very long one with some nooverride parameters in it.
I once read that nooverride=1 means that the standard page behaviour is used, and having no nooverride parameters means that the custom s-control behaviour is used.
I don't know if this has something to do with my problem.
The code for the "new" button behaviour in the s-control is the one that follows:
<script language="javascript">
window.parent.location.href = "{!URLFOR($Action.GASSU0027__c.New , null , [saveURL=$SControl.<myOtherS-Control>, codek=URLFOR($Request.codek, null,null,true), IDkid=URLFOR($Request.IDkid, null,null,true), scontrolCaching=URLFOR($Request.scontrolCaching, null,null,true), retURL=URLFOR($Request.retURL, null,null,true)] ,true)}";
</script>
The url should be something like this (just 3 parameters): http://salesforce.com/<whatever>/codek=001&IDkid=d012k&retURL=%a43zP
And instead, it appears like this:
https://salesforce.com/<whatever>/e?retURL=%a43zP%3Fnooverride%3D1&nooverride=1&saveURL=%2Fservlet%2Fservlet.Integration%3Flid%3a45dK%26eid%3D__ENTITY_ID__%26enc%3DUTF-8%26ic%3D1&scontrolCaching=1%3Fnooverride%3D1&codek=001%3Fnooverride%3D1&IDkid=d012k%3Fnooverride%3D1
Any idea why this could happen??
Well, i would appreciate any comments.
Thanks!
Abs
Try this one.........
pageRef.getParameters().put('nooverride', '0');
window.parent.location.href = "{!URLFOR($Action.GASSU0027__c.New , null , [saveURL=$SControl.<myOtherS-Control>,codek=URLFOR($Request.codek, null,null,false), IDkid=URLFOR($Request.IDkid, null,null,false), scontrolCaching=URLFOR($Request.scontrolCaching, null,null,false), retURL=URLFOR($Request.retURL, null,null,true)] ,false)}";
to cross check this will help weather the page is vf or standard one.