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

 Editable grid default value

Print topic Send  topic

Author Message
jhpccs

Posts: 25
Posted: 04/20/2006, 1:03 AM

I need to dynamically populate a field in an editable grid if a user is inserting a new row. The field is hidden.
I have tried every event, before row insert, on validate, before build etc the only one that works is using the hidden textbox before show event, but when the user submits the editable grid it creates new records for all empty rows.
View profile  Send private message
mrachow


Posts: 509
Posted: 04/20/2006, 11:50 PM

For a key field of every row (a field that should have a value for every record) I do the following in event Before Build Insert (ASP):
if LEN(form.keyfield.Value) < 1 then form.InsertAllowed = false


_________________
Best regards,
Michael
View profile  Send private message
jhpccs

Posts: 25
Posted: 04/21/2006, 12:29 AM

What I need to do is dynamically put a value in a hidden field, this is the users id.
My db table for example is:
Id(auto increament field)
userid( user who submitted the record) (hidden field I need to populate)
name
address
city
zip.

The use will see and populate the following:

name
address
city
zip.
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.