Ok, I followed your advice. I got rid of the "grade" variable and used <@CURROW> directly. I properly scoped all the variables. Again I have the same issue where characters are dropped seemingly at random. Some entire pages load correctly with no dropped characters, others drop one or two. These characters are NOT in the variables, mind you, they are static characters within the FOR loop. In other iterations of the loop (by far, most iterations) they come out fine. This includes iterations both before and after the ones where there are problems.

Sample of some output using the new, cleaner (thank you all) code:

----
<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade1Q3.001899" VALUE="">
</TD>

<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade2Q3.001899" VALUE="">
</TD>

<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade3Q3.001899" VALUE="">
</TD>

<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade4Q3.001899" VALUE="">
</TD>

<TD>
<INPUTTYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade5Q3.001899" VALUE="">
</TD>
----

Check the last INPUT tag - there is a space missing after INPUT, but it comes from the same FOR loop that the earlier instances came from. It's also static - not something within a variable.


The "cleaner" tags are below. They work in most of the iterations....
----
<@FOR START="1" STEP="1" STOP="20">
<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade<@CURROW>Q<@VAR NAME="quarter" SCOPE="user">.<@COLUMN 'layout_0.Record_Identifyer'>" VALUE="<@COLUMN 'layout_0.Grade<@CURROW>Q<@VAR NAME="quarter" SCOPE="user">'>">
</TD>
</@FOR>
-----


I still think this looks like a bug. Any thoughts on a work-around or something I'm still doing wrong that is causing this?

Thanks!!!!

Joe



Hi Joe,

Technically speaking, I can't see anything wrong with your code (given that
there is more than one way to metatags) - although I'm not sure if that
ending </@IF> tag belongs where it is or you're just not showing us all the
code.

I would suspect it's a bug, if it worked with T2K. But try the following to
help isolate it.

~ Properly scope all your <@VAR> tags.
~ Could probably try using the <@CURROW> directly.
~ Use the NAME= attribute with the <@COLUMN> tag.
~ try removing the surrounding HTML and see what you get in the View-source.

Let us know what you get. Cheers......

Scott Cadillac,
Witango.org - http://witango.org
403-281-6090 - [EMAIL PROTECTED]
--
Information for the Witango Developer Community
---------------------

XML-Extranet - http://xml-extra.net
403-281-6090 - [EMAIL PROTECTED]
--
Well-formed Development (for hire)
---------------------

----- Original Message -----
From: "Joe Terrasi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 12:07 PM
Subject: Witango-Talk: This has GOT to be a bug, right? Inconsistent
looping.


 OK, still trying to port over my t2k apps.... Thanks again to all who
 have helped so far.

 But I just found a major source of frustration.... In one of my more
 complex apps, I use a FOR loop to build part of a form as below:

 -----
 <@FOR START="1" STEP="1" STOP="20">

<@ASSIGN NAME="grade" VALUE="<@CURROW>" SCOPE="local">


<TD> <INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade<@VAR NAME="grade">Q<@VAR NAME="quarter">.<@COLUMN 'layout_0.Record_Identifyer'>" VALUE="<@COLUMN 'layout_0.Grade<@VAR NAME="grade">Q<@VAR NAME="quarter">'>"> </TD> </@IF>

 </@FOR>
 ------



OK, it mostly works. But in sporadic rows, I get missing characters. See
below:

------ <TD> <INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade1Q3.001812" VALUE=""> </TD>

 <TD>
 <INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade2Q3.001812" VALUE="">
 </TD>

 <TD>
 <INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grad3Q3.001812" VALUE="">
 </TD>
 ------

 Look at the last input statement. See where it says "grad3Q3...?" Now
 why in the world would it drop the "e" from the name (it should be
> grade3Q3....)

It doesn't do this with any consistency. This is a loop within another loop, and 90% of the iterations on the page come out correct. I can't find any rhyme or reason to connect the times that are a problem. It's not always the same character that's dropped, either. In one case, it was even a ">" which really fouled things up.

Please tell me I'm not just losing my mind. This is an app that worked in
t2k.

Thanks!


Joe

 PS - config: Mac OSX 10.2, WebSTAR...
 PPS - pretty sure I have the newest build of the plug-in now.
 > --
 > Joe Terrasi             [EMAIL PROTECTED]
 > St. Clement School      http://www.stclementschool.org
 > St. Clement Church      http://www.stclementchurch.org
773-348-8212 fax: 773-348-4712

 ________________________________________________________________________
 TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                 with unsubscribe witango-talk in the message body


________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body


--
Joe Terrasi             [EMAIL PROTECTED]
St. Clement School      http://www.stclementschool.org
St. Clement Church      http://www.stclementchurch.org
773-348-8212            fax: 773-348-4712

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
               with unsubscribe witango-talk in the message body

Reply via email to