• Muhammad Andy Rofii
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
Dear Sir/Madam,

Currently we have a request from our client as follow  "When Sales Rep Create a certain task (Customer Visit) and they want to change the task status Completed, they have to fillout minute of meeting form and save them. After saving the form, it should automatically send the minute of meeting via email and update status of task ecome Completed"

We'd make custom a visualforce page as follow:

<apex:page standardController="Task" title="Sample Position Layout Page" showHeader="true" sidebar="true" >
<apex:messages />
<apex:form >
    <apex:pageBlock title="Task" mode="edit" id="thePageBlock">
    <apex:pageBlockButtons >
            <apex:commandButton value="Save" action="{!save}"/>
            <apex:commandButton value="Cancel" action="{!cancel}"/>
    </apex:pageBlockButtons>
    <apex:actionRegion >
        <apex:pageBlockSection title="Information" columns="2">
            <apex:inputField value="{!Task.Subject}"/>
            <apex:inputField value="{!Task.Status}">
            <apex:actionSupport event="onchange" rerender="techSkills"/>
            </apex:inputField>
            <apex:inputField value="{!Task.Approved_SM__c}"></apex:inputField>
            <apex:inputField value="{!task.WhatId}"></apex:inputField>
            <apex:inputField value="{!Task.Description_From_SM__c}"></apex:inputField>
            <apex:inputField value="{!Task.Description__c}"></apex:inputField>
            <apex:inputField value="{!Task.Description}"></apex:inputField>
            <apex:inputField value="{!Task.ActivityDate}">
            </apex:inputField>
            <apex:inputField value="{!Task.OwnerId}">
            </apex:inputField>
        </apex:pageBlockSection>
        <apex:outputPanel id="techSkills">
            <apex:pageBlockSection id="theSection" title="New Section" columns="8" rendered="{!Task.Status == 'Completed' && Task.Subject == 'Customer Visit'}"  >
            <html>
            <table>
            <tr>
            <td>No</td>
            <td><apex:outputText >Pokok Bahasan</apex:outputText></td>
            <td><apex:outputText >Tindak Lanjut</apex:outputText></td>
            <td><apex:outputText >Status</apex:outputText></td>
            <td><apex:outputText >Target</apex:outputText></td>
            </tr>
            <tr>
            <td>1</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>2</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_2__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_2__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_2__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_2__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>3</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_3__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_3__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_3__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_3__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>4</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_4__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_4__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_4__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_4__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>5</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_5__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_5__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_5__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_5__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>6</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_6__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_6__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_6__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_6__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>7</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_7__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_7__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_7__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_7__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>8</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_8__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_8__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_8__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_8__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>9</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_9__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_9__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_9__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_9__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>10</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_10__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_10__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_10__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_10__c}" label="" cols="40" rows="10" /></td>
            </tr>
            </table>
            </html>
            </apex:pageBlockSection>
        </apex:outputPanel>
        </apex:actionRegion>
        <apex:pageBlockSection title="Detail From SA" columns="1">
            <apex:inputField value="{!Task.Approved_SA__c}"/>
            <apex:inputField value="{!Task.Description_SA__c}"/>
            <apex:inputField value="{!Task.SA__c}"/>
        </apex:pageBlockSection>
        <apex:pageBlockSection title="Additional Information" columns="1">
            <apex:inputField value="{!Task.Priority}"/>
            <apex:inputField value="{!Task.SA__c}"/>
        </apex:pageBlockSection>        
    </apex:PageBlock>
</apex:form>
</apex:page>

But an error happen when we try to create a new task in opportunity and save them

User-added image

We'd like to know why this error occured and what should be revised to solve this error.

Thanks for your great support.
Our customer would like to have a dashboard that display end to end information starting from Lead until Closed Won/Lost. But they want to have special layout of dashboard. They want the dasboard only contain one picture but all of the end to end information can be displayed into this picture.
Are there any solution or workaround for this inquiry.

Thanks for great support

Regards

Andy
Dear Sir/Madam,

