The SWire Web App Collection (SWAC) is a collection of demo web applications which explain how to use SWire and SWire4js in developing SWire web applications, namely, software which runs on web browsers and interacts with Stata. SWAC is an open source project and you can download the code from the project web site web site or try the apps on-line here.
The SWire Web App Collection consists of the following apps:
The applications from the SWire Web Apps Collection (SWAC) require that SWire has been installed onto Stata and that the SWire server is running. SWire requires Stata >= 13.
Communication between the SWAC and Swire applications will not be possible if:
The SWAC settings can be modified by adjusting the settings.js file, which is located in the js folder. Currently the only parameter which can be set is the network port, which is used for communicating with SWire (the default value is 50000). This parameter value is stored in the g_swirePort
JavaScript variable, which is defined in settings.js.
The app's web page must be refreshed so that the new settings can take effect. It is possible that a cache clear is also needed in your browser.
CoordPicker is a SWire web app which is useful for inputting data relating to geographical data. It provides a Google map with a marker which can be dragged onto that map. When the user right-clicks on the marker, a data row with latitude, longitude and the corresponding address will be appended to the Stata dataset.
TV Shows Survey is a SWire web app which demonstrates how to create a complex form for inputting data to Stata. The TV Shows Survey provides the user with a form for entering data which can be collected from a hypothetical survey of preferred TV shows. The form offers:
Automatic Report is a SWire web app which demonstrates how to develop an automatic report, namely, a statistical report with data which is automatically retrieved from Stata.
SWire
A software interface, enabling us to query Stata for the executing of basic operations, such as reading or writing data
2016 Italian Stata Users Group Meeting, Rome 17-18 November
Abstract and slides presented at the Italian Stata Users Group Meeting 2016
SWire4js
A JavaScript library for developing SWire web applications
SWire4R
An R package enabling R to interact with Stata for exchanging data
Swire4QGIS
A QGIS plugin enabling data exchange with Stata
SQuery
A web application for collecting questionnaires' responses in Stata