apex

Why can't I iterate through a list of a Wrapper class in Salesforce Visualforce?

拜拜、爱过 提交于 2021-01-29 07:27:21
问题 I am trying to iterate through a list of records inside a wrapper class and show them on a Visualforce page. The custom object is called Campaign_Products__c, and the wrapper class is meant to show if the product has been selected by the user to add to a "cart". Apex Controller code (extraneous bits removed): public with sharing class CONTROLLER_Store { ... public List<productOption> cpList { get; set; } public class productOption { public Campaign_Product__c product; public Boolean inCart;

Why Picklist Not Populating Data for Custom Dependent Picklist Field With lightning:select In Lightning Component

无人久伴 提交于 2020-12-21 02:19:23
问题 I am trying to replicate the below functionality of Custom Dependent Picklist Field With lightning:select In Lightning Component for Custom Object (Ref:- https://sfdcmonkey.com/2018/08/31/dependent-picklist-lightningselect-lightning-salesforce/) , Only difference here is i am using Custom object ERT_Case_Type_Data__c and its 2 picklist Level_1__c and Level_2__c instead of standard object Contact reference in the article Below are ERT_Case_Type_Data__c details Below are ERT_Case_Type_Data__c

Setting Dependent Custom Lightning Picklist Level2 and Level3 then resetting the Level2 at Lightning component but Level2 Cached Data is Getting Saved

廉价感情. 提交于 2020-11-29 21:09:46
问题 Step 1 In a Salesforce Lightning component I have a scenario with three levels of dependent picklists, first I am setting values for picklist Level1, and Level2, then the user selects the dependent picklist value in Level3 Step 2 When I remove the selection at Level2, automatically Level3 selection also gets erased: Step3 Click Save Here is problem, that value selected in Step 1 is getting saved rather than the reset value in step 2. I have added code to reset values at ui:inputSelectOption

Setting Dependent Custom Lightning Picklist Level2 and Level3 then resetting the Level2 at Lightning component but Level2 Cached Data is Getting Saved

ε祈祈猫儿з 提交于 2020-11-29 21:07:32
问题 Step 1 In a Salesforce Lightning component I have a scenario with three levels of dependent picklists, first I am setting values for picklist Level1, and Level2, then the user selects the dependent picklist value in Level3 Step 2 When I remove the selection at Level2, automatically Level3 selection also gets erased: Step3 Click Save Here is problem, that value selected in Step 1 is getting saved rather than the reset value in step 2. I have added code to reset values at ui:inputSelectOption

I sheduled an apex class to run everyday, but nothing happens. Can somebody help me out?

帅比萌擦擦* 提交于 2020-07-09 05:13:56
问题 I wrote this APEX class and sheduled it to run every day.I don't get an error message, but unfortunately the class doesn't do anything... Can anybody help me out? global class CustomersDateCheck implements Schedulable { global void execute(SchedulableContext sc) { List<Customers__c> CustomerList = [SELECT Id FROM Customers__c]; DateCheck(CustomerList);} public static void DateCheck(Customers__c[] objects){ for(Customers__c obj: objects){ if(obj.DateField > Date.today()){ continue;} else{obj

Showing a loading indicator while calling Apex in Salesforce LWC

折月煮酒 提交于 2020-05-16 06:28:50
问题 What is the best way to show a loading indicator while retrieving data from Apex in a Lightning Web Component? I have this approach: import { LightningElement, api } from "lwc"; import shouldShowCard from "@salesforce/apex/ApexClass.shouldShowCard"; /** * Card component that is conditionally shown based on Apex. */ export default class ConditionalCard extends LightningElement { @api recordId; @api isDone = false; @api shouldShow = false; connectedCallback() { shouldShowCard({ id: this

Implementing Azure Put Blob in Salesforce APEX

匆匆过客 提交于 2020-04-18 06:09:07
问题 I am trying to implement Azure Put Blob in Salesforce APEX but getting following error. I have read almost all Microsoft documentation and tried many way but in the end stuck in same point. I would like someone to have a look please. Error <?xml version="1.0" encoding="utf-8"?> <Error> <Code>AuthenticationFailed</Code> <Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:e41a64e6-301e-0047-5cbd