function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NewInternNewIntern 

Can I get this custom grid to work on Pro Edition?

I have an inline VF component grid on the Contacts page layout that I implemented using VF page and custom Apex class. The grid works absolutely fine in the Enterprise Edition; the main code for the VF page is:

 

<apex:page standardController="Contact" extensions="VFforEmailTemplateController">
<apex:form >
 <apex:pageBlock id="theBlock" mode="inlineEdit">
  <apex:pageBlockButtons >
    <apex:commandButton action="{!saveRecord}" id="saveButton" value="Save"/>
  </apex:pageBlockButtons>

<!-- first row -->
    <apex:pageBlockTable value="{!contact}" var="c"> 

                <apex:commandButton action="{!saveRecord}" id="saveButton" value="Save"/>

        <apex:column headerValue="Fund/Status" width="111">
            <apex:outputText >
                <b>EJF</b>
            </apex:outputText>
        </apex:column>
          <apex:column headerValue="On Approved List" width="111">
            <apex:outputField value="{!c.EJF_On_Approved__c}">
               <apex:inlineEditSupport event="ondblclick"
                                       showOnEdit="saveButton"
                                       changedStyleClass="myBoldClass" 
                                       resetFunction="resetInlineEdit"/>
            </apex:outputfield>
        </apex:column>
        <apex:column headerValue="Pending Approval" width="111">
            <apex:outputField value="{!c.EJF_Pend_App__c}"> 
              <apex:inlineEditSupport event="ondblclick"
                                      showOnEdit="saveButton"
                                      changedStyleClass="myBoldClass" 
                                      resetFunction="resetInlineEdit"/> 
            </apex:outputfield>
        </apex:column>
        <apex:column headerValue="Denied Approval" width="111">
           <apex:outputField value="{!c.EJF_Denied__c}"> 
              <apex:inlineEditSupport event="ondblclick"
                                      showOnEdit="saveButton"
                                      changedStyleClass="myBoldClass" 
                                      resetFunction="resetInlineEdit"/> 
            </apex:outputfield>
        </apex:column>
        <apex:column headerValue="Removed From Approved" width="127">
            <apex:outputField value="{!c.EJF_Removed__c}"> 
              <apex:inlineEditSupport event="ondblclick"
                                      showOnEdit="saveButton"
                                      changedStyleClass="myBoldClass" 
                                      resetFunction="resetInlineEdit"/> 
            </apex:outputfield>
        </apex:column>
        <apex:column headerValue="ADV Part II Sent" width="123">
            <apex:outputField value="{!c.EJF_ADV__c}"> 
                <apex:inlineEditSupport event="ondblclick"
                                      showOnEdit="saveButton"
                                      changedStyleClass="myBoldClass" 
                                      resetFunction="resetInlineEdit"/> 
            </apex:outputfield> 
This code repeats for additional rows and columns.

 Now the Apex class saves the users' checkbox selection; the code:

 

public class VFforEmailTemplateController

{
    public Contact cont { get; set; }
    public ApexPages.StandardController c;

    public VFforEmailTemplateController(ApexPages.StandardController controller)
    {
    this.cont = (Contact)controller.getRecord();
        c = controller;

    }
    public PageReference saveRecord(){
        try{
            c.save();
        }
        catch(Exception e){
        }
        return null;
    }

}

Now, I need your help to determine if the same thing can be implemented in the Pro Edition. After checking it out, my initial thoughts are it may not be possible because you can't create an Apex class.

 

But is there a workaround as far as doing this in Pro? How would you implement the same grid if you only had Pro to work with? Thanks.

 

Satish_SFDCSatish_SFDC

Although an Apex class cannot be created manually in a Professional edition, you can install app exchange apps. The apps can in turn use apex classes.

 

Hope this helps.

 

Regards,

Satish Kumar

NewInternNewIntern
Thanks for your response.

It may not be that easy. First, the managed package has to pass a security review in order to be available on AppExchange. Second, I'm looking to install in an edition different from the one that the package was created in. Therefore, it needs to have the so-called Aloha status, acquired after making such a request via the partner portal.

Seems laborious.
Satish_SFDCSatish_SFDC

Agree.

Unfortunately, this is one of the limitations of the Pro edition. May be you could talk to your account executive or Salesforce support to enable this feature. I am not sure about this but they may have some provisions regarding this.

 

Regards,

Satish Kumar