CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Help with JSON

Print topic Send  topic

Author Message
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

View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.