Iteration of Child Lightning Component

I am building a lightning component for an app home page and want to render a list of records. I have created a parent component that iterates over a list of children components. The parent component loads on page load but the list child component won’t render within the parent component. I’ve checked my apex … Read more

JSON string unserialize to APEX using wrapper class [duplicate]

This question already has an answer here: How to deserialize a JSON String to Apex (1 answer) Closed 3 years ago. I’m not able to get rows list….it is coming null from below code. public class ParsingTest1 { public ParsingTest1() { String jsstring = ‘{“totalsForAllResults”: {“users”: “2”}, “rows”: [[“San Francisco”,”358″,”375″],[“San Jose”,”358″,”375″],[“Mid Peninsula”,”358″,”375″],[“Greater Bay”,”358″,”375″],[“Los Angeles”,”358″,”375″]]}’; Test1Wrapper … Read more

Iteration of Child Lightning Component

I am building a lightning component for an app home page and want to render a list of records. I have created a parent component that iterates over a list of children components. The parent component loads on page load but the list child component won’t render within the parent component. I’ve checked my apex … Read more

Not working: Javascript to select all checkboxes from Header checkbox in Visualforce page

I am displaying a table with checkboxes using wrapper class. Now I want to add a checkbox to the header, when selected it should select all row-checkboxes and when deselected it should deselect all row-checkboxes, when I deselect one row-checkbox, Headercheckbox should get deselected (not working) AND When selected any checkbox should Enable button and … Read more

SOSL for self lookup fields

Region__c is the self lookup on Agent__c. One region have many agents. When searchString = region name, it displays only one record. I want to display all Agents in that region. How to achieve this? String searchquery = ‘FIND \’*’ + searchString + ‘*\’ IN ALL FIELDS RETURNING Agent__c (Region__c,Region__r.name, Manager__c, Manager__r.name,Name), user( id, Name) … Read more

How to send an arrayList from Apex to Javascript and then to HTML?

I’m new in JS and can’t understand, what is wrong here (this is my test value, but then I want to send an arraylist’s elements): Apex: public String test{get;set;} public String myApexMethod(){ test = ‘Hello!’; return test; } JS and HTML: <apex:actionFunction action=”{!myApexMethod}” name=”getResult” rerender=”script_block”/> <apex:outPutPanel layout=”block” id=”script_block”> <script> var res = “{!test}”; window.onload=func function … Read more

Custom settings in Managed package

We have a managed package and include some triggers.We have to give a option to stop a trigger in subscriber’s org. Could someone please suggest us the following option is good or not. Create a custom setting as public visibility creates boolean fields like isLeadtriggerstop,isaccounttriggerstop In triggers,skip the code if the custom setting field is … Read more

apex:param get just last element. How to fix that?

I create delete-button to remove records from my list. First I choose records and add them to this list. Then I can delete some records, but it removes just last one. How to delete only selected record from the list? public void deleteObject() { for (Integer i=0; i < someList.size(); i++){ Job_Advertisement__c j = someList[i]; … Read more

Trigger to auto sync a Quote When Check box is checked [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Salesforce Stack Exchange. Closed 3 years ago. Improve this question I want to write a Trigger to sync a Quote when checkbox is checked, that check box is created as a custom … Read more

this.isEnabled(MethodName) in APEX Class

I’m going through some old APEX classes implemented by a fellow developer who has already left the company and having some difficulties to understand in a trigger helper class where trigger is not firing and always return false. Below is the helper class, updateClaimInventoryFromStaging is the method name that contain the main logic. Can somebody … Read more