Page 1 of 1

Master Table Color Change

Posted: Wed Jun 07, 2017 1:03 am
by mishanian

Hi,
how can we change the master table background color when it is showing it on the top in the detail table?


Re: Master Table Color Change

Posted: Wed Jun 07, 2017 1:16 pm
by arbei

In which scenario you are talking about?

Master view page show detail records or Detail list page show master records?


Re: Master Table Color Change

Posted: Tue Jun 13, 2017 11:40 pm
by mishanian

Hi,
I am talking about the background color or font color of Master table, is it possible these COLORS to be separate from detail table?


Re: Master Table Color Change

Posted: Wed Jun 14, 2017 11:19 am
by arbei

If you use vertical master table, you only need to add CSS classes for table.ewMasterTable. Otherwise,

You can use CurrentTable->getCurrentDetailTable() and CurrentTable()->getCurrentMasterTable() to check if the page is in Master/Detail View or List page.

(Assuming you are talking about Master table view page with showing detail record list.)

You can use below code in Startup Script of the master table view page to change the font color of the master table.

For example:

<?php if (CurrentTable()->getCurrentDetailTable() <> "") { ?>
$(".ewViewTable").css("color","red");
<?php } ?>

Remember to write your own code first, and post your code here for further discuss.