8

Have you tried adding Viewport Meta Tag With width Or initial-scale in VF page as below. <meta name="viewport" content="width=device-width, initial-scale=1.0"/> Without a viewport meta tag, mobile devices render pages at typical desktop screen widths, and then scale the pages to fit the mobile screens. Setting the viewport enables you to control the ...


3

How can we expose lightning component in an existing web page, with the authentication happening in backend or without user having to do that extra click You have to import lightning.out JS from your mydomain and then use$Lightning.use() function which takes authToken (SessionId , OAuth access). Now in your server back you can use any SF's username /...


2

Your download link doesn't work, because your user doesn't have access to file or your link is not correct. 1) To build correct link use this code: String fileDownloadUrl = URL.getSalesforceBaseUrl().toExternalForm() + '/sfc/servlet.shepherd/document/download/' + contentDocument.Id + '?operationContext=S1'; 2) If user don't have access to file. (You can ...


2

I had similar issue but my problem was the svg icon was not loading because the relative url in <use> tag was not working. It was searching on the website domain where the lightning out script is located. I tried with <base> tag to change the base url in javascript but no luck I got some error like using different domain is not allowed while ...


2

it's correct you cannot use ApexPage.addMessage in LWC. But there are a few good replacements. If you want only to display only error messages you can just throw AuraHandledException(message); for your error messages. // ApexClass.class public class Controller { @AuraEnabled public static void someMethod() { Boolean isError = true; ...


1

This works for me in a lightning out page Application: <aura:application extends="ltng:outApp" > <aura:dependency resource="c:selectTable" /> </aura:application> Visualforce: <apex:page standardStylesheets="false" sidebar="false" showHeader="false" > <apex:includeLightning /> <div id="displayManageVisits"></div>...


1

this is what I get when it's in a lightning app page with hardcoded test values in the js import { LightningElement } from 'lwc'; export default class SelectTable extends LightningElement { visitDataArray = [ {id: 1, visitName: 'test1', visitJSId: 'js1'}, {id: 2, visitName: 'test2', visitJSId: 'js2'}, {id: 3, visitName: 'test3', visitJSId: '...


1

As per my understanding, Once the authentication is completed, the session maintained at the browser level. Since you are already using the same machine to access Salesforce and nodejs app the session pickup from cookies and validated the IP address when you are using "lock the session to the originating IP address". If the session id generates with in the ...


1

I would advise you to a confirmation page as a Cloud Page, which accepts submitted values from a form you create natively on your landing page. This will use CreateSalesforceObject to upsert data and RequestParameter to fetch your submitted values: %%[ var @email, @firstName, @lastName, @SFRecord set @firstName = RequestParameter('firstName') set @lastName ...


1

Try changing your $Lightning.use("c.HMVWrapperApp", to $Lightning.use("c:HMVWrapperApp",


1

As of today Lighting Components are not supported in the Mobile SDK. I have not heard about Lighting Components not rendering properly, the issues we have encountered have been about long term session management and navigation. If your app is a simple, single page full screen web experience you may be able to simply wrap the LC in VF, though I wouldn't ...


Only top voted, non community-wiki answers of a minimum length are eligible