tag:blogger.com,1999:blog-731140267683408120.post3746426464018512660..comments2024-03-28T05:02:55.851-07:00Comments on ForceGuru: Display Picture in ContactAnkit Arorahttp://www.blogger.com/profile/07295779903774280810noreply@blogger.comBlogger29125tag:blogger.com,1999:blog-731140267683408120.post-36186633521961592112022-04-07T00:12:32.990-07:002022-04-07T00:12:32.990-07:00Forceguru: Display Picture In Contact >>>...Forceguru: Display Picture In Contact >>>>> <b><a href="http://weurl.top/dDy33?97" rel="nofollow">Download Now</a></b><br><br>>>>>> <b><a href="http://weurl.top/dDy33?61" rel="nofollow">Download Full</a></b><br><br>Forceguru: Display Picture In Contact >>>>> <b><a href="http://weurl.top/dDy33?32" rel="nofollow">Download LINK</a></b><br><br>>>>>> <b><a href="http://weurl.top/dDy33?48" rel="nofollow">Download Now</a></b><br><br>Forceguru: Display Picture In Contact >>>>> <b><a href="http://weurl.top/dDy33?98" rel="nofollow">Download Full</a></b><br><br>>>>>> <b><a href="http://weurl.top/dDy33?51" rel="nofollow">Download LINK</a></b> eB Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-16145565522556093372022-04-07T00:12:09.395-07:002022-04-07T00:12:09.395-07:00Forceguru: Display Picture In Contact >>>...Forceguru: Display Picture In Contact >>>>> <b><a href="http://weurl.top/dDy33?97" rel="nofollow">Download Now</a></b><br><br>>>>>> <b><a href="http://weurl.top/dDy33?61" rel="nofollow">Download Full</a></b><br><br>Forceguru: Display Picture In Contact >>>>> <b><a href="http://weurl.top/dDy33?32" rel="nofollow">Download LINK</a></b><br><br>>>>>> <b><a href="http://weurl.top/dDy33?48" rel="nofollow">Download Now</a></b><br><br>Forceguru: Display Picture In Contact >>>>> <b><a href="http://weurl.top/dDy33?98" rel="nofollow">Download Full</a></b><br><br>>>>>> <b><a href="http://weurl.top/dDy33?51" rel="nofollow">Download LINK</a></b> KA Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-39936840089274214962016-08-10T03:58:03.276-07:002016-08-10T03:58:03.276-07:00My Test Class so far
@isTest(SeeAllData=True)
pri...My Test Class so far<br /><br />@isTest(SeeAllData=True)<br />private class Facelift_Test_DisplayImages {<br /><br /> static testmethod void Facelift_Ctr_DisplayImages_Test()<br /> {<br /> Running_Action__c ra = new Running_Action__c(Name='My Action');<br /> insert ra;<br /> <br /> Attachment attach=new Attachment();<br /> attach.Name='https://myscreenshot.png';<br /> Blob bodyBlob=Blob.valueOf('Unit Test Attachment Body');<br /> attach.body=bodyBlob;<br /> attach.parentId=ra.Id;<br /> attach.ContentType = 'image/jpeg';<br /> attach.IsPrivate = false;<br /> attach.Description = 'Test';<br /> insert attach;<br /> <br /> Facelift_Ctr_DisplayImages controller = new Facelift_Ctr_DisplayImages();<br /> <br /> controller.selectedImage=(String)attach.get(Schema.Attachment.Name);<br /> controller.SaveImage();<br /> <br /> System.assertNotEquals(null,controller.getItems());<br /> system.assertEquals(true,controller.validateImage(controller.selectedImage));<br /> system.assertEquals(0, controller.getItems().size());<br /> }<br />}MarcoWhttps://www.blogger.com/profile/15361455962867747366noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-13368023838452591952016-08-10T03:56:59.599-07:002016-08-10T03:56:59.599-07:00Did you get a test class that have a code coverage...Did you get a test class that have a code coverage bigger than 75%?<br />I created a test class, but only reached 70%MarcoWhttps://www.blogger.com/profile/15361455962867747366noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-87515224053680970302016-04-20T11:24:49.879-07:002016-04-20T11:24:49.879-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/04244223503531228624noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-56086273771722528812016-03-18T01:45:25.584-07:002016-03-18T01:45:25.584-07:00i replaced this javascript when i am clicking on t...i replaced this javascript when i am clicking on this page is refereshing but popup is not coming for selecting picture.Suresh Kumarhttps://www.blogger.com/profile/05978755855451662354noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-41825970333104523842016-03-18T00:31:41.452-07:002016-03-18T00:31:41.452-07:00i replaced this javascript when i am clicking on t...i replaced this javascript when i am clicking on this page is refereshing but popup is not coming for selecting picture.Suresh Kumarhttps://www.blogger.com/profile/05978755855451662354noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-59246475781951506282016-03-18T00:25:36.910-07:002016-03-18T00:25:36.910-07:00hi,
i uploaded a image in notes and attachments,b...hi,<br /><br />i uploaded a image in notes and attachments,but when i am clicking on the set picture button no pop up is displaying on the screen.How to overcome this.<br /><br />thanks,<br />SureshSuresh Kumarhttps://www.blogger.com/profile/05978755855451662354noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-18472241754567145442015-05-27T16:45:39.732-07:002015-05-27T16:45:39.732-07:00Replace custom javascript code as below
window.o...Replace custom javascript code as below <br /><br />window.open('/apex/DisplayImages?Id={!Contact.Id}','_self');Anonymoushttps://www.blogger.com/profile/05744878502926356409noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-2187576693443447202015-03-03T10:42:19.964-08:002015-03-03T10:42:19.964-08:00Has anyone else encountered the error:
"A pro...Has anyone else encountered the error:<br />"A problem with the OnClick JavaScript for this button or link was encountered: undefined is not a function"<br />Any ideas on how to resolve?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-80802394991079881912014-02-05T05:55:14.394-08:002014-02-05T05:55:14.394-08:00So i just did it in a rich text field because i ha...So i just did it in a rich text field because i had the image url. It was pretty straightforward. I just wrapped the url in a image tagAnonymoushttps://www.blogger.com/profile/13514640016203932791noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-2274394699132362232014-01-09T00:04:33.012-08:002014-01-09T00:04:33.012-08:00Good idea!
How about using AttachmentTrigger to ...Good idea! <br /><br />How about using AttachmentTrigger to set "StoreImageUrl"? So user just needs one step to do every thing: upload a image file ...Kaonhttps://www.blogger.com/profile/02489292955913525282noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-83346010050073071372013-12-17T14:32:47.168-08:002013-12-17T14:32:47.168-08:00I'm also having the same issue with the field ...I'm also having the same issue with the field placement - it simply sits on the page layout and doesn't override the contact default image... Isn't that what it is supposed to do?<br />Here's a screenshot:<br />https://dl.dropboxusercontent.com/u/85602335/screenshotSFDC.pngAnonymoushttps://www.blogger.com/profile/08383696972661905040noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-27795513360214333432013-07-24T03:22:38.246-07:002013-07-24T03:22:38.246-07:00Every thing is going fine i am facing problem at &...Every thing is going fine i am facing problem at &nbsp field. how to display it at top of page layout.Anonymoushttps://www.blogger.com/profile/00256430974652227700noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-84998052935118806872012-12-20T18:45:06.327-08:002012-12-20T18:45:06.327-08:00in the get(Exmp-getMethodName) method you query th...in the get(Exmp-getMethodName) method you query the records from object and display in VF page by calling-{!MethodName}...Anonymoushttps://www.blogger.com/profile/04118209982729494038noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-57360409715502688652012-09-27T02:28:50.055-07:002012-09-27T02:28:50.055-07:00Hai
how to display existing records from the obje...Hai <br />how to display existing records from the object through vf page,can any one explain?Gireeshhttps://www.blogger.com/profile/05573776244431758150noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-25270206259610295752012-08-03T21:37:50.181-07:002012-08-03T21:37:50.181-07:00Hi Ankit,
When i use attachments, my higher p...Hi Ankit,<br /><br /> When i use attachments, my higher people in Role Hierarchy can view this image, but will my subordinates be able to view this image?phanirajhttps://www.blogger.com/profile/07523721149664141746noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-34135672100554206592012-08-03T08:24:35.007-07:002012-08-03T08:24:35.007-07:00I like this solution. How hard would it be to alt...I like this solution. How hard would it be to alter the concept slightly to allow users to do something similar in Opportunity. Open notes and attachments, select a pdf and then send it as an attachment in an email? <br /><br />It seems like the two would be somewhat similar in code to start with (albeit the ending code would be quite different).Anonymoushttps://www.blogger.com/profile/16047719633706799659noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-13155355468277359322012-04-09T22:41:01.854-07:002012-04-09T22:41:01.854-07:00Hi,
I trying to generate and attach pdf file in ac...Hi,<br />I trying to generate and attach pdf file in acccount object...<br /><br /> Attachment a = new Attachment();<br /> String str = "Salesforce";<br /> byte[] body = str.getBytes();<br /> a.setName("Signature");<br /> a.setParentId("0019000000A0AVGAA3");<br /> a.setContentType("application/pdf");<br /> a.setBody(body);<br /> SObject obj[] = new SObject[1];<br /> obj[0] = (SObject) a;<br /> connection.create(obj);<br /> System.out.println("Completed");<br /><br />Code attached the PDF file....but when i Open it "Failed to Load Pdf" in Google Chrome and<br />File does not begins with %pdf in IE/Mozilla.<br /><br />Please help me out..<br /><br />Regards<br />SaurabhSaurabhhttps://www.blogger.com/profile/05349231391048323521noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-69842211286170606502011-09-14T00:34:52.176-07:002011-09-14T00:34:52.176-07:00Great Job with well explanation of StepsGreat Job with well explanation of StepsTusharhttps://www.blogger.com/profile/12265485628681857192noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-54660554302317594982011-08-08T17:13:11.198-07:002011-08-08T17:13:11.198-07:00trying to get this from my Sandbox to my Productio...trying to get this from my Sandbox to my Production but I am getting this:<br /><br />"Average test coverage across all Apex Classes and Triggers is 0%, at least 75% test coverage is required."Unknownhttps://www.blogger.com/profile/04385844285191890980noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-6548677458410991072011-08-05T15:25:21.931-07:002011-08-05T15:25:21.931-07:00this is great, got it to work in contacts now tryi...this is great, got it to work in contacts now trying to figure it out for Person Account pagesUnknownhttps://www.blogger.com/profile/04385844285191890980noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-56539283330064192742011-07-30T07:20:20.309-07:002011-07-30T07:20:20.309-07:00Nicely doneNicely doneJavier Gonzalezhttps://www.blogger.com/profile/10563839437658939181noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-27129539449706209102011-07-29T13:25:16.130-07:002011-07-29T13:25:16.130-07:00Hmm ya ok well when I view it is:
https://c.cs4.c...Hmm ya ok well when I view it is:<br /><br />https://c.cs4.content.force.com/servlet/servlet.FileDownload?file=<br /><br />in my Salesforce. I went to the Apex code you have and changed the lines https://c.ap1.content.force.com/servlet/servlet.FileDownload?file= <br /><br />to<br /><br />https://c.cs4.content.force.com/servlet/servlet.FileDownload?file=<br /><br />on line 52 but it did not work unfortunately.<br /><br />Any thoughts??Unknownhttps://www.blogger.com/profile/04385844285191890980noreply@blogger.comtag:blogger.com,1999:blog-731140267683408120.post-73011249845270726692011-07-29T10:55:28.739-07:002011-07-29T10:55:28.739-07:00When you upload the image in notes and attachment ...When you upload the image in notes and attachment salesforce creates a public URL for it. You can use the URL anywhere. Something like hosting an image on imageshack.<br /><br />So just click on "View" of the file uploaded in notes and attachment. URL will look something like this <br /><br />"https://c.ap1.content.force.com/servlet/servlet.FileDownload?file=XXXXXXXXXXXXXXX"<br /><br />My concerns was just to verify your base URL.Ankit Arorahttps://www.blogger.com/profile/07295779903774280810noreply@blogger.com