CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 This product is harder than it needs to be

Print topic Send  topic

Author Message
GRose

Posts: 5
Posted: 03/14/2005, 7:38 AM

The learning curve on this product is steep and the docmentation is so poor as to be allmost unusable.

Im trying what should be a simple operation yet it is turning into a complete project stopper. If there is a 'workflow' behind the forms built etc it should be clearly documented so a person can reference it .

Im simply trying to build a form where the user clicks on a link and either a or b happens when the user logs in.

a) if the sessionid("EmplDirGroupId") = 1 then

display form EmplDetails with users details for editing

In the before empDetails_beforeShow event disable the fields emp_login, emp_level,emp_picture by setting each fields readonly, disabled property to true. Yet every method of trying to reference these controls gives an "object does not support this properties error."

b) if the sessionid("EmplDirGroupId") = 2 then
display adminMenu Instead

however what should be simple once again appears to be hard because of a lack of clear documentation.

in the onclick event of do_login what should be a simple case of if the sessionid("EmplDirGroupId") = 1 then
redirect="Empdetails.Asp"
else
redirect="Empdetails.Asp"
end if

* allso clearing the return page field on the property tab

dosnt appear to function as it should.

I'm


View profile  Send private message
GRose

Posts: 5
Posted: 03/14/2005, 8:01 AM

My apologies for the typo in in part b) it should have read

in the onclick event of do_login what should be a simple case of if the sessionid("EmplDirGroupId") = 1 then
redirect="Empdetails.Asp"
else
redirect="AdminMenu.Asp"
end if

Finally in addition, regardless of what is said elewgere in the forums this product does need a debugger because the number of error 500's you get when trying work things out means you spend more time trying to work out the program flow of the model than you do your own code.

View profile  Send private message
smalloy

Posts: 107
Posted: 03/14/2005, 8:56 AM

I had the same need and used this to redirect based on user login:

Dim intGroup
intGroup = CCGetGroupID()
SELECT CASE intGroup
Case 2
redirect = "AdminMenu.asp"
Case 3
redirect = "Emp_Initial.asp"
Case 6 'Paterson
redirect = "/PatersonReport/PatersonReportForm.asp"
Case Else
redirect = "Emp_Initial.asp"
End Select

Login_DoLogin_OnClick = True
End If
End With
'End Login

You can easily use CCGetUserID() or Session("userID") instead of CCGetGroupID().

Also, the Debugging issue is not an issue with the application but rather with the language. There are several ways to debug with ASP, the easiest is to write a Response.Write (your variable or "anytext in quotes") This will show at the top of your page, if it doesn't you'll need a Resoponse.End to stop the rest of your code overwriting your Response.Write.

If your in a MS environment there are utilities for both Server and Client side debugging, here are some good articles to read:

http://www.microsoft.com/technet/prodtechnol/windows200.../tips/t100.mspx

http://msdn.microsoft.com/library/default.asp?url=/libr...sinasppages.asp

Good luck!
_________________
Anything can be done, just give me time and money.
View profile  Send private message
peterr


Posts: 5971
Posted: 03/14/2005, 10:59 AM

GRose,

I can add that a debugger is very far on the list of user requests/wishes that we are receiving. You can add your requests to the Wishes forum or to our support if you like your wish to be counted. If most of the other users agree then we'll look into that.
However, receiving errors 500 probably cannot be a sufficient reason for implementing a debugger since ASP already provides sufficient debugging information to resolve most such problems. If you're receiving errors 500 then possibly you should start with configuring your Web browser not to display those but to give you full debug information. See http://forums.codecharge.com/posts.php?post_id=51140
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.