View Full Version : How to display oracle message from json onto grid or form

20 Sep 2012, 7:14 AM
HI When I save or update, json gives us response text. But I want to display those message using message box

for eg :

{"success":"true","code":"0","message":"ORA-0000: normal, successful completion"}
code: "0"
message: "ORA-0000: normal, successful completion"
success: "true"

How to proceed for this. i am using extjs 4.0.7

Tim Toady
20 Sep 2012, 8:10 AM
So if you have a json string you would first Ext.decode it and put it in a variable. Then you can access its properties eg

var myObj = Ext.decode( responseText );
Ext.Msg.Alert( 'Hey this is a title', myObj.message );

20 Sep 2012, 8:29 AM
i am using extjs 4.0.7

It is highly recommended that you upgrade to 4.1.x is at all possible.


21 Sep 2012, 12:57 AM
Thx Scott. Sure I will upgrade, can you tell me in adv how do we do to use this feature ? Do we have any sample example ready for this.?

Thx in Adv.

21 Sep 2012, 12:58 AM
Thx Tim, I will try to use this.