• Rumpa
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
I am trying to convert one Visualforce page to a lightning component. Kindly sugget best way in which this can be done for the below code.

<apex:page id="poac" standardController="MyCustomObject__c" tabStyle="MyCustomObject__c">
<apex:sectionHeader title="Message" subtitle="{!MyCustomObject__c.Name}"/>
<div id="poac_content">
<h3>Please Wait.. Processing {!MyCustomObject__c.Name}</h3>
<img class="waitingImage" src="/img/loading.gif" title="Please Wait.. Processing {!MyCustomObject__c.Name}"/>
</div> <script src="/soap/ajax/22.0/connection.js" type="text/javascript">
</script>
<script src="/soap/ajax/22.0/apex.js" type="text/javascript">
</script>
<script type="text/javascript">
sforce.connection.sessionId = "{!$Api.Session_ID}";
//var returnPath = "/{!MyCustomObject__c.id}";
var poaId = "{!MyCustomObject__c.Id}";
var result = sforce.apex.execute( "COE_Alignment_Request_Handler",
                                                      "processRequest",
                                                       {selectedID:poaId,bAdd:"FALSE"} );
if(result == 'true') {
window.location.href= "/apex/RecordRemoved"; }
else
{ var errorDisplayPanel= document.getElementById("poac_content");
errorDisplayPanel.innerHTML("<h2><b>"+result+"</b></h2>"+
                                                                      "<br/><br/><a href='"+returnPath+"'> Click Here</a> to return" ); }
</script>
</apex:page>
  • January 07, 2019
  • Like
  • 0
Is there any inbuilt Lightning component for creating Sidebar in Lightning HomePage
  • October 25, 2018
  • Like
  • 0
I am trying to create a lightning component which has URL (for example: www.google.com) and when clicked on the hyperlink, A new window opens up for the link. Please suggest on how can this be achieved in Lightning.
  • October 25, 2018
  • Like
  • 0
I am trying to convert one Visualforce page to a lightning component. Kindly sugget best way in which this can be done for the below code.

<apex:page id="poac" standardController="MyCustomObject__c" tabStyle="MyCustomObject__c">
<apex:sectionHeader title="Message" subtitle="{!MyCustomObject__c.Name}"/>
<div id="poac_content">
<h3>Please Wait.. Processing {!MyCustomObject__c.Name}</h3>
<img class="waitingImage" src="/img/loading.gif" title="Please Wait.. Processing {!MyCustomObject__c.Name}"/>
</div> <script src="/soap/ajax/22.0/connection.js" type="text/javascript">
</script>
<script src="/soap/ajax/22.0/apex.js" type="text/javascript">
</script>
<script type="text/javascript">
sforce.connection.sessionId = "{!$Api.Session_ID}";
//var returnPath = "/{!MyCustomObject__c.id}";
var poaId = "{!MyCustomObject__c.Id}";
var result = sforce.apex.execute( "COE_Alignment_Request_Handler",
                                                      "processRequest",
                                                       {selectedID:poaId,bAdd:"FALSE"} );
if(result == 'true') {
window.location.href= "/apex/RecordRemoved"; }
else
{ var errorDisplayPanel= document.getElementById("poac_content");
errorDisplayPanel.innerHTML("<h2><b>"+result+"</b></h2>"+
                                                                      "<br/><br/><a href='"+returnPath+"'> Click Here</a> to return" ); }
</script>
</apex:page>
  • January 07, 2019
  • Like
  • 0
I am trying to create a lightning component which has URL (for example: www.google.com) and when clicked on the hyperlink, A new window opens up for the link. Please suggest on how can this be achieved in Lightning.
  • October 25, 2018
  • Like
  • 0