2019-03-12 05:25 AM
I have implemented a piece of code to hide add new button from a grid, this is a piece which will only hide Archer Add new from grid like Cross-reference.
I just want to know is there any other custom object practice which can achieve this same objective.
2019-03-12 05:55 AM
Here is the code you might need:
<script type="text/javascript">
$(document).ready(function(){
$('#master_########').hide(); //Replace #'s with appropriate content
});
</script>
2019-03-12 05:26 AM
.hide() and .show() JQuery functions.
2019-03-12 05:30 AM
yes, we can do that but I have achieve it through CSS also.
<style>
/*Hide Add New from Any Grid this a sample code*/
#put your Id here without removing hash{
position: absolute;
left: -600px;
}
.ml-FldCnt lo_49604 ml-BrdBottom {
position: relative;
}
.ml-command-item-divider subSection-ml-command-items-div First {
position: relative !important;
left: -600px !important;
display: none;
}
</style>
2019-03-12 05:38 AM
Ajeet,
As Ilya Khen suggested, it is much more easier to go with hide(); & show(); functions. It will reduce your lines of code. All you need is just the ID of the button.
2019-03-12 05:55 AM
Here is the code you might need:
<script type="text/javascript">
$(document).ready(function(){
$('#master_########').hide(); //Replace #'s with appropriate content
});
</script>
2019-03-12 07:08 AM
Yes that is implemented also.
2019-03-12 07:24 AM
one is solution from CSS and second one is from Js, both are working perfectly.
2019-03-12 07:25 AM
Sounds good then..