• Abhishek J 1
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I have Created a List View button on OrderLineItem__c object and added it in related list of its parent Order__c, when i click on that button i am below error.
A problem with the Onclick Javascript for this button or link was encountered:

Unexpected Identifier
Code Is:
{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")} 

var IdsToClone = {!GetRecordIDs($ObjectType.Order_Line_Item__c)}; 
var url; 
if(IdsToClone.length == 0){ 
alert("You must choose at least one record to clone"); 

else if(IdsToClone.length > 1) { 
alert("You can't clone more than one record"); 

else{ 
url = "/apex/OrderLineItemsManagement?id="IdToClone; 

if (sforce.console.isInConsole()) { 
srcUp(url); 
} else { 
window.open(url,'_blank'); 
}
Hi everyone,
I need to change background color of the row onclick on it in lightning datatable or HTML table. I am trying it in Lightning web component but I can't find any solution.