Questions tagged [static-resources]

Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, stylesheets, JavaScript, and other files.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

How to create a link from static resource using aura component? [duplicate]

I want to create a link and download an excel file that is stored in static resource.How do i do that?
0
votes
1answer
23 views

LWC is not loading after chaning the previous labels in static resource

i have the static resource in the salesforce it has few files related to the d3.jsi changed the label names in the d3v4,js file after that i saved the modified d3v4.js file in the static resource,I ...
-1
votes
1answer
75 views

Generate Barcode Using JsBarcode library in lightning [closed]

Did anyone have used JsBarcode library in LWC in order to generate code 39 barcode, if yes can you please share a sample how I can use the library and generate the barcode. Till now the steps I have ...
0
votes
1answer
35 views

Create component used to include other components or static resources

In a custom lightning aura component app, I have a component where I want to include a static resource. I have successfully created the static resource (a JavaScript file) and included it in the ...
0
votes
1answer
34 views

Can I upload Java class as a Jar file in Static Resource and use that Java class components in Apex class?

I have piece of code in Java language, I need to use it in apex class. Let me know if I can upload Java class as Static Resource and use it in Apex class?
0
votes
0answers
26 views

Read static resource file (img) in aura controller js

I have created an aura comp when it is displaying icon from static resource dynamically. In some cases the icon is not available so we need to display a default icon. Now I am displaying icon ...
0
votes
0answers
25 views

How can i add an image to an existing zip folder of static resource using apex class

How can i add an image to an existing zip folder of static resource using apex class. Basically, the requirement is that, whenever i upload an image using my custom image uploader component, the image ...
0
votes
0answers
23 views

getContent() throws ApexPagesGenericException 404

When trying to retrieve a json file from a zip file, I get the following error: Error: System.VisualforceException: core.apexpages.exceptions.ApexPagesGenericException: 404 status code return from ...
1
vote
1answer
125 views

Need help with LWC and iframe

I appreciate you looking. Here's the problem I'm having: I have a project that includes pdfjs as a static resource. Part of this resource is an html file, viewer.html, that is the actual pdf viewer....
0
votes
0answers
21 views

Address Auto Complete Not Working from Static Resource

I'm attempting to demo an "address type-ahead" API into a lightning component. For a standard HTML page with js/css, the integration should be as simple as including the js/css files and ...
0
votes
0answers
10 views

Unable to refer image from zipped static resource in a Salesfroce Formula field

I have researched about this and tried different ways suggested like in the below discussions: Formula Field - Image from zipped static resource Static resource image in formula field but I failed in ...
1
vote
1answer
179 views

Scoped imports are not allowed when runtime namespace is specified

I'm trying to load a static resource file in lightning web component which is running under vlocity_ins runtime. I'm getting the error Scoped imports are not allowed when runtime namespace is ...
0
votes
0answers
33 views

Enable Secure Static Resources for Lightning Components- Release Update

I have a task to complete my analysis and testing of this release update, Currently I am in confusion with the description, Can anyone explain what changes will be occurred after enabling this release ...
0
votes
1answer
20 views

Is It More Inefficient To Serve A Zip File From Static Resouces vs Individual File?

If I have a zip file of javascript files and I have uploaded into static resources. I reference a particular file inside my zip file in my VF page as follows: <script src="{!URLFOR($Resource....
0
votes
1answer
21 views

Unable to display static text from static resource in LWC

I am trying to retreive the text in LWC from a text file which I uploaded on static resource. import textfromStatic from '@salesforce/resourceUrl/Level_1'; textfromStatic = textfromStatic; ...
0
votes
1answer
92 views

How to access browser's “window” object in Aura component

I have third party JS file that I have imported in Salesforce as Static Resource Structure of static resource: myuploadzip.zip ----myuploadzip.JS I have imported the same in Aura Application as below:...
1
vote
1answer
66 views

System.SObjectException: ORA-20001 when deploying Changeset for users

I'm deploying an apex class and Test class which is running successfully and covering 84% test coverage in sandbox however when deploying it in Prod, I'm running in to below issue. I have included ...
0
votes
0answers
34 views

