shariq
IndividualForum Replies Created
-
shariq
MemberSeptember 21, 2018 at 7:43 AM in reply to: What Is Aura? Why Do We Use The Aura: Namespace In The Code ?Hi,
Aura is the open source technology that powers Lightning Components. The aura: namespace contains all of the basic building blocks for defining components and applications.
Thanks
-
shariq
MemberSeptember 21, 2018 at 7:43 AM in reply to: Is There Any Limit On How Many Component To Have In One Application ?Hi,
There is no limit on number of component in an application.
Thanks
-
shariq
MemberSeptember 21, 2018 at 7:40 AM in reply to: Can We Make A Lightning Component That Shows Up In Both The Mobile And The Desktop User Interfaces ?Hi,
We can use Lightning Components directly in Lightning Experience, the Salesforce1 Mobile app, template-based communities, and custom standalone apps. Additionally, we can include Lightning components in a Visualforce page, that allowing us to use them in Salesforce Classic, Console, and Visualforce-based communities.
Thanks
-
shariq
MemberSeptember 21, 2018 at 7:28 AM in reply to: How to invoke batch apex job (or) how to execute the batch apex job programmatically?Hi,
Run Batch Apex
1. From the Developer Console, click Debug | then Open Execute Anonymous Window.
2. Execute the following code.
Id <variable name>= Database.executeBatch(new <Class name>(), batch size);
Example code
Id batchJobId = Database.executeBatch(new RunThisBatch(), 200);
NOTE: batchJobId will contain the job Id of the batch.Thanks
-
shariq
MemberSeptember 21, 2018 at 7:27 AM in reply to: What is the main difference between using data table vs .page block table tags ?Hi,
The four basic types, apex:pageBlockTable, apex:dataTable, apex:dataList, and apex:repeat are all basically the same thing, but present different renderings.
apex:pageBlockTable represents a table formatted and styled to look like a related list table.
apex:dataTable is an unstyled table suitable for use anywhere outside of a apex:pageBlock (but may be used within one).
apex:dataList renders a ul or ol element (unordered or ordered list, respectively), with li (list item) elements comprising the rows.
apex:repeat allows any arbitrary output based on a template. The four elements require value and varattributes, iterate over a collection of some sort, may generally be nested inside each other, and are limited to 1,000/10,000 rows of output, depending on the apex:page's readOnly attribute.
the main difference with apex:pageBlockTable, compared to the other three, is it must appear in a apex:pageBlock or apex:pageBlockSection, while the other types can be rendered anywhere that Visualforce is allowed. There's a very specific limitation about apex:pageBlock not being available in email templates, as well, so you'd naturally have to use one of the other three types of iterators.
Thanks
-
Hi,
To add a flow to a Visualforce page, embed it using the <flow:interview> component:Find the flow's unique name:From Setup, enter Flows in the Quick Find box, then select Flows.
Click the name of the flow that you want to embed.
Define a new Visualforce page or open one that you want to edit.
Add the <flow:interview> component, somewhere between the <apex:page> tags.
Set the name attribute to the unique name of the flow. For example:<apex:page>
<flow:interview name="MyUniqueFlowName"/>
</apex:page>If the flow is from a managed package, the name attribute must be in this format: namespace.flowuniquename.
Restrict which users can run the flow by setting the page security for the Visualforce page that contains it.To run the flow, external users (such as on a community) need access to the Visualforce page. To run the flow, internal users need access to the Visualforce page and either:The "Run Flows" permission
The Flow User field enabled on their user detail pageThanks
-
This reply was modified 7 years, 6 months ago by
shariq.
-
This reply was modified 7 years, 6 months ago by
-
shariq
MemberSeptember 21, 2018 at 7:25 AM in reply to: What is the main difference between using data table vs .page block table tags ?Hi,
apex:pageBlockTable
1) uses salesforce styling
2) No need to specify the headers
3) mandatory attribute “value”.apex:dataTable
1) Need to specify the headers
2) we can specify custom style classes.
3) No mandatory attribute “value” unlike in pageblockTableHope this helps.
-
Hi,
To customize a flow’s look and feel or enhance its functionality, embed it in a Visualforce page. If your org has flows enabled for sites and portals, use the Visualforce page to deliver the flow to your Salesforce site, portal, or community.
Users can run only flows that have an active version. If the flow you embed doesn't have an active version, users see an error message. If the flow you embed includes a subflow element, the flow that is referenced and called by the subflow element must have an active version.
To add a flow to a Visualforce page, embed it using the <flow:interview> component:Find the flow's unique name:From Setup, enter Flows in the Quick Find box, then select Flows.
Click the name of the flow that you want to embed.
Define a new Visualforce page or open one that you want to edit.
Add the <flow:interview> component, somewhere between the <apex:page> tags.
Set the name attribute to the unique name of the flow. For example:<apex:page>
<flow:interview name="MyUniqueFlowName"/>
</apex:page>Hope this helps.
-
This reply was modified 7 years, 6 months ago by
shariq.
-
This reply was modified 7 years, 6 months ago by
-
shariq
MemberSeptember 21, 2018 at 12:50 AM in reply to: What are the advantages of Schema Builder in Salesforce? Why do we need it? -
shariq
MemberSeptember 21, 2018 at 12:47 AM in reply to: Custom email templates limit in SalesforceHi,
Limit depend upon your storage usage of your org.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:45 AM in reply to: How can we preview a page using Salesforce lightning component?Hi,
There is one way also which is by lightning tab.
Put component in test lightning application to open and see how it looks like.
Hope this helps
-
shariq
MemberSeptember 21, 2018 at 12:43 AM in reply to: Is it possible to create a PDF from a report in salesforce?Hi,
You can export file as csv and excel, for pdf you can go for third party.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:41 AM in reply to: How can I get input from user and perform the task based on that in Salesforce?Hi,
Just take variable getter setter and use this on page, perform task as per your logic.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:39 AM in reply to: Is it possible to Cast sObject dynamically?Hi,
You can use standard schema class for taking out sobject detail(its properties) -
Map<String, Schema.SObjectType> sobjectMap= Schema.getGlobalDescribe();
Schema.SobjectType typeOfObject= sobjectMap.get(‘sobject__c’);
Sobject__c obj= (Sobject__c )typeOfObject.newSObject();
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:36 AM in reply to: What is the use of Junction Object in Salesforce?Hi,
Main use of junction object is to create many to many relationship between two sobject.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:34 AM in reply to: What is the use of writing sharing rules? Can you use sharing rules to restrict data access?Hi,
Sharing enables record-level access control for all custom objects, as well as many standard objects (such as Account, Contact, Opportunity and Case). Administrators first set an object’s organization-wide default sharing access level, and then grant additional access based on record ownership, the role hierarchy, sharing rules, and manual sharing. Developers can then use Apex managed sharing to grant additional access programmatically with Apex. Most sharing for a record is maintained in a related sharing object, similar to an access control list (ACL) found in other platforms.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:32 AM in reply to: What are the advantages of using Handler classes in Trigger?Hi,
Creating handler will give developer a better understanding of the code, it is the best practice, and you can also use this class at multiple places.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:31 AM in reply to: Can we fetch detail of user to know how long he was active for a particular day?Hi,
Check on LoginHistory object to know the active time of the user.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:30 AM in reply to: What are the advantages of Trigger Handler in comparison to the normal trigger operation in Salesforce?Hi,
Creating handler will give developer a better understanding of the code, it is the best practice, and you can also use this class at multiple places.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:28 AM in reply to: What is a Model-View-Controller (MVC) Paradigm in Salesforce Visualforce?Hi,
Salesforce MVC Pattern. Designed to divide software up into three interconnected parts so as to separate the internal representation of the data/information from the way in which it is presented and interacted to. In short - separate the user-interface from the business logic and the data itself.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:28 AM in reply to: EXCEPTION_THROWN|[EXTERNAL]|System.SerializationException: Not Serializable: System.XmlStreamWriterHi,
You need to create wrapper containing the values from XmlStreamWriter and then serialize it.
Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:25 AM in reply to: What is the use of oldMap and newMap context variables in Salesforce Triggers?Hi,
Trigger.new return the ordered list whereas trigger.newmap returns a map which is unordered
In otherways
Trigger.new
Returns a list of the new versions of the sObject records. Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers.
Trigger.NewMap
A map of IDs to the new versions of the sObject records, this map is only available in before update, after insert, and after update triggers.Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:25 AM in reply to: Difference between Trigger.New and Trigger.NewMap in Salesforce?Hi,
Trigger.OldMap: A map of IDs to the old versions of the sObject records. Note that this map is only available in update and delete triggers.
Trigger.newMap: Trigger.newMap is a map with key as ID of the record and value as the record itself. Just like the above explanation, in case of accounts when we say trigger.newMap we are talking about a map of key-value pairs where the key is the account ID and the value is the account record itself.
A map of IDs to the new versions of the sObject records.Note that this map is only available in before update, after insert, and after update triggers.
oldMap
A map of IDs to the old versions of the sObject records.Note that this map is only available in update and delete triggers.Hope this helps.
-
shariq
MemberSeptember 21, 2018 at 12:23 AM in reply to: Is the method trigger:old only used for the event "before delete"?Hi,
Parul, you are wrong, we can use Trigger.old in before delete
It can also be used for update trigger.
Hope this helps.
-
Hi,
No, you can't access remote site in apex.
Hope this helps.
