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.
|
 |
 |
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 |
 |
 |
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.
|
 |
 |
|