CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 [RESOLVED] Newbie with General Inquiry.

Print topic Send  topic

Author Message
pcdoctor

Posts: 15
Posted: 08/17/2008, 9:51 AM

Very new at codecharge and I've only been using the eval for 14 days. I will most likely go ahead and get the real macoy soon if I can get past a few things.

Anyway, these may be dumb type things, but here goes.

Questions

1) How would I do this? I would like to be able to redirect a user to a "specific" page when they log in based on (say) their account number. For example, when bob logs in (no offense bob), his account number may be say 1000. I'd like to send him to a page with only his account details listed. No drop downs, nothing to enter, simply view the details.

2) How to do I add some of my own content to a codecharge project? For example, images and a few ASP snippets that I've used in other sites that I'd like to use here.

Observation

Once in a while (not all the time), when i run a builder (doesn't matter which one), I get an error (something like "hmt... is busy with another request..."). I have to cancel the operation.

This occurs when I try to select a second table to use in a builder - I can select the first table (columns etc). Not a biggy; cause I just shut her down and restart, then all is well. Also, the other way I get around it is to create a new connection (or use a different one).

If I run a builder right from the startup screen, this does not happen.

This may be a limitation of the evaluation version, OR it may be something on my system, so I'm not too concerned.

I have reviewed all the help file info (that comes with), the tutorials and downloaded all the PDF docs. So, I've tried to exercise diligence before posting.

Anyway, and insight would be appreciated.

Thanks.
View profile  Send private message
marcwolf


Posts: 361
Posted: 08/17/2008, 8:02 PM

Hi There

This is where you can add events etc againt the base project to do additional functionality.

For example - when you are very familiar with codecharge you can modify the login page.

If you are no so familiar you can create a page that the Login screen automatically goes to and do the redirect from there.

From what you are describing - if you are just looking for specific information on 'Bob' - you can use his Userid (generally stored in a session after the login) and use that to display all records for Bob.. Or Sam etc.

Not sure about your other problem thou.

Take care
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
datadoit
Posted: 08/18/2008, 6:48 AM

#1 is easy. Do a simple login page, then go and look at the code it
creates. You can then expand on that code by adding in your own conditions:

if (this user) {
$Redirect = thispage.php;
}

#2 is also not a problem. CodeCharge is an event-driven and object
oriented IDE, meaning that you have control over what happens when and
where in your applications.

Your builder delay problem sounds like a database connection problem.
If I were to guess you're trying to connect to a 'remote' database (?).
Look at using development platforms on your Winderz machine such as
XAMMP or WAMP, and learn how to manipulate your local 'hosts' file.
Don't know what you know, and can expand on this later if need be.

Also, check to see if you have Auto Complete on. Think it's under Tools
-> Options. It's a good idea in concept, but for whatever reason slower
than molasses in wintertime.
pcdoctor

Posts: 15
Posted: 08/25/2008, 11:29 AM

Thanks everyone, the pointers are helping. datadoit, the problem was with SQL2000. Don't know why, but I understand from MS NGs that it is a multithread connection pooling issue???

Anyway, I upgraded to SQL 2008 and all is well. All the builders work and life is great.

My other question was, How can I add my own content to a CCS4 project. For example, I have some ASP code that grabs the user IP and does RDNS for domain information and a utility that encrypts/decrypts the data (client side) before being sent and after reception to/from the server.

I'd like to be able to add these (and of course images etc) to my porject.

I've clicked on about every tab and menu option, but can't seem to find anything.

Any additional help is muchly appreciated, and again thanks to all.

Cheers
:-)
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/25/2008, 5:22 PM

Adding stuff to the project (explorer):
In the Project Explorer you can create the directories,
but the data you move outside of CCS, through f.i Windows Explorer or more comprehensive tools like Win/TotalCommander and the likes.
So Images: create directory in Project Explorer, or, move to your project direcotry using above tooling and create directories and copy files.

If your Q is about code snippets to be included /used, (PhP style, I would) create an include directory or a functions direcotory, copy the snippets (functions) in there.
Then, still PhP style, include any of those at the Page After Initialize.
Or, !ddangerous!, include them at bottom of common file (common.asp)

!! These directions work, but may be different for ASP.

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
pcdoctor

Posts: 15
Posted: 08/26/2008, 7:28 AM

Thanks wkempees, I should have actually posted my result. I figured it out (quite by accident) by inadvertantly creating a directory in Explorer. When I then ran CCS4, low and behold there was the directory.

So all is well.

Thanks for the info.

Cheers.

BTW: Using ASP, but the results are the same ;-)
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/26/2008, 2:33 PM

Then change title to '[Resolved] Newbie with General Inquiry'
Thanks,
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
pcdoctor

Posts: 15
Posted: 08/29/2008, 8:16 AM

Quote wkempees:
Then change title to '[Resolved] Newbie with General Inquiry'
Thanks,
Walter

Hey Walter, when I posted the last comment, I looked at how to Change it to [RESOLVED] and didn't see anything obvious.

Having said that, looking at my Original Post I saw how to do this - DOH!!!

My appologies and cheers.
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/29/2008, 2:33 PM

Cheers taken, apology not accepted 'cause not needed :-)
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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