You need to sign in to do that
Don't have an account?
mschmidt
URLFOR parameter to customise Save&New Button?
Hello everbody,
I'm using the URLFOR function to replace a standard "New"-Button by an S-Control. What this S-Control only adds some additional behavior when the user clicks the "Save"-Button. I managed to integrate this behavior using the saveURL parameter of URLFOR. The "Cancel"-Button also does, what it should do using the cancelURL parameter. But I don't know how to adapt the behavior of the "Save&New"-Button, because I don't know the appropriate URLFOR parameter.
Has anybody an idea how this parameter is called? Something link: saveNewUrl, saveAndNewUrl, ... ?
To get a better idea, what I'm talking about, here is my code.
The S-Control which replaces the standard "New"-Button:
Notes:
"Assessment" is the object I want to create and "Save_Assessment" is the S-Control which add's some behavior whenever the user hits the "Save"-Button.
Thanks in advance,
Matthias
I'm using the URLFOR function to replace a standard "New"-Button by an S-Control. What this S-Control only adds some additional behavior when the user clicks the "Save"-Button. I managed to integrate this behavior using the saveURL parameter of URLFOR. The "Cancel"-Button also does, what it should do using the cancelURL parameter. But I don't know how to adapt the behavior of the "Save&New"-Button, because I don't know the appropriate URLFOR parameter.
Has anybody an idea how this parameter is called? Something link: saveNewUrl, saveAndNewUrl, ... ?
To get a better idea, what I'm talking about, here is my code.
The S-Control which replaces the standard "New"-Button:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script type="text/javascript" src="/js/functions.js"></script> <script src="/soap/ajax/10.0/connection.js"></script> <script type="text/javascript"> window.parent.location.href = "{!URLFOR($Action.AppTest2__Assessment__c.New, null,
[saveURL=URLFOR($SControl.Save_Assessment, null, null, true),
cancelURL=URLFOR($Request.retURL, null,null,true)], true)}";
</script>
</head>
<body>
</body>
</html>
Notes:
"Assessment" is the object I want to create and "Save_Assessment" is the S-Control which add's some behavior whenever the user hits the "Save"-Button.
Thanks in advance,
Matthias
I noticed, that the parameter seems to be case sensitive. So I now tried:
"save_new_url", "save_new_URL", "save_New_URL", "save_and_new_url", "save_and_new_URL", "saveNewURL", "SaveNewUrl", "saveAndNewURL" , "saveAndNewUrl".
None of them works. Some further proposals?
Cheers,
Matthias