Questions tagged [javascript]
Javascript is a weakly typed interpreted programming language primarily implemented by web browsers to allow for client-side scripting. It can be used in Visualforce pages to give a more dynamic experience to end users. Additionally, the Visualforce engine generates and uses JavaScript to support the functionality of some of its components.
5,602 questions
0
votes
0
answers
13
views
Lightning Tree Grid - Is it possible to change the style of group names?
I have a Lightning Tree Grid view and I would like to have a different style for groups inside the view.
For example: Bold or a different color
I did not find any documentation on this, maybe ...
2
votes
1
answer
70
views
lightning-record-edit-form allows out-of-range Number(18,0) values to be saved in specific cases?
I am building a custom LWC for record create/edit using lightning-record-edit-form.
The form uses lightning-input-field components and saves the record using:
form.submit(fields);
For a Number field ...
0
votes
0
answers
60
views
How to encode List of String in order to avoid PMD error?
var tkey = '';
<apex:repeat value="{!langs}" var="lang">
tkey = $$.trim('{!JSENCODE(lang)}');
//escape
tkey = tkey.replace('"','').replace('[','').replace(']...
0
votes
0
answers
48
views
modifying lwc property holding data from apex and removing rows, property does not update
Sorry for the confusing title.
I'm working on an lwc for a client that consists of two data tables. It's used to select assets. This client has over 10 million assets and needs to select multiple ...
0
votes
0
answers
118
views
Lightning Tree Grid - Detect Column Width Change
How to detect when a user changes width of columns?
I would like to use an event handler for this so I can save the new width of columns into localStorage and set initialWidth of columns to stored ...
-1
votes
2
answers
77
views
Lightning Tree Grid View: Show Conditional Image as value
Using the <lightning-tree-grid> view I would like to show conditional images as values.
I do know how to change the CSS but I haven't yet figured out how to make conditional images show ...
0
votes
1
answer
159
views
Issue with using FullCalendar.IO 3rd party lib in LWC
I followed the instruction present in the website to use FullCalendar - https://fullcalendar.io/docs/initialize-globals . I downloaded the zip file and compressed just the index.global.min.js and ...
0
votes
0
answers
38
views
Ligthning map : Description map markers doesnt accept href
In aura component
<lightning:map
mapMarkers="{! v.mapMarkers }"
markersTitle="{!v.markersTitle}" />
Js :
mapMarkers.push({
location :...
1
vote
0
answers
55
views
lightning map doesn't render properly
@wire(getNearbyAccounts, { accountId: '$recordId' })
wiredAccounts({data, error}) {
if (data) {
const baseUrl = window.location.origin;
this.mapMarkers = data
....
0
votes
1
answer
137
views
Why is my Jest equality test failing when the Expected and Received strings are equal?
I'm using what appears to be a simple Jest test, but when run this test
expect(span.textContent).toBe('OK: Test Message');
it fails even though the strings are equal.
Here's the test
it('should ...
1
vote
1
answer
73
views
How can I test an array @api annotated attribute in a Lightning Modal component?
When I define the value for my @api-annotated method, the value shows up as empty ([]) on the test.
For example:
const element = createElement('c-my-modal', { is: MyModal });
element.listProperty = ['...
1
vote
1
answer
112
views
How to trigger <lightning-record-edit-form> validation without actually saving the record?
I’m building a LWC that uses to edit an Account__c record. I need to run all of its built-in client-side checks (required fields, data‐type and length validations, etc.), but I do not want to ...
0
votes
0
answers
72
views
Duplicate API calls on HTTP Post
I'm getting duplicate API calls on a cloud page that uses http post method. User clicks a button in a previous page and lands on the page with the below code. Here's the code I use:
var url = ...
0
votes
0
answers
52
views
Problem with passing parameter from OPENCTI to Flow
I created a method that opens Screen Flow for me. The script is below.
window.sforce.opencti.screenPop({
type: window.sforce.opencti.SCREENPOP_TYPE.FLOW,
params: {
flowDevName: '...
1
vote
1
answer
495
views
"Send Email" action popup from a button in LWC
Im writing an LWC that generates emails using context of current Case using prompt builder. Im done with the part till getting the G=generated email into the LWC, and I want to be able to click on ...