KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: 4D Ajax Framework's support folder and 4D Server v11 SQL
PRODUCT: 4D Server | VERSION: 11.5 | PLATFORM: Mac & Win
Published On: April 29, 2010

When using the 4D Ajax Framework and 4D v11 SQL Server there is a startup and shutdown behavior that database administrators and designers need to be aware of.

The 4D Ajax Framework Support folder is normally located inside the database Resources folder. When 4D Server launches a 4D Ajax Framework enabled database, the Support folder is moved outside the Resources folder by the 4D Web Pack 2.0 initialization methods. This is done to reduce that amount of network traffic when clients log on since the entire contents of the database Resources folder is transferred to every client. The 4D Web Pack 2.0 Support folder is unnecessary for remote clients.

When 4D Server goes through a normal shutdown the Support folder is moved back inside the Resources folder by the 4D Ajax Framework shutdown methods. Now, if the database is opened by 4D v11 SQL in local mode everything with the 4D Ajax Framework will work as expected, because the Support folder was moved back to the normal place.

However, in the case of 4D v11 SQL Server not being shutdown normally, such as in a crash or force quit, the Support folder is left outside the Resources folder. Before this database is reopened, using 4D v11 SQL or 4D v11 SQL Server, the Support folder must be moved back inside the Resources folder. If this is not done, unexpected behavior may occur when the database is launched.