CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Before Build Insert - Master-Detail example

Print topic Send  topic

Author Message
CalicoCat
Posted: 03/06/2005, 9:43 AM

Hello (again) Everyone,

I'm relatively new with CCS but have quite a bit of experience progamming with other software/languages. I've done all the tutorials and am now trying to recreate the examples. In the Master-Employee example, I am trying to assign the emp_id to the Editable Grid's emp_id field, using ASP. The following code does not work when used in the 'Before Build Insert' event, but it works fine when used in the 'Before Show Row' event.

Dim current_emp
current_emp = CInt(Request.QueryString("emp_id"))
projects_employees.emp_id.Value = current_emp

I've converted the Hidden Text Box back to a regular Text Box to see when the emp_id value appears, and it only does so when this is used with 'Before Show Row'. Otherwise, I get an error message.
What am I doing wrong?
Thank you for your help.
CalicoCat
Posted: 03/06/2005, 10:44 AM

I found the answer. The code should be;

Dim current_emp
current_emp = CInt(Request.QueryString("emp_id"))
projects_employees.datasource.emp_id.Value = current_emp

the 'datasource' was missing...

Cheers!

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.