telmiger
Posts: 61
|
Posted: 03/15/2004, 10:56 AM |
|
I am trying to build an editable grid that include 2 listboxes with default values.
How can I modify the editable grid so that it will enter a new record only if there is more information entered besides the default values.
I tried to put the following code into the before show of the editable grid but it did not work.
global $project_times;
If ($project_times->hours->GetValue()== ""){
$project_times->Insert->False;
}
I am using php +mysql
|
|
|
lneisius
Posts: 29
|
Posted: 03/15/2004, 11:49 AM |
|
On the form fields that you would like used add the required parameter in the properties manager
|
|
|
telmiger
Posts: 61
|
Posted: 03/15/2004, 11:55 AM |
|
I just figured it out.
The following solution works if the default values get submitted by url.
Change the editable grid to custom insert type <table>
In the parameter screen change the field type properties to URL on the values you want the default values entered.
This worked for me
|
|
|