CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Editable Grid - Won't update values for hidden txtbxes

Print topic Send  topic

Author Message
brandy4678

Posts: 7
Posted: 09/27/2010, 12:45 PM

I'm working in ASP, with Codecharge 4.2.00.040

I used the Example Pack Code (EditableGridAddButton), which i have working fine.
But, i have 4 textboxes that are hidden that i need to add a value for after a listbox value changes. If I display the textboxes on the screen, I have been able to make them fill, but if i leave them hidden, no matter where i put code, they will not fill, it leaves a null value in the db.

Currently I have this code in BeforeExecuteUpdate and BeforeExecuteInsert

If Departments.DayofWeek.value = "" then
departments.Employee.value = ""
departments.EmployeeNo.value = ""
departments.WeekEndDate.value = ""
departments.HomeBusUnit.value = ""
else
departments.Employee.value = CCDLookup("EmpName", "Employees", "id=" & Session("UserId"), DBTimeSheets)
departments.EmployeeNo.value = CCDLookup("EmpNo", "Employees", "id=" & Session("UserId"), DBTimeSheets)
departments.WeekEndDate.value = Request.QueryString("PayRollEndDate")
departments.HomeBusUnit.value = CCDLookup("EmpHBU", "Employees", "id=" & Session("UserId"), DBTimeSheets)
end if

Thanks for any help.
Brandy
_________________
Brandy
_________________
Brandy
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.

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.