Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
1answer
609 views

Trying to use JavaScript file from static resource in VF Page is not working

We have uploaded the following in static resource as a zip file and used it in Visualforce page as follows: Old Tags <apex:includescript value="//code.jquery.com/jquery-1.11.1.min.js" /> <...
0
votes
1answer
121 views

Email with static resource image from asyncrhony mode

I have process that update checkbox field in object. When this happen it invoke workflow that send email with attachment, and inside the attachment images from static resources. The process which ...
1
vote
0answers
31 views

Different community paths in different environments

I have different URL's in my sandbox and in my production environment. It is causing problems with my static resources in the css files. In my sandbox the community url is https://mydomain.com/...
1
vote
1answer
179 views

How to load Opportunity Product using Test.loadData?

Is it doable for Opportunity Product to be load using Test.loadData while Standard Price is not accessible in Test class? I try to automate the data population make it easy for user to define ...
1
vote
1answer
766 views

Referencing static resource outside Salesforce

Suppose I have a index.html hosted somewhere on the internet and I want it to use a CSS stylesheet which is stored as a Static Resource on a Salesforce Org. Is this possible at all?
0
votes
1answer
1k views

Static resource not getting loaded at all

I had a compressed static resource file with lots of styling and javascript files. I just downloaded that file and re-uploaded again but after uploading it no styling and javascript is getting loaded. ...
1
vote
1answer
290 views

Static resource stops working on compression

I have a requirement to add a new field to a custom app that is built in js that is stored in a static resource within a .zip file. I know it's a zip because when I download the file it is without an ...
3
votes
3answers
3k views

Static resource image in formula field

How to get/access static resource image in formula field. static resource name is low and image is low.png.
1
vote
1answer
102 views

Picture in front of li elements

I am trying to add a picture in front of my li elements like they explain here: https://techforluddites.com/replacing-list-bullets-with-images-using-css/ I am having troubles with the documentation ...
7
votes
3answers
3k views

Include custom font in lightning components

I am trying to include a custom font in my lightning components. Unfortunately I am not managing in doing that. I uploaded a .eot file to my static resources and now I am trying to reference to it. ...
0
votes
1answer
65 views

Broken image appears for maintainence page of community

Hii I have created a community in my sandbox org and then I deployed it in the production org. I have created a maintainence page where I used an image as a static resource.I have given public access ...
0
votes
0answers
78 views

Need to call 2 static resources in CSS and Visualforce Page

We are using a Static resource (say ABC) to store all css and images and this static resource is being called on a VF page. Now due to size limit (5 MB) of Static Resource and need to modify the ...
0
votes
1answer
614 views

Save/update a value to static resource apex

I want to save new image or update the already existing file at a static resource. And then this image file will be used to be rendered in pdf. Can anyone provide me a better way to do this as it says ...
0
votes
0answers
417 views

Static Resource in VF : Failed to load resource

I am trying to reference bootstrap in my VF. I have uploaded the boostrap distribution archive file as a Static resource. (bstrap) . The folder structure is as follows I need to reference two files ...
1
vote
1answer
1k views

visualforce page render as pdf

