Skip to content

Special Cell Attribute Dynamic Colouring #1651

@pcarass

Description

@pcarass

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:

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions