John
Try inserting the following code just before you start looping or what ever you do to display your records. I am assuming you are displaying them in an html table and doing a (for end for) loop to fill the table with records/fields/variables.
import("a4d.web") dump form variables dump session dump locals exit
This will html output of the values of all form variables, session items, and local variables in the currently running script. Then it will stop the processing at the exit and send the resulting html to your browser. This should help on finding what variables are not getting set correctly and help you figure out why. You can move this code around to different places in your script and in effect be doing the equivalent of a trace command in 4D. You won't be able to step forward a line at time, but you can effectively do that by moving the code in the script, saving it and then reloading the page in your browser that calls the script.
I have used this numerous times to debug unexpected behavior. Be advised, that depending on where you insert this code, your resulting html output may not look very pretty or even formatted nicely, you may end up with a very wide page depending on the html code above this code. Either way you will be able to see the values.
I actually run this code, minus the exit command, at the end of every script/page I develop. I actually have it in a separate file, called debug.a4d and use an include to incorporate it on every page right at the very end before the </html> tag. I then edit the debug.a4d file and comment out all the lines when I go live with the webpage so that it does not show up then. It is an invaluable tool and works even when running compiled.
Gary
On Mar 19, 2004, at 9:00 AM, [EMAIL PROTECTED] wrote:
A blank table with no data in it is displayed. The data is there because
you can access it from a client but not from a web browser.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aparajita Fishman Sent: 19 March 2004 16:25 To: Active4D Developer Discussion List Subject: Re: [Active4d-dev] Active 4D mac trouble
I integrated active4D on a database using 4D server 2003 on the pc but when I converted the database to work on a mac and change active4D to the appropriate mac version no records were displayed via the web client, even though the database was the same, please could you help with any suggestions.
------------------------------------------------------------------------ Gary Pedretty [EMAIL PROTECTED] Systems Manager www.frontierflying.com Frontier Flying Service, Inc. /\ 907-450-7251 5245 Airport Industrial Road / \/\ 907-450-7238 fax Fairbanks, Alaska 99709 /\ / \ \ Second greatest commandment Serving Alaska's Interior / \/ /\ \ \/\ "Love your neighbor as Temperature around +20 Warming up a bit yourself" Matt 22:39 ------------------------------------------------------------------------