Below is an example of the CONFIRM prompt HTML that is generated into the HTML skeleton:
<!--(_d1904+CONFIRM) Confirm prompt (dependent)-->
<INPUT TYPE="HIDDEN" NAME="_F1913U" VALUE=" " SIZE="1">
<SCRIPT>
if (confirm("Confirm changes?"))
window.document.forms[0]._F1913U.value = 'Y'
else
window.document.forms[0]._F1913U.value = 'N';
if( ONSUBMITFUN() == true) window.document.forms[0].submit();</SCRIPT>
<!--(_d1904) End of dependent confirm prompt-->
In this example, if 'CONFIRM' appears at screen offset 1904 (that is, if the confirm prompt is showing on the green-screen) the selected information is included in the HTML page sent to the browser only .
Following is an example of the generated HTML for a CA 2E sub-file select prompt:
<!-- (_d0722I) Dependent display when input field -->
<SELECT NAME="_F0722">
<OPTION SELECTED VALUE="(_v0722)">(_v0722)
<OPTION VALUE="4">Delete</OPTION>
</SELECT>
<!-- (_d0722X) Otherwise display output field -->
(_f0722)
<!-- (_d0722) End of dependent output -->
In this example, the drop-down list is included in the HTML page sent to the browser only if an input field appears at screen offset 722 (that is, if the sub-file select field itself is on the green-screen and is input-capable). If the sub-file select field is not input-capable (when the confirm prompt displays), then the output data at the same offset (in green) is outputted instead.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |