Migrating To IntraWeb 14 - Atozed Documentation Center
Migrating To IntraWeb 14 - Atozed Documentation Center
Migrating To IntraWeb 14 - Atozed Documentation Center
Migrating to IntraWeb 14
“ IWImageFile1.ImageFile.FileName :=
‘SomeImage.png’; // no path is required in this case!
https://doc.atozed.com/en/iw14/migratingto14/ 2/10
9/7/2020 Migrating to IntraWeb 14 – Atozed Documentation Center
TContentHandler replaces
TURLResponder
TURLResponder components were discontinued. They have
been replaced by the new TContentHandler (and descendant)
classes. Please note that these are not TComponent
descendants, so they are not visible from the Delphi’s
component pallete. They are lightweight classes and consume
less system resources. The most used content handler classes
are: TContentForm and TContentRedirect.
lization of ServerController
Initialization
All ServerController
Privacy setup/initialization
& Cookies: This site uses cookies. By continuing to(i.e. setting
use this website, you agree to their use.
To nd out more, including how to control cookies, see here: Cookie Policy
ServerController properties at runtime) must be done inside
the ServerController.OnCon g event. Everything inside this Close and accept
OnCon g event is guaranteed to run only once during
https://doc.atozed.com/en/iw14/migratingto14/ 3/10
9/7/2020 Migrating to IntraWeb 14 – Atozed Documentation Center
ServerController.OnNewSession
Signature Change
When opening an old ServerController unit having IntraWeb
XIV or XV installed you may receive an error message like this:
https://doc.atozed.com/en/iw14/migratingto14/ 4/10
9/7/2020 Migrating to IntraWeb 14 – Atozed Documentation Center
Old ServerController.OnNewSession:
procedure TIWServerController.IWServerController
New ServerController.OnNewSession:
procedure TIWServerController.IWServerController
uses IWMimeTypes;
procedure TIWServerController.IWServerController
begin
TIWMimeTypes.RegisterType('.doc', 'application
end;
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To nd out more, including how to control cookies, see here: Cookie Policy
https://doc.atozed.com/en/iw14/migratingto14/ 5/10
9/7/2020 Migrating to IntraWeb 14 – Atozed Documentation Center
a) http://mydomain.com/MyApplication.dll/JS/MyLib.js ->
Using an absolute path
or
and
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
The
To rstmore,
nd out type of relative
including path (c)
how to control is usefull
cookies, see here: when the relative
Cookie Policy
physical path of the current document and the linked
Close and accept
document remain the same even when you move les around
your web server. When you reference something like
https://doc.atozed.com/en/iw14/migratingto14/ 6/10
9/7/2020 Migrating to IntraWeb 14 – Atozed Documentation Center
So, if you are reading only this line of this document: ALWAYS
PUT A SLASH in front of your le name references and you
should be safe!
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
Please
To nd outalso
more, check
includingthis good
how to document
control about
cookies, see here: absolute
Cookie Policy and
relative paths.
Close and accept
https://doc.atozed.com/en/iw14/migratingto14/ 7/10
9/7/2020 Migrating to IntraWeb 14 – Atozed Documentation Center
Cache Files
In older IntraWeb versions there was a method in
WebApplication called NewCacheFile(). Users used it to create
a new cache le (or better, create a new cache le NAME) and
then they could safely use that le name to save images,
reports, whatever. Cache management in IntraWeb XIV and XV
was re-created from scratch and works differently. The rst
rule of IntraWeb XIV and XV cache:
This means: Once you add (or create) a cache le, it does not
belong to you anymore, so don’t touch it again. In older IW
versions, a cache le was a regular le (e.g a PNG image le)
saved under some special folder. Current cache les are more
than this. The cache le contains the original data (e.g. the
PNG image) but also some metadata used by IntraWeb core
when serving the le. So, once the le is added to the cache,
if you write something to it again, it will become useless and
it won’t be served correctly by IntraWeb.
procedure TForm1.SaveImageToCache;
var ImgFileName: string;
ImgUrl: string;
begin
// Get a new file name from the cache system
ImgFileName := TIWAppCache.NewTempFileName();
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To nd out more, including how to control cookies, see here: Cookie Policy
// Save a file there, in this case an gif imag
Close and accept
// Add the saved file to the cache system. It
// Please note the type of cache file (ctSessi
https://doc.atozed.com/en/iw14/migratingto14/ 8/10
9/7/2020 Migrating to IntraWeb 14 – Atozed Documentation Center
Renamed Units
A few units were renamed. To update to IntraWeb XIV and XV
you should search the following units and replace with the
new name (GExperts may help you with that):
https://doc.atozed.com/en/iw14/migratingto14/ 9/10
9/7/2020 Migrating to IntraWeb 14 – Atozed Documentation Center
You should also add the same doc type to your template les,
when using templates.
Share this:
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To nd out more, including how to control cookies, see here: Cookie Policy
https://doc.atozed.com/en/iw14/migratingto14/ 10/10