Lightning Web Component lightning-file-upload and edit file content A lightning-file-upload component provides an easy and integrated way for users to upload multiple files. The file uploader includes drag-and-drop functionality and filtering by file types. to use lightning-file-upload you must have recordId of the record that the uploaded file is associated with, lightning-file-upload component will appear to disable in the absence of recordId. Below code will upload the images and displays them with onclick functionality which will enable you to edit the title and description of uploaded files with delete functionality. Points to remember: 1. Not suppo rted in Lightning Out or standalone apps, and displays as a disabled input. 2. The file uploader cannot be used to u pload files with the following file extensions: .htm, .html, .htt, .htx, .mhtm, .mhtml, .shtm, .shtml, .acgi, .svg. 3. lwc file-upload multiple don't work in android, In android you canno...
Popular posts from this blog
By
Puneet Mishra
-
Improve SOQL Performance SOQL (Salesforce Object Query Language) used to search Salesforce data for specific information. SOQL allows us to specify source object, a list of fields to retrieve and condition for selecting rows in source object. SOQL returns List<Sobject> To avoid long execution time, non-selective SOQL queries may be terminated by the system to improve the performance. A query is selective when one of the query filters is on an indexed field and query filter reduces the resulting number of rows below a system-defined threshold. The performance of the SOQL query improves when two or more filters used in the WHERE clause meet the mentioned conditions. Following fields are indexed by default and when used in SOQL WHERE clause improved the permormance. Primary Key (Id, Name and Owner fields) Foreign Keys ( lookup or master-detail relationship fields). Audit dates ( systemModStamp). Custom fields marked as External ID or Unique. NOTE: ...
By
Puneet Mishra
-
Using colon in Report Name While naming the reports we can separate the name to display on 2 separate lines. Its not been documented anywhere from Salesforce. I came to know about it from Scott Hemmeter . While naming the report separate the name with colon which will make reports to appear on two separate lines. example : if you name your report as "Developer Org Dummy Account Report " it will appear as and if you name your report as "Developer Org : Dummy Account Report " it will appear as
Comments
Post a Comment