Skip to main content
3 votes

Unable to find action on Lightning Component

Controller not added on Component. Apex Controller(Server-side controller need to be added on aura:component tag using controller attribute. <aura:component controller="...
A.K.'s user avatar
  • 708
2 votes

How to preserve string with newlines passing from LWC to VF controller for PDF rendering

It's not the encoding, it's the rendering. I duplicated your problem with a simple test: <apex:page renderAs="pdf"> <head> <style> .preserve { ...
sfdcfox's user avatar
  • 495k
2 votes
Accepted

LWC - How to make refreshApex work with public property passing from parent

That's not how refreshApex works. It should be used only to refresh data provisioned via an Apex @wire since it needs the whole object returned by a wire adapted, not just the data property. In your ...
RubenDG's user avatar
  • 8,592
1 vote

How to mock when calling a factory class

Like I said in my comments, I don't think that there's much you can do to reduce the amount of setup that you need to do. That said... The simplest way (probably) The simplest way is to create an ...
Derek F's user avatar
  • 62.3k
1 vote
Accepted

How to preserve string with newlines passing from LWC to VF controller for PDF rendering

The final visual force URL needs to be defined explicitly to ensure proper handling of newlines. This can be done using the DomainCreator.getVisualforceHostname() apex class function. Big shoutout and ...
HeXor's user avatar
  • 287

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