CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Display Current User In Reg Form

Print topic Send  topic

Author Message
lneisius
Posted: 10/19/2002, 1:52 PM

I am new to code as well as CCS and cant find any information on how to use a single registration form to allow new users to register as well as allow currently logged in users to update info on the same form. I am currently trying this on the portal that comes with CCS which already has an UPDATE button on the registration form but it does not display when generated to the site.
Nicole
Posted: 10/21/2002, 5:05 AM

Hello,
have you tried RegForm example supplied with CCS?
lneisius
Posted: 10/22/2002, 4:58 PM

Yes I am talking about the sample portal that comes with CCS. It uses a seperate form for admin to make changes to the user but if I log in and hit the registration button it shows a blank form as if I am not registered and I would like it to show the info on the currently logged user. I have made no changes to any of the supplied forms as of this time but would also like for the login form to only display the logout link if sent to the login because of privlages so that I may incorporate a tracking (stats) system thats much more accurate.
Nicole
Posted: 10/24/2002, 7:11 AM

Hello,
1. add one more table parameter for the members form on the registration page. The parameter should be assigned to user_id field, but its source is session variable (PortalUserID).Concatenate the parameters with the OR condition.
2. you can hide the Login form if registered user access login page. Just form Visible to false in the form before show event
lneisius
Posted: 10/26/2002, 4:58 AM

Thanks Nicole:
But as I am new to this I will need a little more detailed explanation. I do not understand why there is an update button already in this form (created by YES Software?), but the code is not? CCS should create the code witout the need for me to add code when an update button is in the form. In CC2 the registration form works fine (as it should), when no user is logged in the form will allow a new user to register but when a user is logged in it will allow update of the information. It would appear that CCS is not as complete as it should be for the cost of the software!!
Nicole
Posted: 10/29/2002, 6:47 AM

Hello,
Current CCS version is totally complete and pretty stable. OF course it is more complex then CC so it takes more time to learn, but CCS worth it.
Well.. here is more details description:
1.
- open Registration page;
- select users form;
- switch to Properties window->data tab and click on dot […] icon right to the Data Source property;
- select the existing Where parameter string and open it for editing;
- rename parameter source to UserID and change parameter source type to Session.
- click OK to save changes while closing the dialogs.
If you want Update button to appear on the form you should add one from Toolbox window-> Forms tab. This example just was designed without Update button.

2. to hide login form create login form before show event using code like below:
if Session(UserID) = “” then
login_form_name.Visible = false
end if

Hope it helps
lneisius
Posted: 10/31/2002, 4:01 PM

Thanks Nicole this helped me create the form I wanted for user registration and works great but I still cant get the Login form to work the way I want. What I want is a button for Login and a button for Logout or the same button that changes for the required action. For a user who is not logged the button will display login, for the user who is logged and has administrative privlages only it would display logout.

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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