mcapelati
Posts: 17
|
| Posted: 04/17/2011, 2:41 PM |
|
Quote Oper:
Not sure about PHP
but in ASP is just one line
in before show Event or Before show row, etc
Newvalue=-Sender.value
In BeforeShow event, I could set a new value to this field. I use:
$cc_vnd_Grid->dt_baixa_geral->SetValue( "TESTANDO" );
and it works
BUT, when I try TO GET its value (in AfterSubmit), it still does not work.
I try all those following codes without sucess:
$dt_baixa_total = $cc_vnd_Grid->dt_baixa_geral->GetValue();
$dt_baixa_total = $cc_vnd_Grid->dt_baixa_geral->Value;
$dt_baixa_total = $cc_vnd_Grid->dt_baixa_geral->GetText();
The following 2 codes I tried to use its value on ID attribute, and it gives the PHP errors:
Notice: Undefined variable: cc_vndteste (...)
and
Notice: Trying to get property of non-object in (...)
$dt_baixa_total = $cc_vnd_Grid->cc_vnd_Griddt_baixa_geral->Value;
global $cc_vnd_Griddt_baixa_geral;
$dt_baixa_total = $cc_vnd_Griddt_baixa_geral;
_________________
=Marcello Capelati= |
 |
 |
mcapelati
Posts: 17
|
| Posted: 04/18/2011, 10:39 AM |
|
Quote Oper:
Not sure about PHP
but in ASP is just one line
in before show Event or Before show row, etc
Newvalue=-Sender.value
Hello,
sorry folks...I still can't get the variable value...
Just remembering:
= I have an Editable Grid, called "cc_vnd_Grid"
= It has an additional field, OUTSIDE the rows, called "dt_baixa_geral", which user will fill some value, and inside the AfterSubmit event, the code has to get its value
What I have try without success:
$dt_baixa_total = $cc_vnd_Grid->dt_baixa_geral->GetValue();
$dt_baixa_total = $cc_vnd_Grid->dt_baixa_geral->Value;
$dt_baixa_total = $cc_vnd_Grid->dt_baixa_geral->GetText();
And this following 2, I am trying to use its ID value:
global $cc_vnd_Griddt_baixa_geral;
$dt_baixa_total = $cc_vnd_Grid->cc_vnd_Griddt_baixa_geral->Value;
But it gives me the error:
Notice: Undefined property: clsEditableGridcc_vnd_Grid::$cc_vnd_Griddt_baixa_geral in W:\qualicell\Admin\cc_vnd_baixa_events.php on line 349
Notice: Trying to get property of non-object in W:\qualicell\Admin\cc_vnd_baixa_events.php on line 349
AND
$dt_baixa_total = $cc_vnd_Griddt_baixa_geral;
that gives me the error:
Notice: Undefined variable: cc_vnd_Griddt_baixa_geral in W:\qualicell\Admin\cc_vnd_baixa_events.php on line 351
AND
$dt_baixa_total = $cc_vnd_Griddt_baixa_geral->Value;
that gives me the error:
Notice: Undefined variable: cc_vnd_Griddt_baixa_geral in W:\qualicell\Admin\cc_vnd_baixa_events.php on line 353
Notice: Trying to get property of non-object in W:\qualicell\Admin\cc_vnd_baixa_events.php on line 353
DATA:
_________________
=Marcello Capelati= |
 |
 |
mcapelati
Posts: 17
|
| Posted: 04/21/2011, 4:23 AM |
|
Hello,
I still could not ffix this problem...
Could anybody help me, please ?
Thanks!
_________________
=Marcello Capelati= |
 |
 |
rho
Posts: 85
|
| Posted: 04/21/2011, 7:01 AM |
|
Hi, as far as I know, fields outside the 'row' are not posted by CCS, so the value for your field will not be available for processing.
Rob.
|
 |
 |
|