Questions tagged [pagereference]
A PageReference is a reference to an instantiation of a page. Among other attributes, PageReferences consist of a URL and a set of query parameter names and values.
291 questions
0
votes
1
answer
66
views
Problem with accessing sobject records using current page parameters in visual force
Here is the SOQL to get the records -
Apex Class -
List<Vendor_Quote_Line_Item__c> vendorQuoteLineItems = [SELECT Id,
Product_Name__r.ProductCode,
Product_Name__r.Name, ...
1
vote
1
answer
905
views
How to navigate to a tab on Lightning record page
I have multiple tabs on Account record page. I want to navigate to "Deal Synopsis" tab by clicking on a button on Case(Brand outline) record page.
I tried using NavigationMixin as suggested ...
0
votes
1
answer
68
views
aura override action not getting recordpage ID
<aura:component implements="lightning:actionOverride, lightning:hasPageReference" access="global">
<aura:handler name="init" value="{!this}" ...
0
votes
1
answer
415
views
CurrentPageReference State is always coming as null
I am trying to fetch the parameter from url in lwc. LWC is embedded in community page.
Here is the code:
import { LightningElement, track, wire, api } from 'lwc';
import { CurrentPageReference, ...
1
vote
0
answers
312
views
LWC lightning__UrlAddressable Subtab State Error
I have created a subtab component which has a lightning__UrlAddressable target. And I am calling it from another component whose code is given below. The issue which I am getting is that it works fine ...
1
vote
1
answer
134
views
How to wait for a VisualForce script to execute when calling it from an Apex method via PageReference?
I have an Apex controller MyController which calls a VisualForce page via PageReference.
Here is my controller:
public with sharing class MyController {
@AuraEnabled
public String param1 { get;...
1
vote
1
answer
255
views
VF page reference getContent() call returns HTML not PDF blob
I'm having an interesting problem trying to send an email to a Contact with a PDF attachment. I've got a VF page that renders as a PDF, and an page controller apex class that creates the email and ...
2
votes
0
answers
102
views
PageReference PDF preview does not display data
I'm trying to create a visualforce popup that displays a preview of a generated PDF (also using visualforce) with tables showing custom object data. The preview window displays the PDF with all the ...
0
votes
1
answer
1k
views
How to identify which region the LWC component is locating in App Page or Record Page?
I have an lwc component that is enable in App Page and Record Page. Whenever using this component, I want this component can identify which page is using it and which region on that page is it being ...
0
votes
1
answer
624
views
Get PageReference from Page.variable
I am trying to dynamically set a PageReference based on a variable.
String pageId = '0664A000000AAaA';
String pageName = [SELECT Name FROM ApexPage WHERE Id =: pageId ].Name;
PageReference pdf = Page....
0
votes
1
answer
1k
views
not able to fetch recordId from currentpagereference
I'm trying to get recordId from currentPageReference, I tried to get this from
also like this -
this.pageRef = this.currentPageReference();
this.recordId = this.pageRef.state.c__id;
but it's ...
0
votes
1
answer
376
views
onPageReference doesn't work
I have a custom lwc that navigates to an aura and it's working fine but whenever I change the url parameters the onPageReference method from the aura is not working.
This is my lwc code:
this[...
-1
votes
1
answer
491
views
Get the page from where the button is clicked
The New standard button in the Salesforce is overriden by the Lightning component (Aura).
Now this New button is being used in the multiple places:
While creating a contact record from the list view ...
3
votes
0
answers
570
views
CurrentPageReference in Debug Flow context
It seems that a Wire call to CurrentPageReference does not work when the LWC is embedded in a Flow Screen when run in the context of Flow Debug mode. This works when the LWC is embedded in a page, and ...
0
votes
0
answers
115
views
Error on previously visited page
im having this kind of error. I want my page to redirect to the last valid page it goes to instead of Account-Show. For example, when I click on a product and I decide to Log-in, after successfully ...