Piyush
IndividualForum Replies Created
-
Piyush
MemberDecember 12, 2019 at 7:21 am in reply to: How to pass records on onclick for apex checkbox to controller in Salesforce vf page?Hi Deepak,
create a variable in your controller
public String selectedLetterID {get;set;}
Then set it with the param tag.
<apex:inputfield value="{!letter.Suppressed__c}" id="suppressBox" onclick="SupressLetter('{!letter.Id}');return false;"/> <apex:actionFunction name="SupressLetter" action="{!suppressLetter}" rerender="out"> <apex:param name="firstparam" assignto="{!selectedLetterID}" value="" /> </apex:actionFunction>
for more check:-
https://developer.salesforce.com/forums/?id=906F000000098K2IAI
-
Piyush
MemberDecember 12, 2019 at 7:18 am in reply to: How to create a output fields side by side in Salesforce vf page?Hi,
Have a look to the following code for create a output fields side by side in Salesforce vf page:-
<apex:panelGrid columns="3" style="table-layout: fixed" width="100%"> <!-- column 1 --> <apex:pageBlockSection columns="1"> <apex:outputField value="{!test.Name}" /> <apex:outputField value="{!test.Cost__c}" /> <apex:outputField value="{!test.Amount}" /> </apex:pageBlockSection> <!-- column 2 --> <apex:panelGrid columns="1"> <apex:outputLabel value="Address" /> <apex:outputField value="{!Contact.MailingStreet}" /> <apex:outputField value="{!Contact.MailingCity}" /> <apex:outputField value="{!Contact.MailingState}" /> <apex:outputField value="{!Contact.MailingPostalCode}" /> <apex:outputField value="{!Contact.MailingCountry}" /> </apex:panelGrid> <!-- column 3 --> <apex:map width="450px" height="200px" mapType="roadmap" zoomLevel="15" center="{!Contact.MailingStreet},{!Contact.MailingCity},{!Contact.MailingState},{!Contact.MailingPostalCode},{!Contact.MailingCountry}"> </apex:map> </apex:panelGrid>
-
Piyush
MemberDecember 12, 2019 at 7:13 am in reply to: How to show four columns for output field in one page section in the Salesforce vf page?Hi Deepak,
check the code and take help from this code:-
https://salesforce.stackexchange.com/questions/34385/pageblocksection-with-4-columns
<apex:page standardController="Account"> <apex:form > <table width="100%"> <tr> <td> <apex:outputLabel value="Field1" style="font-weight:bold"/> <apex:outputField value="{!Account.Field1__c}"/> </td> <td> <apex:outputLabel value="Field2" style="font-weight:bold"/> <apex:outputField value="{!Account.Field2__c}"/> </td> <td> <apex:outputLabel value="Field3" style="font-weight:bold"/> <apex:outputField value="{!Account.Field3__c}"/> </td> <td> <apex:outputLabel value="Field4" style="font-weight:bold"/> <apex:outputField value="{!Account.Field4__c}"/> </td> </tr> <tr> <td> <apex:outputLabel value="Field5" style="font-weight:bold"/> <apex:outputField value="{!Account.Field5__c}"/> </td> <td> <apex:outputLabel value="Field6" style="font-weight:bold"/> <apex:outputField value="{!Account.Field6__c}"/> </td> <td> <apex:outputLabel value="Field7" style="font-weight:bold"/> <apex:outputField value="{!Account.Field7__c}"/> </td> <td> <apex:outputLabel value="Field8" style="font-weight:bold"/> <apex:outputField value="{!Account.Field8__c}"/> </td> </tr> </table> </apex:form> </apex:page>
-
Piyush
MemberDecember 12, 2019 at 7:11 am in reply to: How to set Debug logs for a community User in salesforce?Hi Prachi,
Have a look to the following UrL to set Debug logs for a community User in salesforce:-
http://www.infallibletechie.com/2017/09/how-to-set-debug-log-for-community.html
-
Piyush
MemberDecember 12, 2019 at 5:59 am in reply to: How to insert hierarchy custom setting record in Salesforce?Hi,
Go to Setup >> Develop >> Custom Settings. Click Manage next to one of the hierarchy type custom settings. Click New at the top of the page to add a new default. Click Save and the error message occurs.
-
Piyush
MemberDecember 12, 2019 at 5:56 am in reply to: Is there a way to check a debug statement belongs to which class in Salesforce?Hi Deepak,
Check the following URL for heck a debug statement belongs to which class in Salesforce:-
-
Piyush
MemberDecember 12, 2019 at 5:54 am in reply to: How to make actions from notifications in Salesforce?Hi,
Make sure that the custom notification type you want to call from your process exists. If not, create the notification type. Drag a Core Action element onto the canvas. In the Core Action field, enter Notifications , and select Send Custom Notification.
-
Piyush
MemberDecember 4, 2019 at 5:19 am in reply to: When we should use aura:handler in Salesforce lightning component ?Hi,
In lightning component <aura:handler... > is used for handle standard and custom events
we can create our custom lightning event and also use standard events, standard lightning event is automatically fired when related event is fire
standard event like -:
1. aura:valueInit - : Indicates that an app or component has been initialized.
This event is automatically fired when an app or component is initialized, prior to rendering. The aura:valueInit event is handled by a client-side controller. A component can have only one <aura:handler name="init"> tag to handle this event.Ex:-
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>2.aura:waiting -: Indicates that the app or component is waiting for a response to a server request. This event is fired before aura:doneWaiting.
This event is automatically fired when a server-side action is added using $A.enqueueAction() and subsequently run, or when it’s expecting a response from an Apex controller. The aura:waiting event is handled by a client-side controller. A component can have only one <aura:handler event="aura:waiting"> tag to handle this event.Ex:-
<aura:handler event="aura:waiting" action="{!c.showSpinner}"/>3. aura:doneWaiting - : Indicates that the app or component is done waiting for a response to a server request. This event is preceded by an aura:waiting event. This event is fired after aura:waiting.
This event is automatically fired if no more response from the server is expected. The aura:doneWaiting event is handled by a client-side controller. A component can have only one <aura:handler event="aura:doneWaiting"> tag to handle this event.
Ex:-
<aura:handler event="aura:doneWaiting" action="{!c.hideSpinner}"/> -
Piyush
MemberDecember 4, 2019 at 5:17 am in reply to: What is the use of aura:waiting in Salesforce lightning?Hi,
aura:waiting : This event is automatically fired when a server-side (apex) action is added using $A. enqueueAction() , or when it's expecting a response from an Apex controller. it's always fired before aura:doneWaiting event. aura:waiting event is handled by a client-side (javaScript)controller.
-
Piyush
MemberDecember 4, 2019 at 5:16 am in reply to: What is the use of aura:doneWaiting in Salesforce lightning component?Hi,
This event indicates that the app is done waiting for response to a server request. This event is fired after aura:waiting. This event is automatically fired if no more response from the server is expected. This event is also handled by a client-side controller.
-
Piyush
MemberDecember 4, 2019 at 5:14 am in reply to: How to create a Community User with a Trigger in Salesforce?Hi,
Have a look to the below code:-
trigger UserFromContact on Contact (after insert) { set<ID> conids = new set<ID>(); for(Contact c : trigger.new){ if(c.accountid != Null && c.recordtype ='Customer_Contact'){ conids.add(c.id); } } List<contact> conlist = [select id,email,firstName,lastname,accountId from Contact where Id IN : conids]; List<user> usr = new List<user>(); for(Contact con : conlist){ string nick = con.email!=null?con.email.substring(0, con.email.indexOf('@')):''; nick += Datetime.now().getTime(); User newUser = new User( alias = ('con.firstName'), email = con.email, emailencodingkey = 'UTF-8', firstname = con.firstName, lastname = con.lastname, languagelocalekey = 'en_US', localesidkey = 'en_US', contactId = con.Id, timezonesidkey = 'America/Los_Angeles', username = con.email, CommunityNickname = nick, ProfileId = '00e1a000000V5BU', IsActive = true); usr.add(newUser); } Insert usr; }
Check the following url for more:-
https://developer.salesforce.com/forums/?id=906F00000005HPlIAM
-
Piyush
MemberDecember 3, 2019 at 8:35 am in reply to: How to clone an custom object fields to Opportunity object in Salesforce?Hi,
Write a trigger like this:
trigger CloneOpp on Opportunity (after update){ Custom_Object__c[] ls=new Custom_Object__c[]{}; for(Opportunity o: trigger.new){ Custom_Object__c obj=new Custom_Object__c(); //Assign whichever values you want to clone to the fields of your custom object, for example: //obj.name=o.name; ls.add(obj); } insert ls; }
For More look at the Url:- https://developer.salesforce.com/forums/?id=9060G0000005cUUQAY
-
Piyush
MemberDecember 3, 2019 at 8:33 am in reply to: How to remove elements from a list in apex on button click in Salesforce?Hi,
Check the following Url to remove elements from a list in apex on button click:-
-
Piyush
MemberDecember 3, 2019 at 8:31 am in reply to: When to use .getElementbyId() in Salesforce lightning component?Hi,
You can have a look to the following user when use .getElementbyId() in lightning component:-
-
Piyush
MemberNovember 29, 2019 at 8:10 am in reply to: how to open multiple screens at a time in Salesforce lightning accordian?Hi,
Only in the custom accordion component the users are able to expand sections. But in the custom component we are not able to add other Salesforce standard components like Knowledge, single related lists, etc.
-
Piyush
MemberNovember 29, 2019 at 5:11 am in reply to: Is it possible to programatically change Salesforce connectedApp Settings in production in Salesforce?Hi,
The general rule is that you can't package any settings that would allow granting 'system' permissions. That is, permissions that affect more than just the objects/schema that your package contains.
For example, you can't package CRUD/FLS on Standard Objects and you can't grant System Permissions like ModifyAllData via a Profile or Perm Set that you package. Similarly, any Remote Site Setting that you package can only be deployed into the org in an 'inactive' state via push upgrade or the user needs to explicitly agree to activate it if they do an interactive install.
To your question about Connected Apps -- yes, we had the same problem with a Connected App we package for a Canvas app -- and yes, the admin of the org manually needs to flip the Admin Users are Pre-authorized setting.
-
Piyush
MemberNovember 29, 2019 at 4:49 am in reply to: How can I use Salesforce Marketing cloud Rest API in Client side?Hi,
Check the following Url for your query to use Marketing cloud Rest API:-
https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/index-api.htm
-
Piyush
MemberNovember 28, 2019 at 9:19 am in reply to: How to make header values dynamic in a table of records while showing in a Salesforce Visualforce page?Hi,
To make header values dynamic in a table of records while showing in a vf page CHECK THE uRL:-
https://developer.salesforce.com/forums/?id=906F00000008pDtIAI
-
Piyush
MemberNovember 28, 2019 at 9:13 am in reply to: How to write map and list with country and languages in Salesforce?Hi Prachi,
please gave the proper description of your question /Elavorate you question . I am not getting your question.
-
Piyush
MemberNovember 28, 2019 at 9:10 am in reply to: How to save data in custom setting from a Salesforce lightning component?Hi Yogesh,
Ckeck the following Url for your query:-
https://developer.salesforce.com/forums/?id=9060G000000MV7vQAG
-
Piyush
MemberNovember 28, 2019 at 9:07 am in reply to: How to add partner members to partner community portal in Salesforce?Hi Deepak,
- Select the Partner Community User profile. (If you don't see the profile, change the search to All.)
- Click Add.
- Click Save
For more check the Url:-
-
Piyush
MemberNovember 28, 2019 at 9:04 am in reply to: How can I create a process builder to set multiple field values in Salesforce?Hi Deepak,
Have a look on following Url to create a process builder to set multiple field values in Salesforce:-
https://help.salesforce.com/articleView?id=process_action_update.htm&type=5
-
Piyush
MemberNovember 28, 2019 at 9:02 am in reply to: How to implement process indicator in Salesforce lightning component?Hi Yogesh,
Check the following code for implementation of process indicator in a lightning component:-
<aura:component> <lightning:progressIndicator currentStep="3" type="base" hasError="true" variant="base"> <lightning:progressStep label="Step 1" value="1"/> <lightning:progressStep label="Step 2" value="2"/> <lightning:progressStep label="Step 3" value="3"/> <lightning:progressStep label="Step 4" value="4"/> </lightning:progressIndicator> </aura:component>
-
Piyush
MemberNovember 27, 2019 at 4:55 am in reply to: how to implement a generic header in a vf page in Salesforce?Hi Yogesh,
You can see the following link for the implementation of header in visualforce page:
https://developer.salesforce.com/forums/?id=906F00000008tCzIAI
-
Piyush
MemberNovember 27, 2019 at 4:38 am in reply to: What is the use of Dell Boomi in salesforce?Hi,
Dell Boomi AtomSphere is an on-demand multi-tenant cloud integration platform for connecting cloud and on-premises applications and data. The platform enables customers to design cloud-based integration processes called Atoms and transfer data between cloud and on-premises applications.