diff --git a/.project b/.project new file mode 100644 index 0000000..d4ce847 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + ActionPlans + + + + + + com.salesforce.ide.builder.online + + + + + com.salesforce.ide.builder.default + + + + + + com.salesforce.ide.nature.default + com.salesforce.ide.nature.online + + diff --git a/.settings/com.salesforce.ide.core.prefs b/.settings/com.salesforce.ide.core.prefs new file mode 100644 index 0000000..7bc3132 --- /dev/null +++ b/.settings/com.salesforce.ide.core.prefs @@ -0,0 +1,13 @@ +#Wed Oct 26 11:38:37 EDT 2011 +eclipse.preferences.version=1 +endpointApiVersion=20.0 +endpointEnvironment=Production/Developer Edition +endpointServer=www.salesforce.com +httpsProtocol=true +ideVersion=20.0 +keependpoint=false +metadataFormatVersion=20.0 +namespacePrefix= +packageName=unpackaged +readTimeout=400 +username=labs05p@labs.com diff --git a/salesforce.schema b/salesforce.schema new file mode 100644 index 0000000..e332fb6 --- /dev/null +++ b/salesforce.schema @@ -0,0 +1 @@ +place holder \ No newline at end of file diff --git a/src/classes/ActionPlanTemplates.cls b/src/classes/ActionPlanTemplates.cls index add83ab..74b2f89 100644 --- a/src/classes/ActionPlanTemplates.cls +++ b/src/classes/ActionPlanTemplates.cls @@ -158,7 +158,8 @@ OF THE POSSIBILITY OF SUCH DAMAGE. } // Send the user to the detail page for the new account. - PageReference newPage = new PageReference( '/apex/ActionPlanTemplateDetail?Id=' + apt.Id ); + PageReference newPage = Page.ActionPlanTemplateDetail; + newPage.getParameters().put('Id', apt.Id); newPage.setRedirect( true ); return newPage; } @@ -197,7 +198,8 @@ OF THE POSSIBILITY OF SUCH DAMAGE. } else{ // Send the user to the detail page for the new account. - newPage = new PageReference( '/apex/ActionPlanTemplateDetail?Id=' + actionPlanTemplate.Id ); + newPage = Page.ActionPlanTemplateDetail; + newPage.getParameters().put('Id', actionPlanTemplate.Id); newPage.setRedirect( true ); } diff --git a/src/classes/ActionPlansUtilities.cls b/src/classes/ActionPlansUtilities.cls index 08852e1..8b8c30d 100644 --- a/src/classes/ActionPlansUtilities.cls +++ b/src/classes/ActionPlansUtilities.cls @@ -460,7 +460,7 @@ public with sharing class ActionPlansUtilities{ */ public PageReference saveAndNew(){ saveAp(); - PageReference newPage = new PageReference( '/apex/ActionPlanCreation?' + 'clone=1' ); + PageReference newPage = new PageReference( Page.ActionPlanCreation + '?clone=1' ); newPage.setRedirect( true ); return newPage; diff --git a/src/classes/ImportTemplateController.cls b/src/classes/ImportTemplateController.cls index 122cf4e..209b60e 100644 --- a/src/classes/ImportTemplateController.cls +++ b/src/classes/ImportTemplateController.cls @@ -52,7 +52,11 @@ public with sharing class ImportTemplateController{ try{ String templateId = importUtil.processImportedDocument( this.attachment ); - return new Pagereference( '/apex/ActionPlanTemplateDetail?id=' + templateId ); + PageReference newPage = Page.ActionPlanTemplateDetail; + newPage.getParameters().put('Id', templateId); + + return newPage ; + }catch( Exception ex ){ //we initialize again the attachment when an error ocurres to prevent viewstate size errors this.attachment = new Attachment(); diff --git a/src/labels/CustomLabels.labels b/src/labels/CustomLabels.labels index 131048d..62704fa 100644 --- a/src/labels/CustomLabels.labels +++ b/src/labels/CustomLabels.labels @@ -4,7 +4,7 @@ ap_APModifyError Action Plans en_US - true + false APModifyError Action Plan Template has be modified since Plan creation. @@ -12,7 +12,7 @@ ap_About Action Plans en_US - true + false ap_About Welcome to Action Plans @@ -20,7 +20,7 @@ ap_AboutP1 Action Plans en_US - true + false ap_AboutP1 <p>Action Plans helps your organization encapsulate best practices into easily sharable, reusable task templates.<br/><br/> You can create Action Plans for the following objects (varies by edition):</p> @@ -40,7 +40,7 @@ ap_AboutP1a Action Plans en_US - true + false ap_AboutP1a <h2>Getting Help</h2> <p>Action Plans is Unsupported. For community assistance with Action Plans, please visit <a href="http://success.salesforce.com/answers">Salesforce Answers</a>. @@ -57,7 +57,7 @@ ap_AboutP1b Action Plans en_US - true + false ap_AboutP1b <p>Considerations :</p> <ul> @@ -73,7 +73,7 @@ ap_ActionPlanDetails Action Plans en_US - true + false Action Plan Details Action Plan Detail @@ -81,7 +81,7 @@ ap_ActionPlanTemplateDetail Action Plans en_US - true + false ap_Action Plan Template Detail Action Plan Template Detail @@ -89,7 +89,7 @@ ap_ActionPlanTemplates Action Plans en_US - true + false Action Plan Templates Action Plan Templates @@ -97,7 +97,7 @@ ap_ActionPlansSetup Action Plans en_US - true + false ap_ActionPlansSetup Action Plans Setup @@ -105,7 +105,7 @@ ap_Action_Plan Action Plans en_US - true + false Action Plan Action Plan @@ -113,7 +113,7 @@ ap_Action_Plan_Template Action Plans en_US - true + false Action Plan Template Action Plan Template @@ -121,7 +121,7 @@ ap_Add Action Plans en_US - true + false Add Add @@ -129,7 +129,7 @@ ap_AddNewTask Action Plans en_US - true + false AddNewTask Add New Task @@ -137,7 +137,7 @@ ap_All Action Plans en_US - true + false All All @@ -145,7 +145,7 @@ ap_AreYouSureAsk Action Plans en_US - true + false AreYouSureAsk Are you sure? @@ -153,7 +153,7 @@ ap_Cancel Action Plans en_US - true + false Cancel Cancel @@ -161,7 +161,7 @@ ap_Change Action Plans en_US - true + false Change text Change @@ -169,7 +169,7 @@ ap_Clone Action Plans en_US - true + false ap_Clone Clone @@ -177,7 +177,7 @@ ap_Close Action Plans en_US - true + false Close Close @@ -185,14 +185,14 @@ ap_Comments Action Plans en_US - true + false Comments Comments ap_Confirm_Action_Plan_Deletion en_US - true + false ap Confirm Action Plan Deletion The selected Action Plans will be deleted. Since the Delete process will run in the background, the Action Plans selected for Delete may not be removed from the list immediately.\n\nAre you sure you want to delete selected Action Plans? @@ -200,7 +200,7 @@ ap_Confirm_Tasks_Deletion Action Plans en_US - true + false ap Confirm Tasks Deletion Tasks depending on the one you are about to delete lose their dependency.\n\nAre you sure you want to delete this task? @@ -208,7 +208,7 @@ ap_CreateNewAPT Action Plans en_US - true + false ap_CreateNewAPT ap_CreateNewAPT @@ -216,7 +216,7 @@ ap_CreateTemplateOlpart1 Action Plans en_US - true + false ap_CreateTemplateOlpart1 <li>Name - Template Name.</li> <li>Description - An explanation of how the template should be used.</li> @@ -231,7 +231,7 @@ ap_CreateTemplateOlpart2 Action Plans en_US - true + false ap_CreateTemplateOlpart2 <li>Days After- This value determines the due date of the task. <ol> @@ -253,7 +253,7 @@ ap_CreateTemplateOlpart3 Action Plans en_US - true + false ap_CreateTemplateOlpart3 <li>Reminder – This check box will define the default behaviour for reminders when applying the template to create an Action plan . <ol> @@ -275,7 +275,7 @@ ap_CreateTemplateOlpart4 Action Plans en_US - true + false ap_CreateTemplateOlpart4 <li>Comments - Comments supporting a task.</li> <li>Add New Task - Adds an additional row to the tasks grid.</li> @@ -285,7 +285,7 @@ ap_CreateTemplateP1andP2 Action Plans en_US - true + false ap_CreateTemplateP1andP2 <p>Now you're ready to create your first template. Navigate to the Action Plans Templates tab. Click on the "New Action Plan Template" button.</p> @@ -295,7 +295,7 @@ ap_CreateTemplateTitle Action Plans en_US - true + false ap_CreateTemplateTitle Create a Template @@ -303,7 +303,7 @@ ap_CreatedBy Action Plans en_US - true + false Created By Created By @@ -311,7 +311,7 @@ ap_CreatesActionPlans Action Plans en_US - true + false ap_CreatesActionPlans Create Action Plans for Several Leads @@ -319,7 +319,7 @@ ap_CreatesActionPlansP1 Action Plans en_US - true + false ap_CreatesActionPlansP1 Step 1: Navigate to a accounts list view. Select the accounts you want to create Action Plans for. Click on the "Create Account Action Plans" button. @@ -327,7 +327,7 @@ ap_CreatesActionPlansP2 Action Plans en_US - true + false ap_CreatesActionPlansP2 Step 2: Select the template you want to use by typing the name on the lookup and clicking on it. @@ -335,7 +335,7 @@ ap_CreatesActionPlansP3 Action Plans en_US - true + false ap_CreatesActionPlansP3 Step 3: Enter the information specific to this plan. Note that the accounts you selected earlier are visible and that the "Assign To" has been completed using the current user. @@ -343,7 +343,7 @@ ap_CreatesActionPlansP3_bottom_text Action Plans en_US - true + false ap_CreatesActionPlansP3BottomText Considerations : When hovering the calendar icon (1.) next to the Days After field a calendar is displayed (2.) This calendar has two dates highlighted :<br/><br/> <ul> @@ -355,7 +355,7 @@ ap_CreatesActionPlansP4 Action Plans en_US - true + false ap_CreatesActionPlansP4 Step 4: Save the Action Plan. @@ -363,7 +363,7 @@ ap_CreatesActionPlansP4_note Action Plans en_US - true + false ap_CreatesActionPlansP4Note Note: Action Plan creation is handled by a batch process , it can take a couple of minutes to be able to view all created objects. @@ -371,7 +371,7 @@ ap_CreatesActionPlansP5 Action Plans en_US - true + false ap_CreatesActionPlansP5 Step 5: Verify the Action Plan and the tasks. @@ -379,7 +379,7 @@ ap_CreatesActionPlansP5_note Action Plans en_US - true + false ap_CreatesActionPlansP5Note Note that the Action Plan is now in the correct related list and that this account has two open activities. The third activity in the template is dependent and will be created only when it's predecessor is complete. @@ -387,7 +387,7 @@ ap_DefaultTaskName Action Plans en_US - true + false ap_DefaultTaskName - Task Template @@ -395,7 +395,7 @@ ap_DefaultWeekendDueDates Action Plans en_US - true + false DefaultWeekendDueDates Default weekend due dates to @@ -403,7 +403,7 @@ ap_Delete Action Plans en_US - true + false Delete Delete @@ -411,7 +411,7 @@ ap_Edit Action Plans en_US - true + false Edit Edit @@ -419,21 +419,21 @@ ap_Error Action Plans en_US - true + false Error Error ap_Error_Cyclic_Dependency_Found en_US - true + false ap Error Cyclic Dependency Found A cyclic dependency on tasks has been found ap_Errors_Day_Number_Too_Large en_US - true + false ap Errors Day Number Too Large Number is too large @@ -441,14 +441,14 @@ ap_Errors_ImportingXMLTask Action Plans en_US - true + false ap_Errors_ImportingXMLTask There was a problem importing your Action Plans Template Tasks, review your Template XML or try exporting it again. ap_Errors_ImportingXMLTemplate en_US - true + false ap_Errors_ImportingXMLTemplate There was a problem importing your Action Plans Template, review your Template XML or try exporting it again. @@ -456,7 +456,7 @@ ap_Errors_InvalidXMLTemplate Action Plans en_US - true + false ap_Errors_InvalidXMLTemplate This is an invalid XML template, please export a new Action Plans Template and try again. @@ -464,14 +464,14 @@ ap_Errors_RemoveCyclicDependency Action Plans en_US - true + false ap_Errors_RemoveCyclicDependency Remove cyclic dependency on tasks and try again. ap_Errors_Review_Errors en_US - true + false ap Errors Review Errors Review all error messages above to correct your data. @@ -479,7 +479,7 @@ ap_Errors_SelectCorrectXMLExtension Action Plans en_US - true + false ap_Errors_SelectCorrectXMLExtension Please select a file with the correct extension - xml @@ -487,7 +487,7 @@ ap_Errors_SelectXML Action Plans en_US - true + false ap_Errors_SelectXML Please select a XML document to import @@ -495,14 +495,14 @@ ap_Errors_TaskLimitError Action Plans en_US - true + false ap_Errors_TaskLimitError Task limit reached. ap_Errors_moreThan200records en_US - true + false ap Errors moreThan200records You can not select more than 65 records @@ -510,7 +510,7 @@ ap_Errors_moreThan20records Action Plans en_US - true + false ap_Errors_moreThan20records You can not select more than 40 records @@ -518,7 +518,7 @@ ap_Errors_selectOneRecord Action Plans en_US - true + false ap_Errors_selectOneRecord You must select at least one record. @@ -526,7 +526,7 @@ ap_Errors_xmlMetaData Action Plans en_US - true + false ap_Errors_xmlMetaData Meta Data Information is incorrect! @@ -534,7 +534,7 @@ ap_Errors_xmlRead Action Plans en_US - true + false ap_Errors_xmlRead An error has occurred while trying to read you XML document! @@ -542,7 +542,7 @@ ap_Export Action Plans en_US - true + false ap_Export Export @@ -550,7 +550,7 @@ ap_Friday Action Plans en_US - true + false ap_Friday Friday @@ -558,7 +558,7 @@ ap_GettingStartedP1 Action Plans en_US - true + false ap_GettingStartedP1 Getting started is easy. For each object, you need to add a button to the list view, add a button to the detail page. For Accounts, follow these steps: @@ -567,7 +567,7 @@ ap_GettingStartedTitle Action Plans en_US - true + false ap_GettingStartedTitle Post Install Configuration @@ -678,7 +678,7 @@ ap_Home Action Plans en_US - true + false Home Home @@ -686,7 +686,7 @@ ap_Import Action Plans en_US - true + false ap_Import_Template Import Template @@ -694,7 +694,7 @@ ap_ImportExport_1 Action Plans en_US - true + false ap_ImportExport_1 Action Plans now supports the sharing and discovery of best practices using Template Export and Template Import. <br/><br/> @@ -706,7 +706,7 @@ ap_ImportExport_2 Action Plans en_US - true + false ap_ImportExport_2 Export creates a simple XML file containing template header and task information. It also includes information about who created the template. @@ -727,7 +727,7 @@ ap_ImportExport_SubTitle Action Plans en_US - true + false ap_ImportExport_SubTitle Import Template @@ -735,7 +735,7 @@ ap_ImportExport_Title Action Plans en_US - true + false ap_ImportExport_Title Share Your Templates and Discover Best Practices using Template Export and Template Import @@ -743,7 +743,7 @@ ap_Information Action Plans en_US - true + false Information Information @@ -751,7 +751,7 @@ ap_ItselfDependencyError Action Plans en_US - true + false ap_ItselfDependencyError A task cannot be dependent of itself. @@ -759,7 +759,7 @@ ap_LastModifiedBy Action Plans en_US - true + false Last Modified By Last Modified By @@ -767,7 +767,7 @@ ap_Name Action Plans en_US - true + false Name Name @@ -775,7 +775,7 @@ ap_New Action Plans en_US - true + false New New @@ -783,14 +783,14 @@ ap_NewActionPlan Action Plans en_US - true + false New Action Plan New Action Plan ap_NoTemplatesError en_US - true + false Message for action plans when there are no templates You must create an Action Plan Template @@ -798,7 +798,7 @@ ap_None Action Plans en_US - true + false None None @@ -806,7 +806,7 @@ ap_Note Action Plans en_US - true + false Note Note @@ -814,7 +814,7 @@ ap_Owner Action Plans en_US - true + false Owner Owner @@ -822,7 +822,7 @@ ap_PlanStartDate Action Plans en_US - true + false Plan Start Date Plan Start Date @@ -830,14 +830,14 @@ ap_PostMessage Action Plans en_US - true + false ap_PostMessage has created a new Action Plan for this ap_Print en_US - true + false ap Print Print @@ -845,7 +845,7 @@ ap_RecordOwner Action Plans en_US - true + false ap_RecordOwner Assigned to owner. @@ -853,7 +853,7 @@ ap_RelatedObject Action Plans en_US - true + false RelatedObject Related Object @@ -861,7 +861,7 @@ ap_Related_To Action Plans en_US - true + false Related To Related To @@ -869,7 +869,7 @@ ap_Remove Action Plans en_US - true + false Remove Remove @@ -877,7 +877,7 @@ ap_Save Action Plans en_US - true + false Save Save @@ -885,7 +885,7 @@ ap_SelectAPT Action Plans en_US - true + false Select APT Select APT @@ -893,7 +893,7 @@ ap_Sharing Action Plans en_US - true + false Sharing Sharing @@ -901,7 +901,7 @@ ap_SkipWeekendsWhen Action Plans en_US - true + false SkipWeekendsWhen Skip weekends when generating task due dates @@ -909,7 +909,7 @@ ap_Status Action Plans en_US - true + false Status Status @@ -917,7 +917,7 @@ ap_TaskHeaderSortable Action Plans en_US - true + false TaskHeaderSortable Tasks (Task headers are sortable) @@ -925,7 +925,7 @@ ap_Tasks Action Plans en_US - true + false Tasks Tasks @@ -933,14 +933,14 @@ ap_TasksComplete Action Plans en_US - true + false Tasks Complete Tasks Complete ap_UpdateStatusError en_US - true + false ap_UpdateStatusError This task is part of an Action Plan and it depends on a task that is not completed yet. @@ -948,7 +948,7 @@ ap_days_after_msg Action Plans en_US - true + false ap_days_after_msg This value determines the due date of the task. For tasks with no dependency, the task's due date will be offset from the plan start date. For tasks with a dependency, the due date will be offset from the expected due date of the task on which it depends on. @@ -956,7 +956,7 @@ ap_empty_template_list Action Plans en_US - true + false No templates No templates @@ -964,7 +964,7 @@ ap_import_Note Action Plans en_US - true + false ap_import Note Are you looking for Best Practices Templates? Please visit the @@ -975,7 +975,7 @@ ap_import_file Action Plans en_US - true + false ap_import file Select the file you want to import: @@ -983,7 +983,7 @@ ap_of Action Plans en_US - true + false of of diff --git a/src/objects/Account.object b/src/objects/Account.object index bdf5abc..600f67e 100644 --- a/src/objects/Account.object +++ b/src/objects/Account.object @@ -9,7 +9,7 @@ Create Action Plan sidebar false - /apex/ActionPlanCreation?refType=Account&refId={!Account.Id} + {!URLFOR($Action.ActionPlan__c.New, null, [refType="Account", refId=Account.Id])} Create_Action_Plans @@ -38,7 +38,7 @@ if( error ) { alert(msj); } else{ - location.href = '/apex/ActionPlanCreation?refId='+records+'&refType='+oName; + location.href = '{!URLFOR( $Action.ActionPlan__c.New, null, [refType="Account"])}' + '&refId='+records; } diff --git a/src/objects/ActionPlan__c.object b/src/objects/ActionPlan__c.object index 414be2a..d2f52d0 100644 --- a/src/objects/ActionPlan__c.object +++ b/src/objects/ActionPlan__c.object @@ -264,89 +264,93 @@ OR( Campaign__c == null, Campaign__c == '' ) ) You must relate the Action Plan to an object. Select the type and the object, then save again. + + Action_Plans_Delete_VF + online + DO NOT ADD to any layouts. This is referenced from 'Delete Action Plans' button to enable access to VF with namespace in Managed package . + link + page + Action Plans Delete (VF) + replace + ActionPlansDelete + false + Create_Account_Action_Plan online massActionButton - 600 url Create Account Action Plan - sidebar + replace false false - /apex/ActionPlanCreation?refType=Account&refId={!Account.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Account", refId=Account.Id])} Create_Campaign_Action_Plan online massActionButton - 600 url Create Campaign Action Plan - sidebar + replace false false - /apex/ActionPlanCreation?refType=Campaign&refId={!Campaign.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Campaign", refId=Campaign.Id])} Create_Campaign_Contact_Action_Plan online massActionButton - 600 url Create Contact Action Plan - sidebar + replace false false - /apex/ActionPlanCreation?refType=Contact&refId={!Contact.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Contact", refId=Contact.Id])} Create_Case_Action_Plan online massActionButton - 600 url Create Case Action Plan - sidebar + replace false false - /apex/ActionPlanCreation?refType=Case&refId={!Case.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Case", refId=Case.Id])} Create_Contract_Action_Plan online massActionButton - 600 url Create Contract Action Plan - sidebar + replace false false - /apex/ActionPlanCreation?refType=Contract&refId={!Contract.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Contract", refId=Contract.Id])} Create_Lead_Action_Plan online massActionButton - 600 url Create Lead Action Plan - sidebar + replace false false - /apex/ActionPlanCreation?refType=Lead&refId={!Lead.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Lead", refId=Lead.Id])} Create_Opportunity_Action_Plan online massActionButton - 600 url Create Opportunity Action Plan - sidebar + replace false false - /apex/ActionPlanCreation?refType=Opportunity&refId={!Opportunity.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Opportunity", refId=Opportunity.Id])} Delete_Action_Plans @@ -378,7 +382,7 @@ OR( Campaign__c == null, Campaign__c == '' ) if(confirm('{!$Label.ap_Confirm_Action_Plan_Deletion}')){ // Deletion should be done with ajax toolkit. // connection.js was not included correctly always getting the error: sforce is undefined - location.href = '/apex/ActionPlansDelete?records='+records+'&retURL='+window.location; + location.href ='{!URLFOR($Action.ActionPlan__c.Action_Plans_Delete_VF , null)}' + '&records='+records; } } diff --git a/src/objects/Campaign.object b/src/objects/Campaign.object index 64f1873..62aea88 100644 --- a/src/objects/Campaign.object +++ b/src/objects/Campaign.object @@ -9,7 +9,7 @@ Create Action Plan sidebar false - /apex/ActionPlanCreation?refType=Campaign&refId={!Campaign.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Campaign", refId=Campaign.Id])} Create_Action_Plans @@ -36,7 +36,7 @@ if( error ) { alert(msj); } else{ - location.href = '/apex/ActionPlanCreation?refId='+records+'&refType='+oName; + location.href = '{!URLFOR( $Action.ActionPlan__c.New, null, [refType="Campaign"])}' + '&refId='+records; } diff --git a/src/objects/Case.object b/src/objects/Case.object index d0fc583..7e74e20 100644 --- a/src/objects/Case.object +++ b/src/objects/Case.object @@ -9,7 +9,7 @@ Create Action Plan sidebar false - /apex/ActionPlanCreation?refType=Case&refId={!Case.Id} + {!URLFOR($Action.ActionPlan__c.New, null, [refType="Case", refId=Case.Id])} Create_Action_Plans @@ -38,7 +38,7 @@ if( error ) { alert(msj); } else{ - location.href = '/apex/ActionPlanCreation?refId='+records+'&refType='+oName; + location.href = '{!URLFOR( $Action.ActionPlan__c.New, null, [refType="Case"])}' + '&refId='+records; } diff --git a/src/objects/Contact.object b/src/objects/Contact.object index e7b28f9..4019c01 100644 --- a/src/objects/Contact.object +++ b/src/objects/Contact.object @@ -9,7 +9,7 @@ Create Action Plan sidebar false - /apex/ActionPlanCreation?refType=Contact&refId={!Contact.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Contact", refId=Contact.Id])} Create_Action_Plans @@ -37,7 +37,7 @@ if( error ) { alert(msj); } else{ - location.href = '/apex/ActionPlanCreation?refId='+records+'&refType='+oName; + location.href = '{!URLFOR( $Action.ActionPlan__c.New, null, [refType="Contact"])}' + '&refId='+records; } diff --git a/src/objects/Contract.object b/src/objects/Contract.object index a3231b5..deb586a 100644 --- a/src/objects/Contract.object +++ b/src/objects/Contract.object @@ -9,7 +9,7 @@ Create Action Plan sidebar false - /apex/ActionPlanCreation?refType=Contract&refId={!Contract.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Contract", refId=Contract.Id])} Create_Action_Plans @@ -38,7 +38,7 @@ if( error ) { alert(msj); } else{ - location.href = '/apex/ActionPlanCreation?refId='+records+'&refType='+oName; + location.href = '{!URLFOR( $Action.ActionPlan__c.New, null, [refType="Contract"])}' + '&refId='+records; } diff --git a/src/objects/Lead.object b/src/objects/Lead.object index b5c769d..2f9d094 100644 --- a/src/objects/Lead.object +++ b/src/objects/Lead.object @@ -9,7 +9,7 @@ Create Action Plan sidebar false - /apex/ActionPlanCreation?refType=Lead&refId={!Lead.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Lead", refId=Lead.Id])} Create_Action_Plans @@ -37,7 +37,7 @@ if( error ) { alert(msj); } else{ - location.href = '/apex/ActionPlanCreation?refId='+records+'&refType='+oName; + location.href = '{!URLFOR( $Action.ActionPlan__c.New, null, [refType="Lead"])}' + '&refId='+records; } diff --git a/src/objects/Opportunity.object b/src/objects/Opportunity.object index f855b54..bdf8ec2 100644 --- a/src/objects/Opportunity.object +++ b/src/objects/Opportunity.object @@ -9,7 +9,7 @@ Create Action Plan sidebar false - /apex/ActionPlanCreation?refType=Opportunity&refId={!Opportunity.Id} + {!URLFOR( $Action.ActionPlan__c.New, null, [refType="Opportunity", refId=Opportunity.Id])} Create_Action_Plans @@ -38,7 +38,7 @@ if( error ) { alert(msj); } else{ - location.href = '/apex/ActionPlanCreation?refId='+records+'&refType='+oName; + location.href = '{!URLFOR( $Action.ActionPlan__c.New, null, [refType="Opportunity"])}' + '&refId='+records; } diff --git a/src/package.xml b/src/package.xml index 1c1e2fd..b37b271 100644 --- a/src/package.xml +++ b/src/package.xml @@ -266,6 +266,15 @@ ActionPlan__c.All_Action_Plans ListView + + Action_Plan_Reports + Action_Plan_Reports/Orphan_Action_Plans + Report + + + Action_Plans_Orphan + ReportType + ActionPlan_ActionPlanCreationScripts ActionPlan_ActionPlanCreationStyles @@ -292,6 +301,7 @@ Account.Create_Action_Plan Account.Create_Action_Plans + ActionPlan__c.Action_Plans_Delete_VF ActionPlan__c.Create_Account_Action_Plan ActionPlan__c.Create_Campaign_Action_Plan ActionPlan__c.Create_Campaign_Contact_Action_Plan diff --git a/src/pages/ActionPlanDetail.page b/src/pages/ActionPlanDetail.page index 3f4e0f9..d968a79 100644 --- a/src/pages/ActionPlanDetail.page +++ b/src/pages/ActionPlanDetail.page @@ -39,7 +39,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE. - + @@ -47,7 +47,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE. - + @@ -102,7 +102,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE. - {!ActionPlan.Action_Plan_Template__r.Name} + {!ActionPlan.Action_Plan_Template__r.Name}
{!$Label.ap_Note}: {!$Label.ap_APModifyError}
diff --git a/src/pages/ActionPlanList.page b/src/pages/ActionPlanList.page index 79ce9e7..bdd063b 100644 --- a/src/pages/ActionPlanList.page +++ b/src/pages/ActionPlanList.page @@ -34,10 +34,10 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
  • - {!$ObjectType.ActionPlan__c.LabelPlural} + {!$ObjectType.ActionPlan__c.LabelPlural}
  • - {!$ObjectType.ActionPlanTemplate__c.LabelPlural} + {!$ObjectType.ActionPlanTemplate__c.LabelPlural}
