I'm trying to get the Work Order Number while on the Booked Labor tab. The workordernum is not available as a field on the tab.
Is there a way to get it from EAM.Utils.getScreen()?
Thx!
Michael
EAM.Utils.getScreen().getScreenController().getFormPanel().getRecord().data.workordernum
Yes! That's exactly what I was looking for. Looks like I need to spend some more time studying the ExtJs API.
The EAM.Utils technique will not work on Comments, Documents, User Defines Screen tabs or Report Tabs.
I use the following Function that gets the data from the Data in the top Left od the screen:
function getKey()/* ©2018 Stratum Consulting Partners** Version 1.0 2018-06-20** ********************************************************************** Get a Key Value from Screen. **** Calling Arguments:** - None*/{ vValue = ''; vNode = document.getElementsByClassName('recordcode'); if (vNode.length == 0) {return}
vValue = vNode[0].innerText; return vValue;}