migrating rtaImage of knowledge article in Salesforce

I am migrating knowledge article data from one salesforce environment to another using Informatica. so far we are able to locate the payload that we are planning to migrate. We use content payload ...
5
votes
1answer
80 views

Will salesforce continue to support bringing in third party js inside lwc or not?

We have some lwc components in our app, that took advantage of bringing in third party code (in our case, jQuery, angularJs etc. We did that to bring in some legacy code inside lwc. The code was ...
0
votes
0answers
19 views

How Can I Reference A Font File In CSS For My Visualforce Page through Static Resources?

I have a .css file that I have zipped along with image assets and font assets. On the front end through my Visualforce page I am bringing this css file in as an <apex: stylesheet> Here's what I ...
0
votes
0answers
21 views

Issue integrating Recurly with Salesforce using Aura/Lightning Framewrok

I'm building a payment screen using Lightning Components. For this I need to use the Recurly.JS Framework to invoke a few functions that will allow the org to integrate Salesforce with Recurly. I have ...
0
votes
1answer
38 views

Get the eng version of toLabel field value from SOQL

I have a field in soql which I have marked as tolabel(), the reason is to get the field value translated for the login user. But the same field value name is used in static resource to display the img....
1
vote
1answer
59 views

List of Salesforce objects those are File types like Document, StaticResource, Contents etc [closed]

I would like to know the list of Salesforce objects whose are based of FILE type. For example Document, Attachments, ContentVersions, Static Resources etc I would like to see what more objects comes ...
0
votes
1answer
49 views

How can I avoid error “sObject type 'StaticResource' is not supported.” in the Post Install script?

I am sampling data inside the Package Post Install script from a Static Resource, but script fails with an error: Error Message: common.apex.runtime.impl.ExecutionException: sObject type '...
0
votes
1answer
15 views

How to add these js files that another js file depends on for my Visualforce page?

I'd like to use a JS tool, but it needs some additional files. The readme says I Should add a few files to the server. I tried by adding it in static resources and modifying part of the js tool so it ...
0
votes
0answers
33 views

Difference in loading css from static resource and using css inside folder structure in LWC

I am trying to use the below custom datatable where we can add picklist https://live.playg.app/play/picklist-in-lightning-datatable In this all the css has been added to static resource and it is used ...
0
votes
1answer
46 views

Hide Standard Page Header

I know this question is duplicate of the following: Hide Standard Page Header in Custom Lightning App page. The problem is that the solution of creating a static resource and using it in the LWC ...
0
votes
0answers
83 views

LWC JS loadScript

I am trying to load this JS script: http://cdn.tagcommander.com/3468/tc_ENGIE_iframe.js So I downloaded it as static resource and use loadScript in LWC: import { loadScript } from "lightning/...
1
vote
1answer
161 views

loadScript fails in Community: Failed to load resource: the server responded with a status of 503 (Service Unavailable)

I am loading a JS file in a LWC with: import { loadScript } from "lightning/platformResourceLoader"; connectedCallback() { loadScript(this, "/resource/simpleTest") .then(...
4
votes
1answer
110 views

Make Visualforce variable in Javascript pass Security Review

The following Javascript is embedded into a Visualforce page because it relies on Visualforce variables: <apex:page controller="myController" > <script> var foo1 =...
6
votes
1answer
170 views

Package review fails with new undocumented issues

My Managed package (yearly) Security Review failed with new issues I was not aware of and which I could not find documented anywhere, E.g.: Stored XSS - "Avoid using escape=false unless ...
0
votes
1answer
31 views

Typing effect JavaScript not working with Visualforce page

I have a static resource JavaScript file that is referenced via <apex:includeScript> that displays a simple typing effect on the VF page however it is not working when previewed and displays as ...
0
votes
2answers
35 views

Using MultiStaticResourceCalloutMock [duplicate]

I am working on a class that makes a callout to a third party API. The third party API needs to be authenticated with a OpenID Connect Auth token. So, in my class, I am making a callout to the OpenID ...
3
votes
1answer
313 views

Embed HTML in LWC using iframe

We are developing an AppExchange app in which have an HTML file under static resources. Inside the LWC component, we need to display the content of this HTML file. We are currently using the tag and ...
1
vote
1answer
186 views

Importing third party JS in LWC is not working

I am trying to integrate tinyMCE editor with LWC. I have followed the below steps to do so; Download the tinyMCE resources and uploaded it as static resources in my org I am using the loadScript ...
0
votes
1answer
42 views

@wire and static resource JS library

Here's my problem; when i initiate my LWC sometimes it works fine....sometimes the static resource obviously doesn't load before the @wire fires off. @wire(fetchEvents, {usrId: '$userId'}) ...
0
votes
0answers
16 views

Pointing the YouTube Iframe API script to a locally available static resource

the Iframe api script tries to call-out to the widget api script to load it in. In the example available on the Salesforce Dev Blog, the author seems to have edited the callout to point locally. Here ...
3
votes
1answer
332 views

How can I force a static resource to reload in a Community site?

I have a static resource bundle (MIME Type: application/x-zip-compressed) which contains my .css and .js files. I have noticed that when I upload a new version of the static resource it can take a ...
10
votes
0answers
183 views

Font Awesome fonts are not being loaded after “Enable Secure Static Resources” activated for testing

Recently I have encountered the feature "Enable Secure Static Resources" on the release update (that was already being postponed as I am writing this) and read this question talking about it ...
0
votes
0answers
49 views

Static resource is not uploading files

We have multiple post-deployment steps and Data uploading is one of the post-deployment steps. We have created an automation script to upload the data file from the static resources. We have Company ...
17
votes
1answer
1k views

What is the impact of the Release Update: “Enable Secure Static Resources for Lightning Components”? (due 2020-11-29)

On the Release Update page in the setup (/lightning/setup/ReleaseUpdates/home) I found this Enable Secure Static Resources for Lightning Components COMPLETE STEPS BY: 29.11.2020 TEST RUN SUPPORTED To ...
3
votes
1answer
291 views

Using third party javascript library in LWC without a static resource

My question is similar to this. It seems we need to upload the Javascript library as a static resource before we can use it in LWC. I've got a payment gateway JS library which I need to use via CDN ...
1
vote
1answer
108 views

How to write to static resource (text file) in Managed package

How to write to a static resource (text file) in a Managed package In my developer org, I can read and write a static resource file by a visualforce page. I make a managed package of them, then ...
0
votes
1answer
277 views

Image stored in Static resource not getting displayed in lightning component

I have a lightning component that shows the image of a car from the static resource. I have uploaded this zip file which contains images of cars as a Static resource. following is the code of the ...
0
votes
0answers
19 views

Include managed static resource in Vf page [duplicate]

I have installed a managed package that has some static resources along with other features. I want to include a static resource to my vf page, but i get an error message: "Error: Field $...
0
votes
0answers
105 views

SFDX Source retrieve duplicating folder this happen only in static resources folder

In staticresources folder, i have Theme folder force-app/main/default/staticresources/test_Theme/css/style.css If i try to retreive style.css file, this file will replace to what's inside test_Theme....
1
vote
1answer
47 views

What is the best method to display images on a VisualForce page?

Is it still best to use Static Resources to zip up images to use in a VisualForce page (or elsewhere)? We basically display a table on the page with a small image (a company logo) in each row. ...
2
votes
1answer
80 views

Static Resource in VisualForce Page

I am using google Re captcha in my Visual force Page as below <apex:page sidebar="false" showHeader="false"> <apex:slds /> <html> <head&...
0
votes
0answers
82 views

Inactive page for community won't display static resources

I am developing a VisualForce page using the below css and html. While I've double and triple checked that the resources are in the org, public, and properly referenced, when I deactivate the org ...
0
votes
2answers
338 views

LWC loadScript of Static Resource works on Local Development Server but not when deployed to Sandbox

I used FullCalendar package to develop a rather simple LWC which includes a single DIV where the package dynamically loads it's elements. <div id="calendar" lwc:dom="manual" ...

1
2 3 4 5
8