Guha Arumugam
IndividualForum Replies Created
-
Guha
MemberFebruary 10, 2018 at 2:15 am in reply to: How to handle "Too many soql queries:101" problem in Salesforce?Don't use the query inside any for loops. Instead, query the list of all records and store it in a list or set, and loop through that list to do the set of logic you wanted to do. No queries inside a for loop is the ground rule for apex programming. Google examples for this approach, there are plenty of examples you can find. Happy coding.
-
Guha
MemberJanuary 31, 2018 at 9:14 am in reply to: How to maintain state using transient keyword for List in Salesforce?Remove the transient keyword for List and you must be good to go. If you are hitting view state error. Try using maps instead of lists.
-
Guha
MemberJanuary 31, 2018 at 9:12 am in reply to: Can we invoke multiple controllers in a Visualforce page?Yes You can... As long as it is a custom controller. Ref this link - https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm
-
Guha
MemberOctober 28, 2017 at 4:01 am in reply to: Process Builder in Salesforce Lightning - unable to find the record typeCan you check if the record type is allowed in your profile? That also could be an issue. Goto the profile and check if the record type is enabled for that profile under that object.
-
Guha
MemberSeptember 27, 2017 at 6:47 am in reply to: How to display 10000 records in a single Salesforce Visualforce page without using pagination?Use JavaScript Remoting in Vf page.
Ref: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
But ideally showing 10000 records in a single page is not a best practice in Salesforce.
-
Guha
MemberSeptember 27, 2017 at 6:32 am in reply to: Is it possible to set our own Context Sensitive Help link for standard object in Salesforce? -
Guha
MemberSeptember 27, 2017 at 6:30 am in reply to: Salesforce Visualforce Page having two sectionsI think your question is a bigger ask.
Check this post this is the same use case as yours.
https://developer.salesforce.com/forums/?id=906F0000000AVR0IAO
-
Guha
MemberSeptember 25, 2017 at 3:04 am in reply to: Can we create a collapsible pageblock table or Html table on a visualforce page?Very simple - Add this below attribute to your VF tags.
<apex:pageBlockSection collapsible=”true” >
-
Guha
MemberSeptember 25, 2017 at 3:03 am in reply to: Updating Rollup Summary field executes the parent object trigger?Yes - Rollup summary field will fire the trigger. Rollup summary field update happens via a DML operation internally, so it does fire Workflow, Process Builder, and triggers associated to that object.
To avoid this, exclude this rollup field in your trigger exclusively so that the trigger is not fired when it hits the field update.
-
Guha
MemberSeptember 23, 2017 at 1:23 am in reply to: How to solve “System.NullPointerException: Attempt to de-reference a null object” in Salesforce apex class?Try to initialize the list or object.
For example:
Public List<Account> acc {get;set;}
acc = new List<Account>();
Likewise whenever you use this list variable "acc". Try to check size before you do an update or iteration.
Example:
if(!accList.isEmpty()) {
//Your code logic for accList.
}
Ref: http://npntraining.com/blog/2017/best-practices-to-avoid-nullpointerexception/