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

Gaining access to objects in a view
pnwer asked:
I am trying to write a script to dynamically produce a .csv file using the fields dispalyed in a view.

For example, I have a .view of the addressbook, with only the fields: FirstName, LastName

This is done through <ws:field="firstname"/> and <ws:field="lastname"/>

Is there any way to return an array of the fields that are included in a view.  This would allow me to build a (relatively) universal .csv button that mimics the data displayed in the view.
  usman (DataWeb) responded:
  Thanks for your interest in DataWeb HostRAD application.

To figure out/recall how to do something programmatically/dynamically; please refer to the object model firstly.

One of the objects here under "Data Access Objects" is the resultset opbject.

There are a few CSV functions (sendCSV, getCSV). That sends CSV to the browser OR produce a CSV text string that can be saved as a file.

Please refer to the link below.

Hope this information proves helpful.

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