• saranya sista 4
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
i want my user to redirect to a vf page on clicking a url sent via email . i wwant to place that vf page in communities . its a survey form hence no session logins required . 

could someone please suggest me the approach.
Below is my requirement :

1. 1st component contains a list of records . On clicking any specific record . It should navigate to second component. (1st component is in a lightning page)

2. 2nd Component will contain some custom data as well as data of the record from which it is fired .


---In my case ,  2nd component is not opening  .Could someone please provide a solution . Thanks in Advance

controller---------
var navService = component.find("navService");
        var pageReference = {
            type: "standard__component",
            attributes: {
                componentName: "c__peDetail"
            },
            state: {
                "projectId": PID
            } 
        };
       console.log(pageReference);
       navService.navigate(pageReference);

defined the variable in cmp -- 
<lightning:navigation aura:id="navService" />
    <aura:attribute name="pageReference" type="Object"/>


 

controller---------
var navService = component.find("navService");
        var pageReference = {
            type: "standard__component",
            attributes: {
                componentName: "c__peDetail"
            },
            state: {
                "projectId": PID
            } 
        };
       console.log(pageReference);
       navService.navigate(pageReference);

defined the variable in cmp -- 
<lightning:navigation aura:id="navService" />
    <aura:attribute name="pageReference" type="Object"/>