How to Locked a Page in Oracle Apex using Dynamic Action

0
264
jobscai - oracle apex problem solution
jobscai - oracle apex problem solution

Execute JavaScript Code for Action

var status = document.getElementById('P100_STATUS').value; 
if (document.getElementById('P100_PUBLISHED').value == "Y")
{document.getElementById('P100_STATUS').value="published";
}

if (document.getElementById('P100_LOCKED').value == "Y")
{document.getElementById('P100_STATUS').value="locked";
}