-
Notifications
You must be signed in to change notification settings - Fork 606
Description
Hey @ericrsmith35 ,
I am using the Datafetcher App to retrieve my record collection and feed into the Datatable.
I am on the latest version (4.3.6).
I want to be able to set a special cell attribute for one of my custom fields used in the datatable.
Real simple scenario, if my "pro_Contract_Start_Date__c" field is Blank/Null, the cell attribute should be pro_Contract_Start_Date__c:{class: 'slds-theme_error'}.
If it's populated, pro_Contract_Start_Date__c:{class: 'slds-theme_success}
I had read one of your comments answering a similar question here (LINK) where you said about creating a formula to do this.
The difficulty I have, is how do I reference the particular field in my formula, giving the fact I am using Data Fetcher.
The only way I can access the field is via the "firstretrievedrecord" variable
The issue with using this value in my formula is that is will base the colour coding for all row cells on the first retrieved record value, rather than the individual row value:

Do you have any suggestions of how I could overcome this scenario and have the colour coding based upon the row value?
Many thanks,
Paul