|
I
I have in my html page. A list of checkboxes by the same name "rowsel"
expected to be able to use the zhbGetVarCnt('rowsel') to get the numberof
occurences and then loop through to determine the which ones werechecked.
However, it's working right. I was wondering is anyone had an ideas.laid
I found a sample on the web and I followed that sample as they have it
out but it doesn't appear to be working. I'm always getting a number oflike
occurrences of 1 and if I have a check box selected, it always looks
the first one was selected. Make sense?
<htmlsnip>
<tr>
<td class="GBLTblDtl1Select">
<input type="checkbox" name="rowsel" />
</td>
<td class="GBLTblDtl1Alpha">
CHART
</td>
<td class="GBLTblDtl1Alpha">
Chart of Accounts Listing
</td>
</tr>
<tr>
<td class="GBLTblDtl2Select">
<input type="checkbox" name="rowsel" />
</td>
<td class="GBLTblDtl2Alpha">
CISCODE
</td>
<td class="GBLTblDtl2Alpha">
CIS Code Correction
</td>
</tr>
</htmlsnip>
<rpgsnip>
RecsOnPage = zhbGetVarCnt('rowsel');
For iX = 1 To RecsOnPage;
RowSelected = zhbGetVar('rowsel':iX);
If RowSelected <> 'on';
ItEr;
EndIf;
...
EndFor;
</rpgsnip>
The sample I found on the web is here...
http://www.semiug.org/docs/cgidev2_presentation.pdf Page 63 in the pdf.
Thank you for your help.
Michael Schutte
Admin Professional
Bob Evans Farms, Inc.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
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.