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

Script Library

  How to setup file upload
 
  Josh_Fulleton posted this script:
  (Example from a HelpDesk application where a user will upload a screenshot)


1. Click on TICKET Folder at File  Directory inside TICKET Folder four files are present i.e. TICKET.data, default.view, TicketFrame.view and  TicketInput.view.

2. Click on TICKET.data file then at Designer Tab we can see three tab i,e design, script and preview (default) , click on design tab.

3. In design tab we can see that all field with there data type and caption name.

4. Now see Attach_File field here we can see that the data type of Attach_File is LongText but here we want Attach_File data type as URL to solve this problem.

5. Click on Delete Fields Button then select Attach_File click on Next then click on Delete Button.

6. Now click on Add Fields Button to add new data field for Attach_File then click on Custom Fields Insert Field Name Attach_File Change DATA TYPE as URL and click on Finish Button

7. Click on TICKET folder then select TicketInput.view file.

8. Click on source tab at Designer Tab, Now we can see code of TicketInput.view file

9. To add the upload screenshot function, add the following bit of code to the section where the Attach_File field is located;

EXAMPLE CODE:
<ws:field name="Attach_File" format="link" displaymodes="details,insert" editmodes="insert">
<ws:caption>Attach Screenshot</ws:caption>
<ws:input type="file" delete_caption="Delete Existing File: (#record.Attach_File#)" /></ws:field>
 
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