Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [canvas]

Force.com Canvas is a set of tools and JavaScript APIs that you can use to expose an application as a canvas app.

6
votes
0answers
521 views

Control Managed Package Connected App Permission Set from managed code

I'd like to deploy a Canvas Connected App as part of a managed package and be able to dynamically assign users access to it via a Permission Set. The Canvas App is using the Signed Request (Post) ...
5
votes
0answers
259 views

Hitting error when trying to save HTML5 canvas in VisualForce Page

We have a requirement to open an image attachment in a VisualForce page, the user should be able to draw on the image and those edits should be updated in the attachment on save. So to achieve this, ...
5
votes
0answers
2k views

force:canvasApp in a Lightning Component

I have a simple Lightning Component with a Canvas App embedded in it via the force:canvasApp tag. CanvasTestComponent.cmp <aura:component implements="forceCommunity:availableForAllPageTypes" ...
4
votes
0answers
169 views

Where can I find the available Canvas events that I can subscribe to?

There is an example in Subscribing to Parent Events that shows I can subscribe to onscroll events from the parent window using 'canvas.scroll'. //Subscribe to the parent window onscroll event. Sfdc....
4
votes
0answers
236 views

Canvas app sends GET request instead of POST when API whitelisting is enabled

Cross-Post from developer.salesforce.com We use a connected (canvas) app to integrate a third-party web application in salesforce. We use the the 'signed request' authentication model and it works as ...
4
votes
0answers
510 views

Not use iframe in Canvas App

We have a Canvas App configured as part of a Connected App, which is wired to a javascript frontend application. The frontend JS app has been hosted in AWS servers. The Connected App has been ...
4
votes
0answers
539 views

ApplicationName is changing when I deploy my released managed package

I have a simple visualforce page which loads a canvas app, the code looks like this: <apex:canvasApp applicationName="AppName" namespacePrefix="namespace_prefix" height="1080px" width="...
3
votes
0answers
354 views

XMLHttpRequest cannot load, “disallowed scheme for cross-origin requests”

Our package has a visualforce page that wraps around a canvas app. For some users, though, the app does not load, with this javascript console error in Chrome: XMLHttpRequest cannot load. https://...
2
votes
0answers
240 views

Canvas App Previewer gives “Cannot POST /” error for Node app

I'm running a node app on heroku that that I am trying to pull into a Canvas App, The Canvas App Preview error simply says "Cannot POST/". When I look at my node server debugger for local host it says ...
2
votes
0answers
474 views

Frame Ancestors for Content Security Policy headers for Canvas App

I'm working on a canvas app. I need to prevent it from being iframed from unauthorized sources. The problem is I don't know what to set as the CSP frame-ancestors in the headers for my canvas app. It ...
2
votes
0answers
110 views

Is it possible to access the current record id in the LifecycleHandler of a Canvas app that is embedded in a page layout?

I am attempting to get the context of the record being viewed, within a CanvasLifecycleHandler class so that I can perform some work and enrich the parameters collection in the Canvas Signed Request ...
2
votes
0answers
430 views

Configuring a Lightning Component via a Canvas App

I'm wondering if it is possible to configure a Lightning Component via a Canvas App? The scenario would be: User drags Lightning Component into a Community Page via the Community Builder. The ...
2
votes
0answers
422 views

Cannot load canvas app inside lightning component on community page

I built a custom Lightning component that shows up in the community builder, but when I drag it on to the page and preview it, I only see a loading bar. In the js console, I am seeing that ...
2
votes
0answers
41 views

Chatter publisher action + canvas app: cancel publishing?

