• KiranSFDC
  • NEWBIE
  • 25 Points
  • Member since 2014

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi, 

 I am trying to create a trigger that will update a field on the Account based on an Event being marked as complete - the problem i have is that I only want the trigger to fire when the Activity Date is in the Current Fiscal Quarter. I have tried using 
ActivityDate == FISCAL_QUARTER() 
and THIS_FISCAL_QUARTER()
but neither has worked ... any ideas on how I can achieve this ?
thanks
Hi, 

 I am trying to create a trigger that will update a field on the Account based on an Event being marked as complete - the problem i have is that I only want the trigger to fire when the Activity Date is in the Current Fiscal Quarter. I have tried using 
ActivityDate == FISCAL_QUARTER() 
and THIS_FISCAL_QUARTER()
but neither has worked ... any ideas on how I can achieve this ?
thanks
I have the following code, that is pulling from one case and creating another with this additional information in the pop-up.  If there is a value in any of these fields I don't want it to show up in the pop-up, I want all the fields to be blank.  How do I accomplish this?

<apex:page standardController="Case" extensions="CW_recurringIncident">
<apex:form id="frm">
<apex:detail subject="{!Case.Id}" relatedList="false" title="false"/>
<apex:outputPanel id="tstpopup" rendered="{!IF(isDisplayPopUp ==true,true,false)}" >
<apex:outputPanel styleClass="popupBackground" layout="block" />
<apex:outputPanel styleClass="custPopup" layout="block">
<apex:pageMessages >
</apex:pageMessages>
<apex:pageBlock >
<apex:pageBlockSection columns="2">
<apex:inputField label="Service Restoration Description" value="{!Case.Service_Restoration__c}" required="true"/>
<apex:inputField label="Incident Start" value="{!Case.Incident_Start__c}" required="true" />
<apex:inputField label="Service Restored" value="{!Case.Incident_Resolved__c}" required="true"/>
<apex:inputField label="Incident First Response" value="{!Case.Incident_First_Response__c}" required="true"/>
<apex:inputField label="Defect Type" value="{!Case.Defect_Type_Multi__c}" required="true"/>



<apex:outputPanel >
<apex:CommandButton action="{!save}" value="Save"/>
<apex:CommandButton action="{!cancel}" value="Cancel"/>
</apex:outputPanel>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:outputPanel>
</apex:outputPanel>





</apex:form>



<style type="text/css"> .errorMsg{ width:159px; }
.custPopup{ background-color: white; border-width: 3px;
border-style: solid;
z-index: 9999;
left: 25%;
padding:10px;
position: absolute;
width: 1000px;
//margin-left: -80px; top:100px; margin-left: -170px;
//top:305px;
border-radius: 5px;
}

.datePicker{z-index:10000}



.popupBackground{ background-color:black; opacity: 0.20; filter: alpha(opacity = 20);
position: absolute; width: 100%; height: 100%; top: 0; left: 0;
z-index: 997 } a.actionlink:hover{ text-decoration:underline; }
.customactionLink { color: #015BA7; font-weight: normal; text-decoration: none; } </style>

<script>
      function setFocusOnLoad() { }
</script>
</apex:page>
  • April 15, 2014
  • Like
  • 0