Currently we have a request from our client as follow  "When Sales Rep Create a certain task (Customer Visit) and they want to change the task status Completed, they have to fillout minute of meeting form and save them. After saving the form, it should automatically send the minute of meeting via email and update status of task ecome Completed"

We'd make custom a visualforce page as follow:

<apex:page standardController="Task" title="Sample Position Layout Page" showHeader="true" sidebar="true" >
<apex:messages />
<apex:form >
    <apex:pageBlock title="Task" mode="edit" id="thePageBlock">
    <apex:pageBlockButtons >
            <apex:commandButton value="Save" action="{!save}"/>
            <apex:commandButton value="Cancel" action="{!cancel}"/>
    </apex:pageBlockButtons>
    <apex:actionRegion >
        <apex:pageBlockSection title="Information" columns="2">
            <apex:inputField value="{!Task.Subject}"/>
            <apex:inputField value="{!Task.Status}">
            <apex:actionSupport event="onchange" rerender="techSkills"/>
            </apex:inputField>
            <apex:inputField value="{!Task.Approved_SM__c}"></apex:inputField>
            <apex:inputField value="{!task.WhatId}"></apex:inputField>
            <apex:inputField value="{!Task.Description_From_SM__c}"></apex:inputField>
            <apex:inputField value="{!Task.Description__c}"></apex:inputField>
            <apex:inputField value="{!Task.Description}"></apex:inputField>
            <apex:inputField value="{!Task.ActivityDate}">
            </apex:inputField>
            <apex:inputField value="{!Task.OwnerId}">
            </apex:inputField>
        </apex:pageBlockSection>
        <apex:outputPanel id="techSkills">
            <apex:pageBlockSection id="theSection" title="New Section" columns="8" rendered="{!Task.Status == 'Completed' && Task.Subject == 'Customer Visit'}"  >
            <html>
            <table>
            <tr>
            <td>No</td>
            <td><apex:outputText >Pokok Bahasan</apex:outputText></td>
            <td><apex:outputText >Tindak Lanjut</apex:outputText></td>
            <td><apex:outputText >Status</apex:outputText></td>
            <td><apex:outputText >Target</apex:outputText></td>
            </tr>
            <tr>
            <td>1</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>2</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_2__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_2__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_2__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_2__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>3</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_3__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_3__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_3__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_3__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>4</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_4__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_4__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_4__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_4__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>5</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_5__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_5__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_5__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_5__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>6</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_6__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_6__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_6__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_6__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>7</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_7__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_7__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_7__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_7__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>8</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_8__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_8__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_8__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_8__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>9</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_9__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_9__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_9__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_9__c}" label="" cols="40" rows="10" /></td>
            </tr>
            <tr>
            <td>10</td>
            <td><apex:inputTextarea value="{!Task.Pokok_Bahasan_10__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Tindak_Lanjut_10__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Status_10__c}" label="" cols="40" rows="10" /></td>
            <td><apex:inputTextarea value="{!Task.Target_10__c}" label="" cols="40" rows="10" /></td>
            </tr>
            </table>
            </html>
            </apex:pageBlockSection>
        </apex:outputPanel>
        </apex:actionRegion>
        <apex:pageBlockSection title="Detail From SA" columns="1">
            <apex:inputField value="{!Task.Approved_SA__c}"/>
            <apex:inputField value="{!Task.Description_SA__c}"/>
            <apex:inputField value="{!Task.SA__c}"/>
        </apex:pageBlockSection>
        <apex:pageBlockSection title="Additional Information" columns="1">
            <apex:inputField value="{!Task.Priority}"/>
            <apex:inputField value="{!Task.SA__c}"/>
        </apex:pageBlockSection>        
    </apex:PageBlock>
</apex:form>
</apex:page>

But an error happen when we try to create a new task in opportunity and save them

User-added image

We'd like to know why this error occured and what should be revised to solve this error.

Thanks for your great support.
Our customer would like to have a dashboard that display end to end information starting from Lead until Closed Won/Lost. But they want to have special layout of dashboard. They want the dasboard only contain one picture but all of the end to end information can be displayed into this picture.
Are there any solution or workaround for this inquiry.

Thanks for great support

Regards

Andy