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

Script Library

  How to generate an email after a record has been submitted
  Josh_Fulleton posted this script:
  Add this code to the view
            function Data_AfterInsert(record, previous)
                      var linkUrl ='http://'+ request.getServerName()+''+request.getRequestURI()+'?_mode=details&RowId='+record.RowId;
                       var mmMessage = new Email();
                  = "";  // Put your email address in this section
                           mmMessage.from = "";  // Leave this as it will yield the best result.  If you change it, you may have delivery issues.
                           mmMessage.bcc = "";
                           mmMessage.subject = "["+record.TicketID+"]"+" "+record.Subject;
                           mmMessage.body = record.Body+"<br><br> "+record.Attach_File+"<br><br>
                            <a href="+linkUrl+">"+linkUrl+"</a>;
                           mmMessage.contentType = "text/html";   
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