Hi All, 

I want to thank all who took their time to look into this and answer my 
question. gr8 !!

Koen Van Hooreweghe <bvbacomp...@telenet.be> remarked maybe there was a typo, 
and in the email which I shortened there was a typo,  (that number "1" should 
not have been there) 
but in the 4D method it was correct. 

What I did after getting different suggestions was simply take a backup of the 
project and 
apply / copy-paste the code again. From project1 to project2.   
Also copied the "monthly.html" again from Project1 to the correct folder in 
Project2. 

And Lo & behold, the code worked this time. 

I tried to figure out where the problem might have slipped in but could find no 
code differences 
between the new Project2 and the 'old' Project2. 
It was strange, the loop count was correct and in debug mode I could see the 
values.
But when Process 4D Tags would produce the name of the array and not the value 
in the array.

Since I have spend quite some time on finding the problem, actually the whole 
production day, 
lockdown or not, getting it to work was the moment to look no further and 
continue with the project. 

Once more, all who reacted, many thanks. 

ernie hilgers (aruba)

> Working with PROCESS 4D TAGS and testing it baffles me because, 
> I created a 'template' html document, that gets opened by 4D 
> which contains this html code:
> 
> <tr>
>   <!--4DLOOP aTxtHeaders-->
>   <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>   <!--4DENDLOOP-->
> </tr>
> 
> In a 4D method that runs this aTxtHeaders array is filled with 7 text strings.
> 
> The template get's opened:
> 
> $path_t:=Get 4D folder(Current Resources folder)+"monthly.html"
> DOCUMENT TO BLOB($path_t;$template_x)
> 
> PROCESS 4D TAGS($template_x;$processed_x)
> 
> $path_t:=Get 4D folder(Database Folder)+"attachmentz"+Folder 
> separator+"Rob_321.html"
> BLOB TO DOCUMENT($path_t;$processed_x)
> 
> standard code to be found in the manual.
> 
> When I open the Rob_321.html file with BBEditI see this result, which is 
> correct
> 
>        <table cellspacing="0" border="1" cellpadding="2"  
> bordercolor="#f0f0f0" width="100%">
>            <tr>
>             <th> Description</th>
>             <th> &#37;</th>
>             <th> Hours</th>
>             <th> Income</th>
>             <th> Misc</th>
>             <th> Year Totals</th>
>             <th> </th>
>            </tr>
>         </table>
> 
> So I copy that exact -same- code over to another 4D project, using the -same- 
> array and same open the file code.
> Then when I open this Rob_321.html  using BBEdit I see this: 
> 
>                <table cellspacing="0" border="1" cellpadding="5"  
> bordercolor="#f0f0f0" width="100%">
>            <tr>
>                <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>               <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>               <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>                <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>                <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>               <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>               <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>            </tr>
> 
> What am I missing ? or doing wrong ?  Why no values but 7x the array name ? 
**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to