Search these areas:
Support Forums
Product Info

-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Data Analysis
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-New Responsive UI Module

DataWeb Help
Support Forums
Script Library
Knowledge Base

Home > Support

Support Forum

Checkboxes and arrays
pnwer asked:
I am in the process of building a custom reporting and export module, but am running into a small problem.  I want users to be able to select the fields they want to display in their report from a list of check boxes. Example

_ Name
_ Address
_ PhoneNumber

I have written many of the scripts, but an running into a problem retrieving the checked boxes to input into the script that builds the reports.  Do you have any hint on how to get an array from the checkboxes and push that data into a .ws script.  Thank you.
  usman (DataWeb) responded:
  Please try the following and let me know how it goes.

<form action="/" method="post" >

Select the fields:

<input type="checkbox" value="1" name="check" >Name</input>
<input type="checkbox" value="2" name="check">Address</input>
<input type="checkbox" value="3" name="check" >Address1</input>
<input type="submit"/>

In write following code Webcall function test()

Var values=request.getparameterValues (“check”);
Response. write (values);
  pnwer responded:
  Tested this, and it does exactly what I needed.  Thank you.  
  usman (DataWeb) responded:
  Dataweb considers this issue closed.
If you have additional questions or comments about this issue, please open it again.
If you have questions about a different topic please open a new support question.

Dataweb Support
  Please Log On
or create your own DataWeb Account.
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us