diff --git a/src/pages/ActionPlanSelect.page b/src/pages/ActionPlanSelect.page index afcfc13..d5ff48c 100644 --- a/src/pages/ActionPlanSelect.page +++ b/src/pages/ActionPlanSelect.page @@ -46,10 +46,10 @@ OF THE POSSIBILITY OF SUCH DAMAGE. - {!actionPlan.Name} + {!actionPlan.Name} - - {!actionPlan.Name} + + {!actionPlan.Name} {!actionPlan.Description__c} @@ -63,7 +63,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.

- +
diff --git a/src/pages/ActionPlanTemplateDetail.page b/src/pages/ActionPlanTemplateDetail.page index 18be967..dc39ea4 100644 --- a/src/pages/ActionPlanTemplateDetail.page +++ b/src/pages/ActionPlanTemplateDetail.page @@ -47,12 +47,12 @@ OF THE POSSIBILITY OF SUCH DAMAGE. - + - + - - + + diff --git a/src/pages/ActionPlanTemplateExport.page b/src/pages/ActionPlanTemplateExport.page index baee75e..e107409 100644 --- a/src/pages/ActionPlanTemplateExport.page +++ b/src/pages/ActionPlanTemplateExport.page @@ -54,7 +54,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
- Click here to return to the template. + Click here to return to the template. diff --git a/src/pages/ActionPlanTemplateImport.page b/src/pages/ActionPlanTemplateImport.page index 40b48f7..dff22fd 100644 --- a/src/pages/ActionPlanTemplateImport.page +++ b/src/pages/ActionPlanTemplateImport.page @@ -39,7 +39,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
  • - {!$Label.ap_Import} + {!$Label.ap_Import}
diff --git a/src/pages/ActionPlanTemplateList.page b/src/pages/ActionPlanTemplateList.page index 6843f3a..2c0dfac 100644 --- a/src/pages/ActionPlanTemplateList.page +++ b/src/pages/ActionPlanTemplateList.page @@ -34,10 +34,10 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
  • - {!$ObjectType.ActionPlan__c.LabelPlural} + {!$ObjectType.ActionPlan__c.LabelPlural}
  • - {!$ObjectType.ActionPlanTemplate__c.LabelPlural} + {!$ObjectType.ActionPlanTemplate__c.LabelPlural}