Search these areas:
Help
Support Forums
Product Info



-Introduction
-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Views
-Templates
-Components
-Data Analysis
-Members
-Security
-Importing
-Exporting
-FTP
-JavaScript
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-Glossary
-New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
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.

http://support.dataweb.com/Help/default.view?Topic=objectmodel/wsobjectmodel

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.

http://support.dataweb.com/Help/default.view?Topic=resultset.sendCSV()

http://support.dataweb.com/Help/default.view?Topic=resultset.getCSV()

Hope this information proves helpful.

Thanks,
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