Color a Complete Row Based on Condition Interactive Report|| Oracle APEX

Color a Complete Row Based on Condition 
Interactive Report || Oracle APEX


1. I went straight to my previously created report page.

2. Go To IS_ACTIVE Column >> Static ID- status

3. Go To report's properties >> Column CSS Classes- emp

4. Go To Page Properties >> Execute when Page Loads >> Paste the following code

    $(".emp td[headers=status]").each(function(){
celldata= $(this).text();
if (celldata =='Inactive')
$(this).parent().children().css('background-color','#f4b5b5');
    });

5. Create a Dynamic Action  >> Name- After Refresh
Event: After Refresh >> Selection Type: Region >> Your Report
Action: Execute Javascript Code >> Paste the following code
    $(".emp td[headers=status]").each(function(){
celldata= $(this).text();
if (celldata =='Inactive')
$(this).parent().children().css('background-color','#f4b5b5');
    });




       Then Enjoy.........................

Post a Comment

Hlo Sir

Previous Post Next Post