• Attempt to reference null exceptionAugust 27

    I am getting the above error at below line. Can someone Please let me know? It should be true or false , why null? Apex class List<Account> Accnt= [select ID , Name , Restricted_Products_vod__c from Account where ID=:Test.Account_abv__c]; if(!Accnt.

  • Label for formula field in 3rd column of PageBlock is wrapping

    Label for formula field in 3rd column of PageBlock is wrappingAugust 27

    No matter what my formula fields label is wrapping. It has plenty of room to unwrap. The PageBlock it's in has 3 columnns in it. This is my formula field <apex:pageBlockSection title="Costs" id="CostsSection" columns="3"&g

  • HTML Email Template Merge field values not coming in emailAugust 27

    I have below code where I have to alter merge field values with record data in a trigger. Apex Trigger trigger ABV_SendEmailToOwner on Form_Requests_abv__c (after update) { Form_Requests_abv__c i=[select Account_abv__c , Address_abv__c , Campaign_Nam

  • System.AssertException: Assertion Failed: Expected: SQL, Actual: nullAugust 27

    I have the following test class LeadTriggerTest which fails with the following error: System.AssertException: Assertion Failed: Expected: SQL, Actual: null Class.LeadTriggerTest.converted_opp_contacts_are_sql: line 31, column 1 Below is the code: @is

  • Skip column in PageBlockSectionAugust 27

    So I have too much padding between fields within a PageBlockSection. I have 3 columns, so to reduce the padding between fields I created 4 columns. How can I skip a column to force the next PageBlockSectionItem in a new row. <apex:pageBlockSection ti

  • How do I write a test class for trigger below, can't seem to get itAugust 27

    trigger PostCustTrip on New_Trip_Reports__c (after update) { For (New_Trip_Reports__c ntr :Trigger.new){ If (ntr.SubmitStatusCust__c == true){ FeedItem post = new FeedItem(); post.ParentId = '0F9K00000000Fb0'; post.Body = ntr.CustomerName__c; post.ti

  • ExactTarget / AMPscript return position value in array error: System.Data.DataRowAugust 27

    I have an array from where I need to retrieve specific positions values. I can see the whole array when I call it directly but when I call a position I receive this in ET: System.Data.DataRow AMPscript block: SET @M1_info_array = BuildRowsetFromStrin

  • SOQL query for related child informationAugust 26

    I'm trying to build a SOQL query to show the Name, Services and Contacts for accounts that have a relationship to a particular custom object, but I feel I'm missing something here: SELECT Name, ServiceAccountAssociation__r.Name, Account.Contact.Name

  • How to map the encrypted values which are coming from the external system with custom setting values in salesforce?August 26

    I have custom setting"CountryCodeMapping__c" to map the country values which has 2 fields, Salesforce_CoutryValue__c ExtSystem_CountryValue__c This custom setting has used in Apex class where we are mapping the country field with external system

  • Upgrade from 2.7.2 to 2.10.3 - stuck loginAugust 26

    I just went through the upgrade process from 2.7.2 to 2.10.3. Now when I try to login, the login page just refreshes. I've tried different browsers and restarting browsers. No error messages, just a page refresh. Anyone else run into this?

  • Problem Pulling Field Info Into PageAugust 26

    I'm having issues posting fields from individual entries to my sites pages. For example, I'm trying to post a form that changes based on the specific type of page that it's on (my Marketing Automation tool requires different information for each form

  • exp:channel:entries not working by any meansAugust 26

    I cannot get any queries to work using exp:channel:entries. {exp:channel:entries orderby="date" start_on="2015-07-01 20:00" channel="shipments" limit="10" dynamic="no"} <p>inloop</p> {/exp:chan

  • Field values getting replaced with admin email on save in 2.9.2August 26

    We have been running into a strange, intermittent issue on one of our client sites where field data is being replaced with the active admin's email address on save when editing entries. Entry types have included a Title field for a standard channel e

  • Adding items in a listAugust 26

    I wrote a function that adds items in a list, but my professor says to try and write it in a simpler way because he says I take too many steps. Is there any other way to write this? def additems(self, item): """Add <item> to this Prio

  • Seconds - Days, Hours, Minutes, and SecondsAugust 25

    This is just a simple function to convert seconds to days, hours, minutes and seconds for a larger app I'm going to be building. I'm just looking for thoughts on it. import math def convert_seconds(x): # Day's days = x / 86400 fraction, whole = math.

  • Optimize KnockoutJs Pagination Computed FunctionAugust 25

    I have written a function that builds an array of paging options for rendering on the view. I have modelled it after DataTables for jQuery, a live example with lots of data is available here: http://www.companieshousedata.co.uk/a/490 Is there a bette

  • Dealing with a lot of granular details for a modelAugust 25

    We have a model that represents an item for sale with a lot of attributes. They are mostly boolean columns like has_this_feature has_that_feature, a few with string values like color: red. There are also other details that are not details describing

  • Computing the divisor sum in bulk without division, multiplication or factorisation (SPOJ DIVSUM)August 25

    SPOJ problem #0074 DIVSUM - Divisor Summation requires computing the sums of proper divisors in bulk (200000 test cases, time limit 3 seconds): Given a natural number n (1 <= n <= 500000), please output the summation of all its proper divisors. Defi

  • GIS feature labeling and removal of None or Empty fieldsAugust 25

    I was using dictionary key:values but sometimes the keys would have the same value so my items were 'disappearing' out of the dictionary. Now I use this simple counter to group my values from a list (0,1) (2,3) (4,5). I think the if functions might b

  • Allowing internal employees to request suppliesAugust 25

    Business rules: This application is for internal employees to request supplies. All requests must be approved my the persons manager. In the database, a manager is an employee, with a self referencing key joining an employees managerid to the manager

Copyright (C) 2016 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.651 s.