Category: Salesforce
How to Remove Empty Objects From Array In CakePHP
In CakePHP, to remove empty or ‘false’ values from an Array, use CakePHP’s static ‘filter’ method contained in ‘Hash’ class: $sampleArray = [ , false, true, 0, [‘one, ‘two, ‘three’] ] $sampleArray = Hash::filter($sampleArray); Here’s the array after filter method
How to Optimize Layout for Different iOS Screen Sizes
We were stuck on a problem with new auto layout interface while trying to adjust contents within the screen but changing the property for a single element was disturbing whole layout. Optimized layout was working only for one device for
SFDC Apex – Get list of all the file names from Amazon S3 bucket
I have two buckets in AWS S3. For one of the buckets, code given below returns all the file names (more than 1000) but the same code returns only 1000 file names for 2nd bucket: ObjectListing objects = s3.listObjects(“bucket.new.test”); do