Below page is called from detail page button. Pdf page has Company Logo and list of items in tabular format. Below page works(CSS Formatting) for internal salesforce users but it is not working(CSS ...
2
votes
0answers
575 views

Access static resource image in lightning markup img tag

I have done my research on this and the solution is not working for me. Quick problem statement. I have Myresource that is uploaded as static resource. I am trying to access images under this in img ...
1
vote
0answers
54 views

Add Image to Static Resources using Apex code [duplicate]

Is it possible to add an image to static resources using apex code and metadata? On a detail page I want to click a button that says upload image and store that Url in metadata Field and than pass it ...
2
votes
1answer
68 views

What is the maximum length of a Static Resource name?

I'm working on a feature that will create static resources and give them an automatic name. While I don't expect these names to be particularly long, I was wondering if there's a name length limit I ...
0
votes
1answer
628 views

Identify the image source on Apex:image tag

I have a URL with an apex:image tag like this: <apex:image value="/img/icon/mail32.png" width="15px" height="15px" style="padding-right: 10px;padding-left: 10px;" /> I am trying to find ...
2
votes
1answer
165 views

How to add video of more than 15 MB size on force.com site

I'm creating a force.com site. There is one video on my VisualForce page. Now I have to upload that video as a static resource, the but video is more than 15 MB in size. I have to put that video on my ...
3
votes
1answer
298 views

Check if specific file exists inside zipped static resource?

I have a static resource in my org 'Customer_Logo', inside that I have the logo of all my customer, called like : AccountNumber.jpg I take the Account number in the controller of a VF page render as ...
2
votes
1answer
207 views

VF page not able to acess css from a zipped resource file

On our SB, I modified a static resource zip file and tried to upload it back with the changes to find that the whole site is broken. None of the vf pages are able to recognise this resource named '...
2
votes
1answer
104 views

Is it posible to UPDATE/PATCH certain file from StaticResource bundle using Tooling API?

I have the StaticResource with name AwesomeApplication where placed zipped files (bundle.js, vendor.bundle.js). Can I update only bundle.js from my StaticResource, without touching vendor.bundle.js ...
1
vote
1answer
878 views

Problem with static resource and Lightning Component

I am trying to use JQuery DataTables Library in a Lightning Component but I am finding problems with static resources. I upload three static resources (versions as DataTables Documentation): jQuery ...
2
votes
1answer
936 views

Visualforce binding in css of Static resource

Can we have visualforce bindings inside static resource CSS, i need certain params to be dynamic and do not want to have the Big length of CSS in my VF code, instead i am hoping i can use the ...
1
vote
1answer
618 views

Image from static resources is not displayed on the visualforce page?

I am developing a website on Salesforce and I need to display products for each category with images. I have custom object Product__c with fields Name, Price__c, Quantity__c, Description__c, Image__c. ...
6
votes
1answer
1k views

Call Javascript function on visualforce page from static resource?

I have a static resource that contains an angular.js module. Now i want to call, in this static resource, a javascript function that is located in a Visualforce Page. Is it possible to use the ...
6
votes
3answers
2k views

Dynamic reference to static resource in lightning component

In lightning, we can reference to static resource by a value provider like: <img src="{!$Resource.staticResource}"/> Is there any smart way to make it dynamic like: <aura:attribute name="...
5
votes
1answer
595 views

BUG Unable to update static resource ( infinite cache at lightning community side, not browser side)

Seems the new SFDC update ( Spring 17 ), it is now impossible to update a static resource. We have a static resource named "res", containing a zip file with following content : /resource ( folder ) ...
3
votes
1answer
81 views

Static Resources

I am Uplaoding the file in Static Resources in salesforce, it is possible to edit the contents of the file without downloading the file from static Resources and again upload the file My Static ...
0
votes
1answer
440 views

How to call static resource image in another static resource css file?

How to call static resource image in another static resource css file?.i save one image in static resource as a name flowerimage.then that flower image calling from css as a url($Resource.flowerimage, ...
0
votes
1answer
816 views

Upload an image as a static resource and reference it Via CSS

I'm trying to reference an image on my VF page like so: form { margin-top: 5px; background-image: url("http://www.publicdomainpictures.net/pictures/10000/velka.jpg"); ...
1
vote
2answers
361 views

Special characters in static resource

The nordic characters æøå are displayed as question marks in JS static resource after reopening the file in the Developer Console. An alert box with these characters will also display as question ...
1
vote
2answers
867 views

static resource image not showing on lightning app(component)

I am trying this <aura:component > <img src="resource/1484736455000/lightning_vip__Icon_one" height="30" width="30"/> <aura:attribute name="expense" type="Expense__c"/> </...
4
votes
1answer
1k views

Lightning Out using ltng:require: How to deal with CORS when Locker Service enabled?

I have built a dependency app using extends="ltng:outApp" that is hosted on heroku. It runs on an express node.js server and I use salesforce-oauth2-flow. Lets call it myApp myApp is whitelisted in ...
3
votes
1answer
1k views

Wrong use of !URLFOR inside a controller of aura component

I'm trying to get a .js file inside a zipped file loaded in Salesforce as Static Resource from the controller of an aura component. When I use: baseUrl: "{!URLFOR($Resource.layer_composer,'js/lib')}",...
6
votes
1answer
945 views

Spring 17 - Lightning fails to load Static Resources with $Resource in Chrome,Firefox and Edge

After updating from winter 17 to spring 17 I am facing random issues with $Resource variable. This issue is observed: Chrome Firefox Edge and to my surprise everything works smoothly in IE11. ...
12
votes
1answer
3k views

Font-Awesome fonts are not loading after Spring'17 release

I am using Font-Awesome in my lightning components and using font-awesome icons in lightning components. It was working fine before 7th Jan 2017, but when today I Logged In into sandbox fonts are not ...
4
votes
0answers
340 views

Uncaught TypeError: r[o].hasOwnProperty is not a function when trying to use a Static Resource

I'm currently working on a Lightning Component that needs a third party library when the library is loaded I get this error Uncaught TypeError: r[o].hasOwnProperty is not a function throws at /...
2
votes
0answers
161 views

unable to use static resource method [duplicate]

unable to use static resource code in JS StResource.js function multiplyMe(a,b) { return a*b; } function AddMe(a,b) { return a+b; } MyComp.cmp <ltng:require scripts="{!$Resource....
0
votes
2answers
328 views

Problem accessing static resource in visualforce page

I am accessing my static resource using apex:image <apex:image url="https://test.salesforce.com{!$Resource.payment}" width="50" height="50"/> When I take out the https://test.salesforce.com ...
1
vote
1answer
97 views

Parse error from CSV static resource

I'm getting 'CSV Parse error 2016-12-02 13:45:21 is not a valid value for the type xds:dateTime' from compiler. I've done sample test data in CSV file according to: https://developer.salesforce.com/...
0
votes
1answer
209 views

Serving gzipped static resources (.gz files)

I'm new to Salesforce and working on a Angular2 + SF web application. I'm serving my JS files via StaticResources. main.js is quite big though (ng2 + app). I was planning to increase performance by ...
1
vote
1answer
332 views

Using a dynamic Static Resource in a managed package

We have a package that we install in another org. In this package I look-up to a static resource (an image) and load it on my visualforce page. Something like this: <img src="{!$Resource.Logo}" /&...
0
votes
1answer
422 views

Don't understand the usage of <c:svgIcon> helper (Lightning Design System - Communities)

I'm trying to use different icons included in the icon package on the lightning design system. I'm rendering them inside a lightning component that is available in the Community Builder tool. I'm a ...
1
vote
1answer
1k views

Referencing Static Resource Images in a visualforce page

We’ve a requirement to display a few images on a Visualforce page. In the current setup, we’ve each of these images stored in individual static resources. The image names are stored in a custom ...
10
votes
1answer
702 views

How to make script loading in Lightning component really One-Time? [possible bug]

We have a component that is constructed of many smaller components. Few of these components require jQuery and jQuery-ui. In following screenshot you can see that jQuery library is loaded 3 times ...
0
votes
1answer
24 views

What kind of resource it is in Community

I'm maintaining a community and found the following link in the source code: https://xxx.cs19.force.com/[CommunityName]/resource/1/.../xxx.js Note the number 1 after /resource/ in the url, usually ...
0
votes
2answers
219 views

how to add library to static resource

<apex:page standardController="Account" > <apex:form > <script type="text/javascript" url="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <...
-1
votes
1answer
416 views

Rating functionality [closed]

I'm trying to build a star rating functionality which is described in the following site: http://kgoutam.blogspot.bg/2013/02/show-star-rating-as-salesforce-standard.html I followed the steps in the ...