Karim
|
| Posted: 05/21/2003, 9:57 AM |
|
It there a way to highlight in a different color on the grid which record is being edited.
Thanks,
Karim
|
|
|
 |
Karim
|
| Posted: 05/21/2003, 11:19 AM |
|
Is the only way to make each record on the grid have it's own unique ID for each record. For example:
<tr class="row1" >
<td></td>
</tr class="row1">
<tr class="row2" >
<td></td>
</tr class="row2">
If you edit row1 the color changes?
If so, how would I accomplish this?
Thanks,
Karim
|
|
|
 |
Karim
|
| Posted: 05/21/2003, 4:37 PM |
|
Anyone?
|
|
|
 |
BB
|
| Posted: 05/24/2003, 11:03 AM |
|
The following code works - but searches are case specific. Can anybody tell me how to change it so that it is case-insensitive?
Form BeforeShow event for column displaying search results
global $form_name;
if (CCGetParam("s_keyword") != "" )
{
$string_to_split = CCGetParam("s_keyword");
$tok = split(" ", $string_to_split);
$size = sizeof($tok);
for ($i = 0; $i < $size; $i++)
$form_name->field_name_in_which_results_are_to_be_displayed->SetValue(str_replace($tok[$i], "<font color = red>". $tok[$i] ."</font>", $form_name->field_name_in_which_results_are_to_be_displayed->GetValue() ));
}
BeforeBuildSelect grid event
global $form_name;
if (CCGetParam("s_keyword") != "")
{
$string_to_split = CCGetParam("s_keyword");
$tok = split(" ", $string_to_split);
$size = sizeof($tok);
for ($i = 0; $i< $size; $i++)
{
if (($i == 0) && ($i == $size-1))
$form_name->field_name_in_which_results_are_to_be_displayed->Where .= " and i.field_name_in_which_results_are_to_be_displayed like '%".$tok[$i]."%'";
elseif ($i == 0)
$form_name->field_name_in_which_results_are_to_be_displayed->Where .= " and (i.field_name_in_which_results_are_to_be_displayed like '%".$tok[$i]."%'";
elseif ($i == $size-1)
$form_name->field_name_in_which_results_are_to_be_displayed->Where .= " or i.field_name_in_which_results_are_to_be_displayed like '%".$tok[$i]."%')";
else
$form_name->field_name_in_which_results_are_to_be_displayed->Where .= " or i.field_name_in_which_results_are_to_be_displayed like '%".$tok[$i]."%'";
}
}
|
|
|
 |
glerma
|
| Posted: 06/02/2003, 9:07 AM |
|
First off, which version of Codecharge are you using?
Second, please better explaination of what your trying to do.
|
|
|
 |
glerma
|
| Posted: 06/02/2003, 9:10 AM |
|
Also need the programming language you are using.
|
|
|
 |
|