Forum Replies Created

Page 1 of 3
  • Hi,

    The following are methods for DynamicPickList.

    clone()
    Makes a duplicate copy of the VisualEditor.DynamicPicklist object.
    getDefaultValue()
    Returns the picklist item that is set as the default value for the picklist.
    getLabel(attributeValue)
    Returns the user-facing label for a specified picklist value.
    getValues()
    Returns the list of picklist item values.
    isValid(attributeValue)
    Returns the valid state of the picklist item’s value. A picklist value is considered valid if it’s a part of any VisualEditor.DataRow in the VisualEditor.DynamicPickListRows returned by getValues().

  • Hi,

    <aura:set> is used to set the value of an attribute inherited from a component or event.

  • Hi,

    You can use apex:outputText

     

  • Hariom Chaudhary

    Member
    September 19, 2019 at 11:41 am in reply to: What are the object relationships supported by salesforce?

    Hi,

    Following relationships are possible:

    1.Master-detail relationship.
    2.Lookup relationship.
    3.Self-relationship.
    4.External lookup relationship.
    5.Indirect lookup relationship.
    6.Many-to-many relationship (junction object)
    7.Hierarchical relationship.

  • Hariom Chaudhary

    Member
    September 17, 2019 at 9:50 am in reply to: Pagination in salesforce

    Pagination is the process of displaying large number of records and displaying the records on multiple pages within in Salesforce. By default, a list controller returns 20 records on the page.

    To customize it, we can use a controller extension to set the pageSize. Take a look at the sample code below:

    <apex:page standardController="Opportunity" extensions="opp" recordSetVar="opportunities">
    <apex:pageBlock title="Viewing Opportunities">
    <apex:form id="theForm">
    <apex:pageBlockSection >
    <apex:dataList var="opp" value="{!opportunities}">
    {!opp.Name}
    </apex:dataList>
    </apex:pageBlockSection>
    <apex:panelGrid columns="4">
    <apex:commandLink action="{!first}">FIRST</apex:commandLink>
    <apex:commandLink action="{!next}">NEXT</apex:commandLink>
    <apex:commandLink action="{!previous}">PREVIOUS</apex:commandLink>
    <apex:commandLink action="{!last}">LAST</apex:commandLink>
    </apex:panelGrid>

    </apex:form>
    </apex:pageBlock>
    </apex:page>

    Apex Class:

    public class opp{

    public opp(ApexPages.StandardSetController controller) {
    controller.setPageSize(10);
    }

    }

  • Hi,

    Salesforce licenses are designed for users who require full access to standard CRM and Force.com AppExchange apps. CRM apps are anything that requires access to Standard Objects like below:
    Leads
    Opportunities
    Forecasts
    Cases
    Solutions

    Salesforce Platform licenses are designed for users who only need access to custom apps, and NOT the standard CRM functionality. Salesforce Platform users DO have access to the “core” Salesforce Standard Objects and functionality, like…

    Accounts
    Contacts
    Reports
    Dashboards
    Documents
    Custom Objects & Tabs

  • Hariom Chaudhary

    Member
    September 13, 2019 at 9:31 am in reply to: What is the use of Support Process in Salesforce?

    Hi,

    Support Process is only for the "Status" pick list. The pick list values available in the status of a case record type determine a support process. It is only a business relevant feature as the status field is the most process-specific field on a case. The status field cannot be customised on a record type, it can only be customised in a support process.

  • Hariom Chaudhary

    Member
    September 12, 2019 at 5:17 am in reply to: How to look at the user license information in Salesforce Org?

    Hi,

    1.From Setup, enter Company Information in the Quick Find box, then select Company Information.
    2.See the Feature Licenses related list.

  • Hariom Chaudhary

    Member
    September 12, 2019 at 5:16 am in reply to: What is Map Class in Apex Salesforce?

    Hi,

    A map is a collection of key-value pairs where each unique key maps to a single value. Keys and values can be any data type—primitive types, collections, sObjects, user-defined types, and built-in Apex types.

  • Hariom Chaudhary

    Member
    September 11, 2019 at 11:28 am in reply to: What is the difference between role and profile in salesforce?

    Hi,

    In Salesforce Role is meant to increase the data visibility to a particular user. It can be done through sharing rules or by building role hierarchy. Using roles, you can control the ac

    Profile: Unlike roles profile is mandatory for all, and it stays at the object level. It is treated as a building pillar of an organisation.

  • Hariom Chaudhary

    Member
    September 11, 2019 at 11:27 am in reply to: How to create utility class in salesforce?

    Hi,

    Common test utility classes are public test classes that contain reusable code for test data creation.
    Public test utility classes are defined with the isTest annotation, and as such, are excluded from the organisation code size limit and execute in test context. They can be called by test methods but not by non-test code.

    The methods in the public test utility class are defined the same way methods are in non-test classes. They can take parameters and can return a value. The methods should be declared as public or global to be visible to other test classes. These common methods can be called by any test method in your Apex classes to set up test data before running the test. While you can create public methods for test data creation in a regular Apex class, without the isTest annotation, you don’t get the benefit of excluding this code from the organisation code size limit.

    Example of utility class :

    @isTest
    public class TestDataFactory {
    public static void createTestRecords(Integer numAccts, Integer numContactsPerAcct) {
    List<Account> accts = new List<Account>();

    for(Integer i=0;i<numAccts;i++) {
    Account a = new Account(Name='TestAccount' + i);
    accts.add(a);
    }
    insert accts;

    List<Contact> cons = new List<Contact>();
    for (Integer j=0;j<numAccts;j++) {
    Account acct = accts[j];
    // For each account just inserted, add contacts
    for (Integer k=numContactsPerAcct*j;k<numContactsPerAcct*(j+1);k++) {
    cons.add(new Contact(firstname='Test'+k,
    lastname='Test'+k,
    AccountId=acct.Id));
    }
    }
    // Insert all contacts for all accounts
    insert cons;
    }
    }

  • Hariom Chaudhary

    Member
    September 10, 2019 at 10:25 am in reply to: What is savePoint in Salesforce?

    Hi,

    Savepoint is a method which is used to define a point which can be roll back to. If any error occurs during a transaction, that contains many statements, the application will roll back to the most recent savepoint and the entire transaction will not be aborted.

  • Hariom Chaudhary

    Member
    September 9, 2019 at 12:05 pm in reply to: What is an audit trail in salesforce?

    Hi,

    The Audit Trail helps you track the recent Setup changes that you and other administrators have made to your organization. This is especially useful in organizations with multiple administrators.

  • Hariom Chaudhary

    Member
    September 6, 2019 at 12:26 pm in reply to: What is the Use of Queue in Salesforce?

    Hi,

    Queues help your teams manage leads, cases, service contracts, and custom objects. Once records are placed in a queue manually or through an automatic case or lead assignment rule, records remain there until they're assigned to a user or taken by one of the queue members. Any queue member or users above them in the role hierarchy can take ownership of records in a queue. For example:

    Lead queues Help you manage the distribution of leads. For example, you may have a lead queue for a Western Region team and one for an Eastern Region team. You can put leads in different queues, either manually or automatically via a lead assignment rule as leads are imported, created or edited manually, or captured from the Web. Make salespeople members of one or more lead queues.

  • Hi,

    We can only use one controller in a visualforce page.

  • Hariom Chaudhary

    Member
    September 5, 2019 at 5:30 am in reply to: What is a junction object and what is its use in Salesforce?

    Hi,

    If you require to implement many to many relationship in salesforce, you need to use Junction object.

  • Hariom Chaudhary

    Member
    September 5, 2019 at 5:09 am in reply to: What is difference between ISNULL and ISBLANK in salesforce?

    Hi,

    ISBLANK:

    Determines if an expression has a value and returns TRUE if it does not. If it contains a value, this function returns FALSE.

    ISNULL:

    Determines if an expression is null (blank) and returns TRUE if it is. If it contains a value, this function returns FALSE.

  • Hi,

    A lightning:treeGrid in lightning component displays hierarchical data in a table

  • Hi Deepak,

    Custom Settings :

    Custom settings enable you to create custom sets of data, as well as create and associate custom data for an organisation, profile, or specific user. All custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database.

    Custom Metadata Types :

    Custom metadata are like custom setting but records in custom metadata type considered as metadata rather than data. These are typically used to define application configurations that need to be migrated from one environment to another, or packaged and installed.

  • Hariom Chaudhary

    Member
    September 3, 2019 at 6:15 am in reply to: what is the use of <aura:set> in Salesforce lightning ?

    Hi,

    We use <aura:set> in markup to set the value of an attribute inherited from a component or event.

  • Hi,

    We can achieve this by using page component attribute sidebar=”false” and showheader=”false”.

  • Hi,

    There are three types of bindings used in Visualforce:

    1.Data binding
    2.Action bindings
    3.Component bindings

    Data bindings refer to the data set in the controller.
    Action bindings refer to action methods in the controller.
    Component bindings refer to other Visualforce components

  • Hi,

    A field set is a grouping of fields. For example, you could have a field set that contains fields describing a user's first name, middle name, last name, and business title. When a field set is added to a Visualforce page, developers can loop over its fields and render them.

    Steps to  create and edit field set in salesforce:

    1.From the management settings for the appropriate object, go to Field Sets, and then click New.
    2.Enter a Field Set Label. This is the name presented to subscribers who install the field through a managed package.
    3.Optionally, enter a name for your field set. This is used by your Visualforce page to reference the field set.
    4.In the Where is this used? area, provide a brief description of which Visualforce pages use the field set, and for what purpose. This information helps a subscriber understand where and how an installed field set is being used, so that they can populate it with their own fields.
    5.Save your changes.
    6.To add fields to the field set, drag the fields from the object palette and drop them into the Available for the Field Set or the In the Field Set container. The fields in the Available for the Field Set container are not initially visible on the Visualforce page. The fields in the In the Field Set container are visible by default.You can drag and drop a field from one container to the other. The vertical order of the In the Field Set list indicates the order of how the fields render on Visualforce pages.

    7.To remove a field from the field set, drag the element back to the object palette, or click the   icon next to the element.

    8.To make a field required, double click the element or click the wrench icon ( ) next to it and select the Required checkbox.

    9.Save your change

     

  • Hi,

    You can deploy any set of components as a package or into your organization directly in the unpackaged package. You can achieve this by following way.

    <target name="deployUnpackaged">
    <sf:deploy
    username="${sf.username}"
    password="${sf.password}"
    sessionId="${sf.sessionId}"
    serverurl="${sf.serverurl}"
    deployroot="projectFolder"/>
    </target>

  • Hi,

    The record setvar attribute is used on Visualforce Page with <apex:page> VF component. The value of the attribute indicates the name of the set of records passed to the page means, the list of records. These record set can be used in the expressions to return the list of values to display on the page or to perform actions on set of records.

Page 1 of 3