I have below script that I can be able to add at my screen. But Same script I am not able to add in Existing screen as customization.
I want to add this script on page load of Custom screen. I have try with Acumatica customization editor but when I have added this script inside asp control ...while generate script it has gone….please help
<script type="text/javascript">
window.onload = function () {
setTimeout(function () {
const el = document.querySelector(
"#ctl00_phG_tab_t18_EWQCCstPXTab35_t3_QCAttributesDetailsGrid_at_tlb_ul li:first-child"
);
if (el) {
el.addEventListener("click", function (e) {
e.preventDefault(); // optional
console.log("First li clicked");
var ds = px_alls['ds'];
ds.executeCallback('EWQCRefreshAnnotations');
});
}
}, 500);
};
</script>

