Skip to main content

Posts

Showing posts from May, 2020

Filter any report by current Logged In User in Salesforce | Salesforce Tutorials | Salesforce Development

Multipurpose VF #Component to Add Multiple Records on a Button's Click | #Salesforce Tutorials

Hello folks, 
In this article I will create a Visualforce component to add Contact records in a list on click of a button then I will save all records together on a single button's click.
As well as with add button I will also create a delete button in list, to delete a particular contact record from the list.
I am using this page on Account Details page that's why I am getting the Account ID from URL. If you are running it as separate VF page so you have to put the Account ID manually in the Controller.
It could be useful in a scenario where you want to add multiple records on a single button's click. I.E an order taking application for restaurant or a billing system in a super market
Please follow below code : 
AddContactVF 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 6…

Spinner in Visualforce Page without Controller | #Salesforce Tutorials | #Salesforce Beginner

Hello guys,In this article I will write a very basic css code to display spinner in Visualforce page on button's click without using any controller.
Add below style in your Visualforce page :  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22<style>.spinnerBg{ width:100%; height:100%; position:absolute; background-color:#000; opacity:0.1; z-index:999999; } .spinner{ width:100%; height:100%; position:absolute; background-image:url("/img/loading32.gif"); background-size:56px; background-repeat:no-repeat; background-attachment:fixed; background-position:center; z-index:9999999; opacity:1; } </style>

After the style add below code in VF page 1 2 3 4 5 6 7 8<apex:actionStatusid="spinnerStatus"><apex:facetname=…

Custom Aura Feed Component | forceChatter:feed | Chatter in Salesforce

Hello guys, 
In this article I will create a custom aura feed component with two picklists to select Group and then based on the Group selection, select user inside that Group and display the chatter of that particular user.
Please follow the code below : 
FeedComponent.cmp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23<aura:componentcontroller="feedComponentCTRL"implements="force:appHostable"><aura:handlername="init"value="{!this}"action="{!c.doInit}"/><aura:attributename="options"type="List"/><aura:attributename="type"type="String"default="News"description="The type of feed"access="GLOBAL"/><aura:attributename="types"type="String[]"default="Bookmarks,Company,DirectMessages,Feeds,Files,Filter,Groups,Home,Moderation,Mute,News,PendingReview,Record,Streams,To,Topics,UserProfile"description="…