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

 Hidden integer field will not accept default value

Print topic Send  topic

Author Message
pruiz

Posts: 29
Posted: 05/23/2005, 4:23 PM

I have created a record grid that will be used to add employees. There are two fields that are hidden in the grid - employee_type and dept_id. I am able to type in a default value "Temp" and set the required option to yes in Data Properties, and my database will record "Temp" when the employee is added. However, if I try to set a default value for the dept_id as 1, with the correct format, and required set to "yes", and press add, I get an error message stating that the dept_id is required. If I change required to "no", the field ends up being null in the database.

Am i not able to create a default value in Data Properties to fill in a hidden integer field within a Grid?
View profile  Send private message
Nicole

Posts: 586
Posted: 05/24/2005, 2:50 AM

Hello,
How exactly you set a default value, in Default Value property of a control? If you’re using Custom Insert make sure that dep_id field is included into insert sql statement.

_________________
Regards,
Nicole
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.