Canvas SDK documentation pretty clearly describes the canvas app event flow in case user wishes to share something: Sfdc.canvas.client.subscribe(sr.client, { name: "publisher.getPayload", onData: ...
2
votes
0answers
114 views

How to get canvas parameters in Salesforce to Salesforce integration

I am new to integration and trying a salesforce to salesforce integration using canvas. I am facing a problem while retrieving canvas parameters in visual force page. Not sure what I am doing wrong. ...
2
votes
0answers
156 views

Canvas SDK and server side OAuth (.net)

I am attempting to connect our C# MVC application with Salesforce to use within Salesforce record pages (e.g. opportunity details) and a Visual force page. Using the Force.com-Toolkit-for-NET I can ...
2
votes
0answers
372 views

Close Publisher in VF Quick Action in Aloha

I've written an object-specific quick action which works wonderfully in Lightning Experience and in SF1. It also works in Aloha, but the final piece is to have the publisher close itself when the save ...
2
votes
0answers
179 views

Salesforce Connected Canvas App Signed Request in Managed Package

I have a Salesforce Connected App using Salesforce Canvas and the signed request method. The signed request is received decoded and access token used without issue in my developer org. I have since ...
2
votes
0answers
184 views

Canvas Limits with javascript

I am looking for more information about canvas limits. I found documentation where they said 5000 calls per user per 24 hours (This includes SDK calls to get context and signed request calls. Note ...
2
votes
0answers
348 views

Parameters set through the canvasApp in VF page not recieved in the connectedApp's client code

I am new to Canvas framework and stuck with some basic requirement I have created a connected app to integrate my application with salesforce through oauth flow. callback url destination is the ...
2
votes
0answers
94 views

Canvas App OAuth Fails in Salesforce1

I have a canvas app I am making Salesforce1 compatable. Things work fine when I log in to the desktop and use it is "Salesforce1 mode", but when I try and access it in my Salesforce1 with my dev org, ...
2
votes
0answers
233 views

Javascript not supported in SAP WebdynPro or WebGUI. How can a canvas app subscribe in that situation?

I am in a position trying to submit a Canvas POC to the client. But the issue is Javascript not supported in SAP WebdynPro or WebGUI. How to subscribe to visualforce events from canvas events in that ...
2
votes
0answers
629 views

SAP Webdynpro Canvas not displaying in Chrome, rendering partially in Firefox. Any suggestions please

I built a canvas app using SAP webDynpro and it displayed and renders correctly in IE, partially displayed in Firefox and nothing displayed in Chrome. Anyone came across this please share their ...
2
votes
0answers
936 views

Print Functionality in Salesforce1 Mobile App

I am trying to do the print option in the Salesforce1 Mobile app. I have tried two methods of printing, one is a Javascript method and the other I've tried using is the canvas method. But both methods ...
1
vote
0answers
14 views

How to configure HTTP request headers for a Canvas app

I’m trying to create a Canvas app where the URL is served by a CDN. Salesforce is setting 'cache-control: no-cache' in the request header and this is causing the request to fail with status 403 along ...
1
vote
0answers
19 views

Canvas app signed request 'content type' header is always using 'application/x-www-form-urlencoded'. Can this be set to application/json?

We have a situation where our APIs do not accept a content type of 'application/x-www-form-urlencoded' and I can't figure out how to force the canvas app configuration to use another content type that ...
1
vote
0answers
98 views

Canvas App not showing in Chatter in Lightning UI

I have created a Canvas App and I have enabled it for everything including Chatter. I am able to preview the Canvas App and it also shows up as a Quick Action. However, while in SF Classic I can see ...
1
vote
0answers
51 views

Running Tableau in Canvas App

I am looking to embed a Tableau report inside one of our SFDC communities. I am planning on creating a separate tab inside of the community so that everybody has access to the report. Will each ...
1
vote
0answers
120 views

Canvas in visualforce page is not capturing data when used in touch screen devices

I have a requirement to capture user's signature using <canvas> and save it to a record. It is working with mouse but not when using touch screen devices like mobile phones. Below is my code: &...
1
vote
0answers
59 views

Canvas app framing issue (how to define domain of RemoteAccessAuthorizationPage.apexp)

We implemented a tool which uses salesforce oauth. This tool should be included into an opportunity page as canvas app. First of all: The oauth2 workflow works fine when I open the tool in a new ...
1
vote
0answers
193 views

Setting height and width of Canvas app using force:canvasApp

We're exploring using force:canvasApp in a community. We are finding that the height and width declarations specified by force:canvasApp don't seem to be having any effect on the displayed component. ...
1
vote
0answers
122 views

How to create, package, and install Canvas application in Salesforce Lightning org?

I am creating a canvas application in Salesforce Lightning, in which I am using just a link of my website to show that website in canvas to have my website looks like working in Salesforce Lightning. ...
1
vote
0answers
280 views

animate a canvas component

I need to highlight a child canvas component inside the parent canvas component. The parent canvas is a circle and the child canvas components are small circles inside it. I need to highlight these ...
1
vote
0answers
72 views

What actions towards Force.com canvas limits?

I'm looking to integrate an external web application into salesforce via connected app/canvas approach. As per project requirements, there will be 10+ visualstudio pages or lightning components that ...
1
vote
0answers
363 views

Lightning renderAs=“pdf” default save button

I'm trying to create a PDF with a small preview. So using a visualforce page to show the pdf and using the default 'save' button. When rendering the page without renderAs="pdf" and including the js ...
1
vote
0answers
126 views

Can we use Lightning Out and Canvas?

I'm wondering if the following is possible. I have an aspx application (App1) that I currently access in SF using Canvas I want to create a Lightning Component that contains that app (lightning:...
1
vote
0answers
309 views

How to show multiple doughnut chart in aura:iteration (In loop)

Basically I want to show doughnut chart in aura iteration using a single Canvas, so that I can show multiple doughnut chart for one parent record. Is there any way to set data for doughnut chart in ...
1
vote
0answers
185 views

how to display external application in layout without iframe

Hi I was wondering what the best way to display an external application in Salesforce (Lead Layout, Contact Layout, etc) without using an iframe. I am asking because the new package has the "Enable ...
1
vote
0answers
22 views

Issue with JqxTabs after Winter 16

we are using JqxTabs for Tabbed Content. In one of the JqxTabs, we embedded Apex Canvas app which plays video content. The functionality works fine before Winter 16 release. After Winter 16 release, ...
1
vote
0answers
37 views

Reusing OAuth from one canvas app in another

I have a few canvas apps that show pages from the same external system in Salesforce. I was wondering if there's anyway we can use OAuth from a single canvas app in all the other places, otherwise, I'...
1
vote
0answers
143 views

View a PDF and TXT file from within an HTML static resource

So i have created a website in pure HTML 5, with some css's, jquery's and modals and locally on my PC it's all working great. I have some PDF and TXT files that i want to be able to view and it's ...
1
vote
0answers
112 views

Canvas App: Picklist values are not showing in Android

I am trying to show master org webpage in to Child Org using Canvas App. There is a picklist field on my webpage bound with apex:inputField. Now, the picklist field options are showing in desktop ...
1
vote
0answers
133 views

Open New Window from Salesforce1 Canvas

Salesforce1 supports opening of a new window to 3rd party sites by using the sforce.one.navigateToUrl command. Is it possible to do this from within a Canvas app running within Salesforce1? The ...
1
vote
0answers
31 views

Can we OAuth without overwriting the user's current login?

We’re currently working on integrating our application with Salesforce as a canvas app and hit a snag. Our application uses OAuth to allows a single user to grant our app access to multiple orgs (...
1
vote
0answers
75 views

canvas-all.js:825 Uncaught #<Object>. in canvas.all.js fie

Scenario: My .NET-based application is deployed on some other application server (not Heroku). I have put the following JavaScript code on my .NET application page: <script type="text/...
1
vote
0answers
390 views

Implementing SAML SSO for Canvas Apps - Need help

I am trying to implement SAML SSO for Canvas Apps. I have followed all steps stated in the article "Implementing SAML SSO for Canvas Apps" https://developer.salesforce.com/page/...
1
vote
0answers
113 views

Salesforce1 Canvas App stuck at loading

I've created a test Canvas App, hooked it up to an Action. It's a basic "hello world" App. It decodes the signed requests and prints "hello world". It works fine in Canvas App Previewer, however when ...
1
vote
0answers
128 views

publisher action uncaught #<object> error

I'm using publisher action on object with vf. In my vf im getting the following javascript error in the publisher.js file : uncaught #. here is my code : <apex:page docType="html-5.0" ...
1
vote
0answers
639 views

Is Signed Request (used in cavas app) and single sign-on are same?

I am very much confused of the type of authentication used to connect a canvas app. If i use Signed Request, would the canvas app still ask me to sign into the app with an username and password? How ...
0
votes
0answers
21 views

“Browsing session has ended or is invalid” when loading Canvas in DX scratch org

I followed this Salesforce tutorial to get a Canvas connection working in a DX scratch org. I'm quite sure I configured everything right but the Canvas on the page always shows Canvas - ...