• Venkat_rd
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies

Hi Al,

 

Am receiving an unknown exception with out any log being generated for this batch

 

Sandbox

 

Apex script unhandled exception by user/organization: userid/orgid Source organization: 00DU0000000Je6R (null) Failed to process batch for class 'TASAssessmentMigrBatch' for job id '707K0000001AvOJ'

 

caused by: System.AssertException: Assertion Failed: Expected: 200, Actual: 409

 

Class.ConnectToDealmakerAPI.Connect: line 45, column 1

Class.TASAssessmentMigrBatch.execute: line 141, column 1

 

Can any one advise, what could be the possible reason for this kind of eror mail

 

Thanks,

Rupesh Bhatia

Hi,

 

I have the following javascript function to be accessed from apex:checkbox but the method is not getting invoked at all I am not getting the alert..Can somebody say is there any error?

 

 <script type="text/javascript">
       function SetSel(elem)
            {
              alert("Hi");
              var elems = document.getElementsByTagName("{!$Component.theForm.theListBlock.productBlock.selectLine1}");
              var currentState = elem.checked;
              var elemsLength = elems.length;
            
              for(i=0; i<elemsLength; i++)
              {
                if(elems[i].type === "checkbox")
                {
                   elems[i].checked = false;   
                }
              }
            
              elem.checked = currentState;
            }​
   
   </script>



...................

 <apex:outputPanel id="theListBlock">
    <apex:pageBlock mode="edit" id="productBlock">
        <apex:panelGrid cellpadding="2" cellspacing="2" columns="2" width="100%" bgcolor="#E1E6EE">
            <apex:outputPanel >
            <apex:image value="{!URLFOR($Resource.bz,'icons/product.png')}" height="30"/>
            <apex:outputText value="Select Deal Category" styleclass="header"/>
            </apex:outputPanel>
        </apex:panelGrid>
        <apex:pageBlockTable value="{!PWlist}" var="p" rules="cols" rows="50" >
            <apex:column width="25">
            
            
            <apex:inputCheckbox value="{!p.checked}" id="selectLine1" onclick="SetSel(this)"/>
            </apex:column>
            <apex:column headerValue="Deal Category">
                <apex:outputField value="{!p.product.name}"/>
            </apex:column>        
        </apex:pageBlockTable>
    </apex:pageBlock>
    </apex:outputPanel>







....................

 

  • April 04, 2012
  • Like
  • 0

Hi everyone,

 

We're looking to implement a trigger that's based on certain criteria from Subscription object (custom): Zuora__SubscriptionProductCharge__c , updates will be made to Account object (standard). Here's the logic:

 

- if Product_SKU__c equals "A-100001" and Status__c equals "Active" (both under Subscription object) then Social_Media__c (checkbox field under Account equals "True")

- of course after the update, if Status_cc becomes "Inactive", Social_Media__c should become "False"

- please note there could be a few subscriptions with the same data

 

Could someone help come up with the code as well as test code?

 

I'm new to Apex code and since last month I'm trying to learn and find my way around it. So far, my knowledge is very limited.

 

I'd appreciate anyone's help!

 

Thanks

Piotr

Hello

 

I have created a trigger which hits the governor limits. Is there any way to sort this.

 

Here is my trigger code:

trigger sampleTrigger on sample__c (before insert, before update) {

	 
    List<Demo__c> demoCodeList = 
        [SELECT Id, Name FROM Dmeo__c WHERE status_code__c IN ('A', 'B', 'C', 'D', 'E')];
        

	Map<Id,Demo__c> demoCodeMap = new Map<Id, Demo__c>(demoCodeList);
    
    
    for (sample__c sam : trigger.new) {
    	
        if(demoCodeMap.containsKey(sam.demo_code_id__c)) {

            Integer statCount = [Select count() from sample__c 
                where demo_code_id__c IN :demoCodeList
                and year__c = 0];
                

            test__c tt = [select total_sample__c from test__c];
            
            if( statCount >= tt.total_test__c){
                sam.addError('Demo Error');     
            }
            
        }
    }
}

 Thanks in advance.

Is it possible to use fusion charts on visual force ?

If Yes then please let me know with simple example bcoz I am able to use fusioncharts in webpage like html, jsp but I am trying with all my capabilities but not getting any output so please help me whether it is possible or not ?

 

Please tell me how can i do it ?

Thnking you so much if u can help me for this....