• Sumana R 15
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi,
I am displaying data in the lightning component using the data table and have been exposed to Sites via the VF page. Now the requirement is, all the records of the table should be clickable and open detail into a new tab in Site where more action can be placed onto the detail page.

 This works fine when I use this component in Salesforce Lightning App or preview from the developer console. it's clickable and opens in a new tab.

Whereas opening in new tab does not work when I expose this component to Site.    

Any Suggestion, below are the snippet code.

component.set('v.columns',[
            {label: 'Job ID', fieldName: 'linkName', type: 'url', sortable:true, typeAttributes: { label:{ fieldName: 'Name'}, target:'_blank'}}


if(state === "SUCCESS"){
                var storeResponse = response.getReturnValue();
                console.log('storeResponse.length is ',storeResponse.length);
                storeResponse.forEach(function(record){
                    record.linkName = '/'+record.Id;
                });

I have an Object which is n master-detail with another object 
When A record in object A is created 3 records are created in Object b automatically.(I did this through process builder)
I want to put the component on object A to show all the associate record of object B and billing details of it.

Thanks in Advance!