gulam
Posts: 55
|
Posted: 12/17/2011, 1:19 AM |
|
Hi,
I have a grid which has a field s_params which getting its value from JSON formated text in the DB.
I want to pick up the "confirmed_date" from it and set this value to another field known as bank_date. I have the following in the before show event of this grid:
$obj = json_decode($jos_osemsc_order_jos_user1->s_params->GetText());
$s_params1 = $obj->{'confirmed_date'};
echo $s_params1;
$jos_osemsc_order_jos_user1->bank_date->SetText($s_params1);
I can even echo and am getting the correct date, however the last line just doesnt work. I have tried with the bank_date being both text and date and with SetValue and SetText, without any success.
Can someone please tell what could be wrong.
Gulam
|
|
|
gulam
Posts: 55
|
Posted: 12/17/2011, 1:32 AM |
|
I think I saw the problem, This is a Report and I mistakenly put this code in the before show event of the report. But there isnt a before show row event for reports. How can I solve this without having to create a grid.
Gulam
|
|
|
|