Is there way I can change a column title in a sub grid located on a D365 portals entity form without using entity form meta data for the sub grid . The Reason for this is that I have a sub grid with multiple views and there are two fields which need to be titled differently base on the view selected. Some example JavaScript would be great
Your input would be great
Hi,
You can write a function on change of view and execute the below code in order to change the column name dynamically. Please make sure to change the hierarchy of the table to your column name:
if(viewName== "firstView")
{$('table[data-name="YourValue"] > thead > th:first').innerText="Some Name";
}
else if(viewName == "SecondView")
{
$('table[data-name="YourValue"] > thead > th:first').innerText="Some Other Name";
}
Hamza H
141
Daniyal Khaleel
132
DAnny3211
130