You need to sign in to do that
Don't have an account?
Diane Roberts 3
How do I include a visualforce page in my lightning app
Hi,
I have created a Visualforce Page titled NewActionListView.vfp. The code is listed below:
<apex:page controller="NewActionListController">
<apex:pageblock title="User Actions List" id="actions_list">
<apex:repeat var="act" value="{! newActions }" rendered="true" id="action_list" >
<li>
<apex:outputLink value="/{!act.ID}" >
<apex:outputText value="{! act.Name}"/>
</apex:outputLink>
</li>
</apex:repeat>
</apex:pageblock>
</apex:page>
The controller - NewActionListController.apxc referenced is listed below:
public class NewActionListController {
public List<ACT_Action__c> getnewActions() {
List<ACT_Action__c> results = Database.query(
'SELECT ID, Name FROM ACT_Action__c');
return results;
}
}
It creates a simple listing from a custom object ACT_Action__c.
I am trying to insert it into my Lightning App ACT Tracker. However, when I go to add a Visualforce Page, I don't see the NewActionListView page listed. Is there something else that I need to add to my code?
Thanks!
I have created a Visualforce Page titled NewActionListView.vfp. The code is listed below:
<apex:page controller="NewActionListController">
<apex:pageblock title="User Actions List" id="actions_list">
<apex:repeat var="act" value="{! newActions }" rendered="true" id="action_list" >
<li>
<apex:outputLink value="/{!act.ID}" >
<apex:outputText value="{! act.Name}"/>
</apex:outputLink>
</li>
</apex:repeat>
</apex:pageblock>
</apex:page>
The controller - NewActionListController.apxc referenced is listed below:
public class NewActionListController {
public List<ACT_Action__c> getnewActions() {
List<ACT_Action__c> results = Database.query(
'SELECT ID, Name FROM ACT_Action__c');
return results;
}
}
It creates a simple listing from a custom object ACT_Action__c.
I am trying to insert it into my Lightning App ACT Tracker. However, when I go to add a Visualforce Page, I don't see the NewActionListView page listed. Is there something else that I need to add to my code?
Thanks!
Refer the link.
https://github.com/salesforcejeff/jargon/blob/master/articles/iFramecomponent.md