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

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

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

Chaining Continuations – would each continuation be executed in separate transaction/limit scope?

When we are chaining Continuation objects in Apex controller, would it be right to assume that each continuation (and apex post processing method) is executed in separate transaction scope, e.g. I could have 100 SOQL statements in processing method for each continuation? Or does the whole continuation chain share the same execution context and should … Read more

Deselect Select All checkbox after DML from apex class

I have below code snippet where I have perfectly working select all checkbox. My requirement is to deselect the checkbox after I have successfully updated relevant records in apex class. Page <apex:pageblockTable id=”XYZ” value=”{!wrapList}” var=”itr” > <apex:column > <apex:facet name=”header”> <apex:inputCheckbox onclick=”selectAllCheckboxes(this,’inputId’)”/> </apex:facet> <apex:inputCheckbox value=”{!itr.selected}” id=”inputId”/> </apex:column>…… Select All function function selectAllCheckboxes(obj,receivedInputID){ var inputCheckBox = … Read more

Style apex select option in Bootstrap theme

Please help me to style custom picklist in bootstrap theme. So I have a controller with code: public List<selectOption> getSettings() { List<SelectOption> options = new List<selectOption>(); options.add(new SelectOption(‘Market/OTC’,’Market/OTC’)); options.add(new SelectOption(‘Margin Lending’,’Margin Lending’)); options.add(new SelectOption(‘Other Services’,’Other Services’)); return options; } And also the vf page with row: <div class=”form-group”> <label for=”Setting”>Setting</label> <apex:selectOption value=”{!SelectedSetting}” id=”Setting” > <apex:selectOption … Read more

Lightning Data Service Change Boolean

I am having trouble with LDS trying to load a page with fields tied to checkbox values. I am trying to display the boolean values as radio buttons and everything is loading correctly. However, the problem is whenever a radio button is changed I get the message ‘Problem saving record, invalid data type’ despite trying … Read more