Ratnesh
IndividualForum Replies Created
-
V refers to view and c refers to controller.
When we use v.abc, we are actually calling value hold by attribute abc.
When we use c.xyz, we are calling value return by the controller It can be server-side-controller (.JS controller )or client-side-controller (Apex Class) -
Ratnesh
MemberJanuary 29, 2020 at 3:18 pm in reply to: Is Opportunity is a Child Of Contact in Salesforce?OpportunityContactRole is child of both Account and opportunity. Here OpportunityContactRole is junction object to achieve many to many relationship between Opportunity and Contact.
-
Ratnesh
MemberJanuary 29, 2020 at 3:15 pm in reply to: What is Lightning Design System in Salesforce?The Lightning Design System is run as an open source project and is available to everyone. The Lightning Experience provides a clear, efficient, consistent, and beautiful experience out-of-the-box. Developers building on top of Enterprise systems often have to choose between mimicking their Enterprise system’s UI at the risk of delivering a subpar experience, or providing a better UI at the risk of confusing users with a disconnected experience.
-
Ratnesh
MemberJanuary 29, 2020 at 3:12 pm in reply to: What is the use of @AuraEnabled annotation in Salesforce Apex?We use AuraEnabled Annotation in Salesforce so that particular method is available for the Lightning component in Salesforce.
-
SSO stand from Single sign-on and its lets users access authorized network resources with one login. You validate usernames and passwords against your corporate user database or other client app rather than Salesforce managing separate passwords for each resource.
-
Ratnesh
MemberJanuary 28, 2020 at 2:00 pm in reply to: What is the way to restore lost code in Salesforce Developer Console?No , There is no way to restore code that is not saved.
But to avoid this kind of problem in future, please follow this procedure
1. Before refreshing the sandbox, use eclipse to download all your code components to your local drive.
2. Keep that local drive copy of your sandbox as backup file
3. Then initiate your sandbox refresh activity
4. Later you can move the your backup copy code (i.e., newly created or not released copy of your code) -
Ratnesh
MemberJanuary 28, 2020 at 1:56 pm in reply to: How static resources are referenced in the Visualforce page in Salesforce?Static resources are referenced using the $Resource global variable, which can be used directly by Visualforce, or used as a parameter to functions such as URLFOR()
-
In a Salesforce context, a trigger handler is the starting point to 'handle' complex logic set into a trigger. Creating a class defined as MyObjectTriggerHandler can help to design a modular set of reusable objects which manage all the operations to be done by a trigger.
-
Ratnesh
MemberJanuary 27, 2020 at 2:34 pm in reply to: What is the Outbound Message in Salesforce and How to use it?Outbound messaging allows you to specify that changes to fields within Salesforce can cause messages with field values to be sent to designated external servers. Outbound messaging is part of the workflow rule functionality in Salesforce.
-
It's deleting parent records who are in mast-detail relationship. When you delete parent in bulk it will delete all child records as well in bulk. This is cascade delete.
-
Ratnesh
MemberJanuary 24, 2020 at 2:50 pm in reply to: What is the inner query in SOQL in Salesforce ?You need the relationship name to perform inner SOQL query. For example, if you are going to perform a query to get Accounts along with their contacts then your query will be something like –
Select Id, Name,(Select Id, LastName from Contacts) from Account.
-
Ratnesh
MemberJanuary 24, 2020 at 2:47 pm in reply to: What is a Sandbox org? What are the different types of sandboxes in Salesforce?Developer Sandbox
A Developer sandbox is intended for development and testing in an isolated environment. A Developer Sandbox includes a copy of your production org’s configuration (metadata).Developer Pro Sandbox
Use a Developer Pro sandbox to handle more development and quality assurance tasks and for integration testing or user training.Partial Copy Sandbox
A Partial Copy sandbox is intended to be used as a testing environment.Full Sandbox
A Full sandbox is intended to be used as a testing environment. -
Sometimes we need make apex thread to sleep for a while, sush as testing if the soql with [For Update] works,and as we know the sfdc do not offer a method to sleep the thread.
-
-
Ratnesh
MemberJanuary 23, 2020 at 11:57 am in reply to: How to use Output Text In Visualforce page in Salesforce?It is mainly useful to display thr records. You can customize the appearance using CSS styles, in which case the generated text is wrapped in an HTML <span> tag.
It is useful for customization rather than using pageblock tab for CSS and JS.
Its Syntax is:-
<apex :outputText value = ” blah..blah..blah ” id=”theText”></apex :outputText>
-
Ratnesh
MemberJanuary 23, 2020 at 11:51 am in reply to: Differentiate between freeze user and deactivate user in Salesforce ?Freezing only stops the user from being able to login. Freezing user accounts doesn’t frees the user licenses available for use in your organization. We have to deactivate the user to free the license in Salesforce
-
Ratnesh
MemberJanuary 22, 2020 at 5:42 pm in reply to: What is the difference between Salesforce ActionPoller & Rerendered?Rerender is used to refresh a particular section of the visualforce page. We have to just mention the id of the page section (in the Rerender attribute) that needs to be refreshed and Action poller acts as a timer and used to send an AJAX request to the server depending on the time interval.
-
Step 1: - Create a VF page with standard controller and put it into the page layout hidden
Step 2:- Create a button with
/* Add Jquery library */ {!REQUIRESCRIPT('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js')} {!REQUIRESCRIPT('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js')} jQuery.dialog('Open'); /* It will open dialog from your page now the control is transferred to your page and you can do anything you want Provided you have jQuery dialog code into your page */
for more details follow this link;- https://focusonforce.com/configuration/salesforce-list-buttons-javascript-example/
-
It allows you to upload your content that you can reference in a Visualforce page.
It includes:-
- .zip and .jar files
- images style sheets
- JavaScript
- and other various files.
To reference a stand-alone file, use $Resource.<resource_name> as a merge field, In this <resource_name> is the name you specified when you uploaded the resource.
For Example,
<apex:image url="{!$Resource.TestImage3}" width="100" height="160"/>
-
Ratnesh
MemberJanuary 21, 2020 at 5:36 pm in reply to: what is the Use of database.querylocator in Salesforce?- Database.getQueryLocator returns a Query Locator that runs your selected SOQL query returning list that can be iterated over in batch apex.
- The query locator can return up to 50 million records
- It should be used in instances where you want to batch a high volume of data up (pagination or batch apex).
- The database.query method should be used in instances where you are wanting to do a dynamic runtime SOQL query for your code.
-
Ratnesh
MemberJanuary 21, 2020 at 5:25 pm in reply to: Why we used severity and strength in <apex:pageMessage> in Salesforce?Hey Pooja,
<apex:pagemessage> is a tag in visualforce which used to show the message on the page.
Severity:- It basically denotes the type of message like to show warning, error, info and confirm with an icon.
Strength:- It basically denotes with the size{o-3}. Higher the size icon will larger and vice-versa.
Example:- <apex:pagemessage summary="Pooja your message will be here" severity="info" strength="3"></apex:pagemessage>
-
Ratnesh
MemberJanuary 21, 2020 at 5:01 pm in reply to: what is difference between Process Builder and Trigger in Salesforce? -
Bucket fields can be used in Salesforce reports to group together field values. These fields are not created on the Salesforce platform and only exist in in the report itself.
-
Ratnesh
MemberJanuary 20, 2020 at 2:36 pm in reply to: how to use render and rerender in visualforce page in Salesforce?Render: – Is used to show/hide the particular block, output panel or input/output fields based on the condition.
Example: – You have 2 fields one is visible and second is hidden, you want the second field to be visible when the first field is filled then use render.
<apex:pageBlockTable value=”{!empList}” var=”emp” rendered=”{!empList.size > 0}”>
<apex:column value=”{!emp.Name}”/>
</apex:pageBlockTable>reRerender: – Is used to refresh the particular output panel, block, and or fields after a server request has been completed. It uses Id to reRender.
Example: – You have a VF page where you want to add Contacts related to Account and also wanted to show the recently added Contacts then use reRender to refresh the block which is showing the contact list.
renderAs: – Is used to open the Visualforce Page in different format like- HTML, pdf, and excel
Example: – To show the invoice in PDF format.
for pdf – renderAs =”pdf”
for HTML – renderAs =”html”
-
Ratnesh
MemberJanuary 17, 2020 at 2:18 pm in reply to: Is there Possible to use Future Annotations in Trigger then what is the Difference between Synchronous and Asynchronous trigger