Change the color of current cell/column in GRID based on condition change .

Change the color of current cell/column in GRID based on condition change .

step 1) Create 3 Custom Event on Grid Column or Page Item   ( Give name as Change , blur  , focus) 

step 2)  Action:- Execute Java Script 

step 3) Below code based on your requirement

var a = apex.item(this.triggeringElement).getValue();

console.log('value is ',a);

if (a =='A')

    {


$(this.triggeringElement).css("background-color", "lightblue");

    }

else if (a =='C')

    {

$(this.triggeringElement).css("background-color", "red");

        

    }

else if (a =='N')

    {

$(this.triggeringElement).css("background-color", "green");

        

    }

Comments

Popular posts from this blog

Telegram Integration with Oracle

The username or password for the connection pool named |apex||, are invalid, expired, or the account is locked

Enabled SQL Developer Web (SDW) & ORDS Database API ORDS 19.4