Kbase P14118: Cannot enable fields in Dynamics Web using javascript
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  25/11/2003 |
|
Status: Unverified
SYMPTOM(s):
Cannot enable fields in Dynamics Web
Problem using custom screen without toolbar
There is no Update link in the customer screen
Added custom javascript to enable the fields in Dynamics Web
CAUSE:
Could not reference the widgets by name in javascript
FIX:
Use a subscript and search for the buttons and fields by scanning the elements[ ] array in the form.
i.e.:
function pmmprfullo_view(){
alert("view");
// document.pmmProdListWin.busearch.disabled = false. **THIS DOES NOT WORK
// apph.action('buDone.enable'); *****THIS DOES NOT WORK
// apph.action('buSearch.enable'); *****THIS DOES NOT WORKS
// scan the elements array and search for buDone, buSearch
for (i = 0; i < pmmProdListWin.length; i++) {
var tempobj = pmmProdListWin.elements[i];
// alert (tempobj.id.toLowerCase());
if (tempobj.id.toLowerCase() == "busearch" || tempobj.id.toLowerCase()
== "budone" ){
tempobj.disabled = false;
}
}
}