This topic is locked

Event code not working in 6.1

6/30/2009 2:25:43 PM
ASPRunnerPro General questions
T
Tim author

Hello,
I have the following code in the Edit Page: Before Process section:
dict("SendEmail") = "0"

dict("Body") = char(13) & "--------------------" & char(13) & dict("Body")
This works in version 6.0 but in 6.1 I get an IE error 500 when I attempt to edit a record. I tried changing the "dict"s to "values" but still get an error.
Thanks for your help.

Tim

Sergey Kornilov admin 6/30/2009

Tim,
code itself looks good.
I recommend to post your application to Demo Account (use 'Demo Account' button on the last screen in program). Then open a ticket at http://support.xlinesoft.com sending your Demo Account URL for investigation.

T
Tim author 6/30/2009

Sergey,
Here's a weird one: I tried to upload the app to the demo account but that caused ASPRunner to crash. I build my project, then on the last page I click Demo Account. The account settings window pops up with my credientials (I clicked the remind password button just to make sure i had it right... I do), then I click upload. It starts to go, saying something about building DB script, then the whole app just goes away. Nothing in the event log.
Not sure what to do next.
Also, when I click view account it brings me to a projects list page that shows that I am logged in at the top, then has the header info (records per page and such), then a line that reads:
SQL = select [ProjectID], [UserID], [AccountName], [ProjectName], [url], [Path], [CodeType], [DbType], [DBName], [Created] From [Projects] where [UserID]=@UserID
UserID(Int32)=3463
Then it says no records found.
Not sure if that last bit is usful or not... just more info.
Thanks,

Tim

J
Jane 7/1/2009

Tim,
please give me a detailed description of what you want to achieve and whole event code.

T
Tim author 7/2/2009

Hi Jane,
Thanks for the reply. Sorry for the delayed response but I wanted to test a few things and make sure I was giving you accurate info. Here's what I've found.
First, to answer your question, what I'm trying to do is make sure the SendMail checkbox is unchecked when someone edits a record, and to format the email text field (body). And that's all the code in the event.
I have tried doing each line individually, but it still fails. I then used another project and tried updating a field on the edit form in this same fashion... same error. Then I created a new project in ver 6.1 (the others were upgraded from projects created in 6.0 and I wanted to eliminate that as an issue) and tried the same edit form update... same error. Then, just for my sanity, I went back to this project in 6.0 and this code still works fine there.
I'm having another issue with 6.1 but I think I'll start another topic for that.
Thanks,

Tim

J
Jane 7/3/2009

Tim,
It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

T
Tim author 7/6/2009

Jane,
As per my previous post, I can't publish this to the demo account: it crashes ASP Runner.
I assume whatever is happening here is the same issue as my other current topic on the forum, but I thought I'd update this one too so you have all the info. I also assume that these error's have something to do with the fact that I'm using SQL 2005, but that's just a guess.
Based on your post on the other topic I turned on IE error reporting. This is the error I get when I attempt to edit a record:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'dict'
/HelpDesk/include/Ticket_events.asp, line 483
Again, I can't publish this to the demo account, but I could try to publish the 6.0 version of this project if that would help. (this event code works in version 6.0). Let me know if it would be helpful.
Thanks,

Tim

Sergey Kornilov admin 7/6/2009

Tim,
you can send us Ticket_events.asp file that gives you this error.