|
This is a new limitation in the newer versions
of the server. There are no options except to recode. The
situation is that Witango no longer allows the execution of more than 20
@includes in any one particular action. You have a few options. 1- do less than
20 loops. 2- create the
loop with actions, not in code (FOR action, rather than @FOR) so that you only
have one @INCLUDE per action. 3- use a TCF
call, which would offload the function. 4- use an
external or COM that can do the If_File_Exists check. I’ve found a good
COM is best for tasks like this, and typically faster. You could probably find
a free one, or perhaps the function exists in one that you have already, things
like this are common companion calls in more robust COMs. If you are wondering why, it has to do
with memory management and preventing crashes. I personally think 20 is a
little low, but since the @include uses an OS dependant
file handler, this limitation is set of the safe side. Robert -----Original Message----- Hi list !
|
|
Line |
|
|
0001 |
<@INCLUDE FILE="/LabIT_Web/modules/pdf/req_rid.pdf"> |
|
0002 |
<@ASSIGN NAME=request$Pdf
<@INCLUDE FILE="/LabIT_Web/modules/pdf/req_rid.pdf">> |
|
0164 |
|
I use <@include> inside
<@rows>……</@rows> to see if a file exists in a
specific directory, if it does I show a link for it.
I haven’t had any problems with this in earlier versions. I have look for
differences in witango.ini between the versions but cant find any differences.
Any ideas ?
/Best regards
Bengt Bredin
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
