KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: Exporting the Smart Way — Using Smart Templates
PRODUCT: 4D | VERSION: 15 | PLATFORM: Mac & Win
Published On: November 17, 2015

One of the most common tasks for 4D developers is exporting reports. The common solution is a 4D Project Method using the command SEND PACKET, housed in a loop, writing field contents to disk. With every requirement for a new report comes a new purposeful block of code and yet another structure deployment to make the report available. What if there was a way to break this cycle? Enter Smart Templates

Download Complete Tech Note: Tech Note Document

Commented by Charlie Vass on November 18, 2015 at 10:17 AM
Great catch! The solution is within 4D, create an interprocess variable, such as <>FolderSeparator_T, initialize it during startup, <>FolderSeparator_T:=Folder separator, which the French version of 4D will translate correctly, and then used <>FolderSeparator_T in the template instead of the 4D constant.
Commented by benoit BRIERE on November 18, 2015 at 8:52 AM
Attention with the 4D Constants in the templates which, of course, are not recognized by a french 4D…