• NLT
  • NEWBIE
  • 20 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 57
    Questions
  • 6
    Replies
Hi All,

Can any one provide the test class for below wrapper class.

public class TestOPW{
    public Integer bsId;
    public Integer documentId;
    public List<Items> items;
   
    public class ConfigData {
        public String config_brand;
        public String opportunityProductId;
        public String opportunityProductQuantity;
        public String opportunityDescription;
        public String seriesCode;
        public ModelTruck modelTruck;
    }
    public class ModelTruck {
        public cls_value value;        
        public boolean locked;
    }
    public class cls_value {
        public String value;
        public String displayValue;
    }
    public class Items {
        public String productFamily;
        public String productLine;
        public String model;
        public ConfigData configData;
    }
}
  • June 14, 2022
  • Like
  • 0
Remove 'delete' option from Opportunity Product line item as shown in the screenshot. User-added image
  • June 08, 2022
  • Like
  • 0
Remove 'delete' option from Opportunity Product line item
  • June 08, 2022
  • Like
  • 0
How to do data translation for the path settings in salesforce.

User-added image
  • June 02, 2022
  • Like
  • 0
Need to translate spinner text highlighted below in different languages that is in CSS file of LWC.

User-added image

Thanks,
  • May 30, 2022
  • Like
  • 0
Hi All, 

Opportunity has extra dots on the product name, Can someone tell me why it is showing dots below name which is standard functionality and it is happening for few products only.

User-added image

Thanks,
T N Lakshman
  • May 13, 2022
  • Like
  • 0
Hi All, I facing below highlighted error when trying to implement the LWC code. Please help to resolve it.

<lightning-spinner> The alternativeText attribute should not be empty. Please add a description of what is causing the wait.
get validAlternativeText @ spinner.js:1

User-added image
  • April 17, 2022
  • Like
  • 0
Hi All, When i try to do inline edit for the list of records in LWC component as shown in the below screenshot, It reload the pop up window again instead of allowing me to submit as shown in 2nd screenshot.  Below is code for handleSave function, please correct if anything is wrong.

User-added image

User-added image

//Enable Inline Editing for Multiple Rows
    handleSave(event) {
      const recordInputs =  event.detail.draftValues.slice().map(draft => {
          const fields = Object.assign({}, draft);
          return { fields };
      });
 
      const promises = recordInputs.map(recordInput => updateRecord(recordInput));
      Promise.all(promises).then(OpportunityLineItems => {
          this.dispatchEvent(
              new ShowToastEvent({
                  title: 'Success',
                  message: 'Products updated',
                  variant: 'success'
              })
          );
           // Clear all draft values
           this.draftValues = [];
 
           // Display fresh data in the datatable
           return refreshApex(this.OpportunityLineItem);
      }).catch(error => {
          // Handle error
      });
  }


Thanks.
  • April 14, 2022
  • Like
  • 0
Hi All, Could you please help to provide logic to create the Visualforce page that shows the table for the all products with edit capability as shown in the below OOTB functionality page. Here I want below OOTB functionality in visualforce page.

User-added image
  • April 11, 2022
  • Like
  • 0
Hi, I am getting below error when running the test class and test method is failing. Please help to resolve it.

Error MessageSystem.LimitException: Too many query rows: 50001

Stack Trace(System Code)
Class.OpportunityTriggerHandler.handleAfterUpdate: line 495, column 1
Trigger.OpportunityTrigger: line 18, column 1
  • March 12, 2022
  • Like
  • 0
Is there a way for an Account Owner to be allowed to see all historical information on accounts they own, I would like to know a way to allow user to see all history on the account, even from before he owned it.

Example: if Bob owns ABC Supply account, then he will not be able able to see all past opportunities and quotes for ABC supply account from when Jerry was the account Owner.

Can you please suggest how to proceed here.
  • February 22, 2022
  • Like
  • 0
Hi All,
How to do test coverage for below code.
User-added image
Thanks.
  • September 28, 2021
  • Like
  • 0
Hi All, As shown below please help to cover line in screenshot. Thanks in advance.
 User-added image
  • August 06, 2021
  • Like
  • 0
Hi All, Please help me on code coverage of below lines of code.

public String preQuestionsCategoryMapKeys {get {
        String keys = '';
        for (String key : preQuestionsCategoryMap.keySet()) {
            keys += key + ',';
        }
        return keys.removeEnd(',');
    }}

public Integer emdrStatusMapSize { get { return emdrStatusMap.size(); } }
  • June 22, 2021
  • Like
  • 0
Hi,

Can someone please provide me logic to get child records count for parent to run it in anonymous block.

 
  • May 21, 2021
  • Like
  • 0
Hi All, 
'Summary Report' option is disabled in Picklist Field that is build using VF page as shown below and VF page is part of installed managed package. Please help how to enable the value 'Summary Report' for picklist field.
User-added image
  • November 19, 2020
  • Like
  • 0
Hi All, Receiving the below error message when trying to create the bulk of users using apex code, Please help to resolve it.

Line: undefined, Column: undefined
Response to EXEC was : Bad Message 414

reason: URI Too Long
. HTTP CODE[414]

Thanks in advance.
  • October 07, 2020
  • Like
  • 0
Able to save the form With space in ABN number in community portal built using lightning component, below is the screenshot for it. Please provide solution to trim the spaces in ABN number to avoid creating of duplicate firm with same ABN in lightning component.

User-added image
  • April 29, 2020
  • Like
  • 0
Hi All,

Display below error message when trying to open the case record in Salesforce. Please help with the solution.

User-added image
  • January 02, 2020
  • Like
  • 0
How to stop emails received by the External Partner community User in Salesforce?

Thanks in Advance
  • August 16, 2019
  • Like
  • 0
Remove 'delete' option from Opportunity Product line item as shown in the screenshot. User-added image
  • June 08, 2022
  • Like
  • 0
Hi All, 

Opportunity has extra dots on the product name, Can someone tell me why it is showing dots below name which is standard functionality and it is happening for few products only.

User-added image

Thanks,
T N Lakshman
  • May 13, 2022
  • Like
  • 0
Can anyone help how to stop users from receiving emails by doing changes at user level in salesforce?
  • August 16, 2019
  • Like
  • 0
Hi,

Is there a way to embed or code to enable lightning-native lookup fields that will give the ability to not only search for the lookup item but will also give the option to create new lookup record if you want to as shown in below image.

User-added image

Thanks in Advance
  • June 03, 2019
  • Like
  • 0
Can anyone tell me how to add/include Standard New Contact Create link as button in salesforce lightning component?

i,e. When clicking a button on lightning component it should route to Standard Contact creation page.

Thanks in Advance.
  • May 30, 2019
  • Like
  • 0