Questions tagged [js]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

apex:iframe remove vertical scrollbar

How to remove vertical scrollbar of an iFrame in Visual force page? Here is an example. Here is the code snippet <center> <apex:iframe src="{!url}" scrolling="true&...
0
votes
0answers
24 views

LWC lightnig input type date max value dynamically

LWC lightnig input type date max value dynamically I'm trying to add max Date as 2 years from now. Getting the error ass add_years is not defined Any suggestion would be great.. Html: <lightning-...
0
votes
1answer
32 views

LWC pass date to @wire apex - how to initialise date variable?

I have a component that on first load should display all accounts where a last verified date is 2 years or older. The component has a date selection field where the user can select a different date, ...
0
votes
1answer
33 views

Import/Load CSS or JS file from File Attachments instead of Static Resource in LWC

I have different css files for each record, which will be stored as a file(ContentVersion). I want to load that css in lwc. But getting this error. Refused to apply style from '' because its MIME type ...
0
votes
0answers
27 views

Unable to extract current value entered in an Outputfield (InlineEditSupport)

<apex:pageBlockTable value="{!Records}" var="record" id="thePageBlockTable" styleclass="slds-table slds-table_cell-buffer slds-table_bordered" > ...
-1
votes
1answer
38 views

check of redanduncy

I'm trying to create new demande of absence which contain start date and end date. I don't want to have duplicated period of absence that s why I should check that : -Start date and end date are not ...
0
votes
0answers
14 views

Heroku app is using old js file instead of github updated file

I pushed the changed js and html file to github. Heroku is auto-deploying with github's new file. But when I browse the app, the html files are updated but js files are not update old files. The ...
0
votes
0answers
63 views

How can i use npm module ssh2-promise for creatin ssh tunnel with dynamic remote ip addressing on heroku host?

I have express server in heroku host and i have local node. In express server on localhost i run ssh server In express-server on heroku host i run ssh client. (async ()=>{ await ssh....
0
votes
1answer
73 views

Calling apex rest API endpoints after auth in an external JS app

I'm a little worried that what I want to do is not supported at all and I'm hoping someone can quickly give me an indication if I'm on the wrong track. My goal: Create a client-side only JS app on an ...
2
votes
1answer
293 views

Loop in javascript setter takes 1 second per iteration

I have an array attribute in my LWC component which is set from the parent LWC. I have some logic that runs when the this attribute is set. I have used getter and setter for this. My array is a ...
0
votes
2answers
89 views

Display 3 Lists Vertically in 3 Columns

I am currently working through an issue with displaying a list correctly with Lightning components. Currently I have this, which loops through the amount of countries and displays them on the layout: ...
1
vote
2answers
74 views

Difference between getter ,connnectedcallback() in lwc .When to use Getter and when to use ConnectedCallback() in LWC

I need help in understanding the below issue. Looks like a bit weird one or might be i am not aware of basics of LWC. 3 ways to test and understand this :- Comment connectedCallback Code, In this ...
0
votes
2answers
158 views

How to get the name of the lookup field instead of id in LWC

import { LightningElement, api, wire } from 'lwc'; import { getRecord } from 'lightning/uiRecordApi'; import { NavigationMixin } from 'lightning/navigation'; const FIELDS = ['...
1
vote
0answers
38 views

How to make a lightning data table button not clickable after click

I have a lightning data table with columns; inside these columns i have a button. My problem is: i want to disable the button after it is clicked, i tried setting the value, but it's like i work on a ...
1
vote
1answer
143 views

LWC JavaScript way to copy List [List A, List B] Values to a single List

I'm looking for a way to copy wrapper list of content values to a single list Example: LIST<wrapper> dataAandB= [LIST A,LIST B] => List A =[Object X :{Id,Name ... }] and List B =[Object Y :{...
4
votes
1answer
106 views

LWC JS source cannot be edited in browser level where as aura JS we can edit why is that?

Is there any way we can edit the lwc source js code in browser like we can do it for aura ? I just want to find out a way we can edit lwc js in browser level and see live changes instead of deploying ...
0
votes
1answer
194 views

LWC UI Object Info API get only particular Field Label

The lightning/uiObjectInfoApi module includes wire adapters to get object metadata and picklist values. getObjectInfo -> Can we fetch only metadata of particular field instead of whole object ...
0
votes
0answers
36 views

Error when deserializing JSON payload with a stringified date [duplicate]

I am sending the list of record details in JSON format to apex controller. When i am de-serializing the JSON string if the payload contains date field having some value then it is not getting ...
0
votes
1answer
288 views

Clickable and downloadable record in lightning data table LWC

i am facing a problem with a lightning web component, more specifically wit the lightning datatable. In my table i have all the records of ContentDocument that are in my org. I implemented the sort ...
0
votes
1answer
27 views

Map values once pushed in are persisting between LWC template transitions

So I am facing this problem here,in short it goes like I have two templates which are conditionally displayed on click of Next and Previous so it is essentially lightning combo-box component with ...
0
votes
2answers
249 views

Displaying picklist in html table is not working properly in LWC using lightning out

I am not using lightning data table as I need to display input and output fields together on the page users don't want to use inline edit of lighting data table. UPDATE: This problem is coming ...