Re Subject: question about PROCESS 4D TAGS 4d v13

2020-05-22 Thread ernie hilgers via 4D_Tech
Hi All, 

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

Koen Van Hooreweghe  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:
> 
> 
>   
>   
>   
> 
> 
> 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
> 
> bordercolor="#f0f0f0" width="100%">
>
>  Description
>  %
>  Hours
>  Income
>  Misc
>  Year Totals
>  
>
> 
> 
> 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: 
> 
> bordercolor="#f0f0f0" width="100%">
>
>
>   
>   
>
>
>   
>   
>
> 
> 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
**

Re: question about PROCESS 4D TAGS 4d v13

2020-05-21 Thread Koen Van Hooreweghe via 4D_Tech
Hi Ernie,

Is there a typo or are you using two arrays? aTxtHeaders1 and aTxtHeaders

If so, you should use the array variable which you use as loop counter as index 
for your arrays too.




HTH
Koen

> Op 22 mei 2020, om 00:47 heeft ernie hilgers via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
>   
>   




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Aalter
Belgium
tel +32 495 511.653

**
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
**

Re: question about PROCESS 4D TAGS 4d v13

2020-05-21 Thread Chuck Miller via 4D_Tech
Is check array

Sent from my iPhone

> On May 21, 2020, at 6:47 PM, ernie hilgers via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> Mac 10.13, 4D v13
> 
> 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 code:
> 
>  
>
>
>
> 
> 
> 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
> 
>  bordercolor="#f0f0f0" width="100%">
> 
>   Description
>   %
>   Hours
>   Income
>   Misc
>   Year Totals
>   
> 
>  
> 
> So I copy that exact -same- code over to another 4D project, using the -same- 
> array and same open file code.
> Then when I open this Rob_321.html  using BBEdit I see this: 
> 
>  bordercolor="#f0f0f0" width="100%">
> 
> 
>
>
> 
> 
>
>
> 
> 
> What am I missing ? or doing wrong ?   
> Both programs written by me are opened with the same version of 4D v13
> Also opened the test-code and the final-code simultaneous with 2 4D v13 
> programs and compared Preference settings. 
> 
> 
> ernie hilgers (aruba)
> 
> **
> 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
> **

**
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
**

question about PROCESS 4D TAGS 4d v13

2020-05-21 Thread ernie hilgers via 4D_Tech
Hi All,
Mac 10.13, 4D v13

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 code:

  





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

 
 
   Description
   %
   Hours
   Income
   Misc
   Year Totals
   
 
  

So I copy that exact -same- code over to another 4D project, using the -same- 
array and same open file code.
Then when I open this Rob_321.html  using BBEdit I see this: 

 
 
 


 
 


 

What am I missing ? or doing wrong ?   
Both programs written by me are opened with the same version of 4D v13
Also opened the test-code and the final-code simultaneous with 2 4D v13 
programs and compared Preference settings. 


ernie hilgers (aruba)

**
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
**