Customizing ScriptWorx - Server Mappings

When you preview a page in ScriptWorx, you would normally not see live database views or any other for of server-side technologies at work. This no longer has to be the case, because you can now change to a "live" database view.

Consider you have a file saved to C:\Site\data\viewer.cfm - this file has ColdFusion database code, which is normally ignored by the browser. You can "map" the directory above to a server address (eg. "http://mysite/data/viewer.cfm") so that when you click the internal "Preview" button, you will see the database in the preview.

Using the Preferences window, click the "Server Mappings" option.

  • Choose the "Add" button and enter the directory path in File Path, including a trailing backward slash, for example: C:\Site\data\
  • Now specify the address of the file on your web server, excluding the file name, such as "http://mysite/data/" - you must not include the quotes, but you must have a trailing forward slash now.
  • When you click on "Preview" again, your file will be saved and you can view your database in realtime.