This topic is locked

Default Values on edit page

5/29/2007 5:25:24 PM
PHPRunner General questions
D
darkmage0 author

Thx guys to every one that is working on this program it kicks ass. So my problem is I made a time card app with this program almost every thing is working great. The only thing that I can not get to work is the default value on my edit page. So on my add page I have a start up time and a shut down time that get saved to a table called timecard both with a look up wizard to a table called time inter,time inter is a table with 24 hours worth of time broken down into 15 min intervals. Well the look up wizard on the add page works great but on the edit page I need to be able too see the record in the database and the lookup wizard. so if a user enters 14:30:00 for startup on the add page it will show up on the edit page as 14:30 on the startup plus a lookup wizard that points too the table time inter, my user are upset because if they want to edit one of there times the have to edit both the start up and the shut down time instead of just one.
Thx again guys, Travis

J
Jane 5/30/2007

Travis,
it's hard to understand you without seeing actual data.

Please publish your project on Demo Account and post a URL to your pages here or send it to [email=support@xlinesoft.com]support@xlinesoft.com[/email].

I'll find what's wrong with your project inspecting it at Demo account site.

S
seldon 5/30/2007

I dont know if the problem is the same.

I have a default value in a lookup in add that work fine

When i edit the record and the values is the same of default dont' appeare .....

Sergey Kornilov admin 5/30/2007

Default values designed to work on Add page only.
If you need to do something similar on the Edit page you can use Events like BeforeEdit and AfterEdit.

D
darkmage0 author 5/30/2007


Ok so right now when a user goes to edit one of there times, instead of the record in the database it show (please select). Every other lookup wizard I'm using works fine so i think it has some thing to do with the fact the the records are in TIME format. So to recap for the time fields on the edit page I need it to show the record that is actually in the database, not please select. this only happens when im using lookup wizard with data im the TIME FORMAT.


ok the lookup wizard for employee id works great its showing me the record in the database that need to be edited, not please select.

J
Jane 5/31/2007

Travis,
I wasn't able to reproduce your error.

Please publish your project on Demo Account and post a URL to your pages here or send it to [email=support@xlinesoft.com]support@xlinesoft.com[/email].

I'll find what's wrong with your project inspecting it at Demo account site.