Hi,
Yes, you can hide entire column, change specific value and do what you like to do. You just need to find the right tag/ code to achieve this. Below is the sample code I used to hide a column called application type & sessionid in the list. I am also doing some other stuff like hiding the Create button in certain condition, changing the redirect url of that create button based on app type i.e. apptype 1 open app type 1 create page and so on. There is also a code changing the edit/view action for each record based on the status of the record i.e. if in progress then resume link else view/readonly. Not sure if you can work out the exact code you need from it but it is worth to take a look.
If you still face any issue, post here your exact requirement.
==================
$(document).ready(function () {
$(".entitylist.entity-grid").on("loaded", function () {
var selectView = $("a[class='selected-view dropdown-toggle']");
var selectViewTitle = selectView.attr('title');
var showApplicationColumn = false;
if (selectViewTitle !== undefined) {
// Update link for "Open new application" based on view selected. If no view selected then hide the create button and show application colum
var createButton = $("a[title='Create']");
if (createButton !== undefined) {
var currentPath = createButton.attr('href');
if (selectViewTitle === "ApplicationType1") {
currentPath = currentPath.replace("application-bankguarantee-create", "application-ApplicationType1-create");
createButton.attr('href', currentPath);
}
else if (selectViewTitle === "ApplicationType2") {
currentPath = currentPath.replace("application-bankguarantee-create", "application-ApplicationType2-create");
createButton.attr('href', currentPath);
}
else if (selectViewTitle === "ApplicationType3") {
currentPath = currentPath.replace("application-bankguarantee-create", "application-ApplicationType3-create");
createButton.attr('href', currentPath);
}
else if (selectViewTitle === "ApplicationType4") {
currentPath = currentPath.replace("application-bankguarantee-create", "application-ApplicationType4-create");
createButton.attr('href', currentPath);
}
else {
showApplicationColumn = true;
createButton.hide();
}
}
}
// Update link for "View/ Resume" based on application status i.e. if in progress then go to resume application else open edit for in readonly mode
$(this).children(".view-grid").find("tr").each(function () {
var applicationType;
var statusReason;
var sessionid;
$(this).find("td").each(function () {
var elm = $(this).attr("data-attribute");
if (elm === "new_applicationtype") {
var applicationTypeValue = $(this).attr("data-value");
var obj = $.parseJSON(applicationTypeValue);
applicationType = obj.Value;
}
if (elm === "statuscode") {
var statusReasonValue = $(this).attr("data-value");
var obj = $.parseJSON(statusReasonValue);
statusReason = obj.Value;
}
if (elm === "new_sessionid") {
sessionid = $(this).attr("data-value");
}
});
// Update link path
if (applicationType !== undefined && statusReason !== undefined) {
var currentPath;
$(this).find("td").each(function () {
$(this).find("a[class='edit-link']").each(function () {
var currentPath = $(this).attr('href');
if (applicationType === 220970000) { // ApplicationType1
if (statusReason === 1) {
currentPath = "mycrmportal.org.au/.../application-applicationtype1-create; + sessionid;
$(this).attr('title', "Resume");
$(this).text('Resume');
}
else {
currentPath = currentPath.replace("all-applications-view", "application-applicationtype1-edit");
$(this).attr('title', "View");
$(this).text('View');
}
}
else if (applicationType === 220970001) { //ApplicationType2
if (statusReason === 1) {
currentPath = "mycrmportal.org.au/.../application-applicationtype2-create; + sessionid;
$(this).attr('title', "Resume");
$(this).text('Resume');
}
else {
currentPath = currentPath.replace("all-applications-view", "application-applicationtype2-edit");
$(this).attr('title', "View");
$(this).text('View');
}
}
else if (applicationType === 220970002) { // ApplicationType3
if (statusReason === 1) {
currentPath = "mycrmportal.org.au/.../application-applicationtype3-create; + sessionid;
$(this).attr('title', "Resume");
$(this).text('Resume');
}
else {
currentPath = currentPath.replace("all-applications-view", "application-applicationtype3-edit");
$(this).attr('title', "View");
$(this).text('View');
}
}
else if (applicationType === 220970003) { // ApplicationType4
if (statusReason === 1) {
currentPath = "mycrmportal.org.au/.../application-applicationtype4-create; + sessionid;
$(this).attr('title', "Resume");
$(this).text('Resume');
}
else {
currentPath = currentPath.replace("all-applications-view", "application-applicationtype4-edit");
$(this).attr('title', "View");
$(this).text('View');
}
}
$(this).attr('href', currentPath);
});
//Show Hide Workflow link
$(this).find("a[class='workflow-link']").each(function () {
if (!(statusReason === 1 || statusReason === 220970001)) {
$(this).parent().hide();
}
});
});
}
});
if (!showApplicationColumn) {
$("a:contains('Application Type')").parent().hide();
$('[data-attribute="new_applicationtype"]').hide();
}
$("a:contains('Session ID')").parent().hide();
$('[data-attribute="new_sessionid"]').hide();
});
});
==================
Hope this helps