You need to sign in to do that
Don't have an account?

A Problem with the onclick javascript for this button or link was encounterd:
Hi iam getting below error in production when ever i click on the button on a related list on the case object that to only one particular case.But in my developer sandbox it is working fine .what may be the problem.Can anybody help on this.

And below is the code behind that button.
{!REQUIRESCRIPT("/support/console/26.0/integration.js")}
srcUp('/apex/PPS_CaseHolderPage?id={!Case.Id}&btname=New_Service_Order');
Regards,
Isha
And below is the code behind that button.
{!REQUIRESCRIPT("/support/console/26.0/integration.js")}
srcUp('/apex/PPS_CaseHolderPage?id={!Case.Id}&btname=New_Service_Order');
Regards,
Isha
if (typeof(srcUp) == 'function') {
srcUp('/apex/PPS_CaseHolderPage?id={!Case.Id}&btname=New_Service_Order');
} else {
window.open('/apex/PPS_CaseHolderPage?id={!Case.Id}&btname=New_Service_Order');
}
All Answers
if (typeof(srcUp) == 'function') {
srcUp('/apex/PPS_CaseHolderPage?id={!Case.Id}&btname=New_Service_Order');
} else {
window.open('/apex/PPS_CaseHolderPage?id={!Case.Id}&btname=New_Service_Order');
}
Regards,
Isha
@Cheyne: my problem is the same but the diff is "srcSelf is not defined", here is my code below that button:
{!requireScript("/soap/ajax/37.0/connection.js")}
if({!CONTAINS( User.Role_Name__c , Case.Case_owner_rolename__c )})
{
if( !{!CONTAINS( Case.Case_owner_rolename__c , "CR")} && {!ISNULL( Case.Relate_Dept_PIC__c )} )
{
alert ("Please input Relate Dept PIC");
}
else
{
srcSelf('/apex/Confirm_Assign_Case_v2?isdtp=vw&caseid={! Case.Id }');
}
}
else
{
alert ("Only user in {!Case.Case_owner_rolename__c} queue can change this Case .");
}
How can i fix it correctly?
Thank you much :D