|
Folks: I've got an issue that I've diligently searched and tried to solve on my own; so much so that if I saw a solution now in my searching I'd probably not be able to recognize it. Such is the curse of too much pride to ask for help. My situation is this: I've got a 5250 screen with checkboxes enabled in it, via the enhanced 5250 display characteristics. The keywords for that support are not supported in webfacing, and I was aware of that when I created them, but had assumed I was wise enough to design around it. Turns out I was wrong. I've not found a single example of the code required to replace that function, and would appreciate it if one of you could point me in the correct direction. Generally speaking, what I'm doing now is: Hiding the 2 digit control field required in DDS for the MLTCHCFLD keyword Exposing the four DDS-hidden checkbox fields (1 -or- 0 value) to the webfacing as hidden fields Created a dummy 1 byte text field directly after the 2 digit field above, and inserted HTML into it via CODE Designer that looks something like this: Limit to customer types: First <INPUT TYPE="checkbox" ID="seltype1"> Second <INPUT TYPE="checkbox" ID="seltype2"> Third <INPUT TYPE="checkbox" ID="seltype3"> Fourth <INPUT TYPE="checkbox" ID="seltype4"> <script> setCheckBoxValue("l1_BYCUST_yCTL$SELOPT$1",seltype1); setCheckBoxValue("l1_BYCUST_yCTL$SELOPT$1",seltype2); setCheckBoxValue("l1_BYCUST_yCTL$SELOPT$1",seltype3); setCheckBoxValue("l1_BYCUST_yCTL$SELOPT$1",seltype4); </script> setCheckBoxValue is a function in one of the JS files in ClientScript/usr and looks like this: function setCheckBoxValue(id_name,cb_name) { get_cb = eval(cb_name); get_id = eval(id_name); if (get_id.value == '1') { get_cb.checked = true; } else { get_cb.checked = false; } } Any hints or suggestions are greatly appreciated in advance. MP
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.