Hiding Table Buttons For List View

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
knightro
User
Posts: 41

Hiding Table Buttons For List View

Post by knightro »

Following don't seem to be working in version 10 for hiding buttons on list page. Any suggestions?

ewDom.getElementsBy(function(a){if (a.className == "ewGridLink" && a.innerHTML == "Add") a.style.display = "none";}, "A");
ewDom.getElementsBy(function(a){if (a.className == "ewGridLink" && a.innerHTML == "Inline Add") a.style.display = "none";}, "A");
ewDom.getElementsBy(function(a){if (a.className == "ewGridLink" && a.innerHTML == "Grid Add") a.style.display = "none";}, "A");
ewDom.getElementsBy(function(a){if (a.className == "ewGridLink" && a.innerHTML == "Grid Edit") a.style.display = "none";}, "A");
ewDom.getElementsBy(function(a){if (a.className == "ewGridLink" && a.innerHTML == "Delete Selected Records") a.style.display = "none";}, "A");
ewDom.getElementsBy(function(a){if (a.className == "ewGridLink" && a.innerHTML == "Update Selected Records") a.style.display = "none";}, "A");


danielc
User
Posts: 1601

Post by danielc »

Check if you have javascript error. There is no ewDom in v10.

See this topic how to hide button, http://www.hkvforums.com/viewtopic.php?f=4&t=33775


Post Reply