Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread JSON creation
Fri, Jan 27 2017 12:27 PMPermanent Link

Matthew Jones

If you go to http://jsfiddle.net/gh/get/jquery/3.1.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/line-basic/ you can see a call to create a graph. The JSON there has things like the series which is an array of unnamed objects. How can I make an EWB object that will match that?

I can make this work in EWB as an item in a panel, using JSON.Parse to get the required object from this sample, but now I want to be able to configure it using normal EWB code.

--

Matthew Jones
Mon, Jan 30 2017 9:44 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< If you go to http://jsfiddle.net/gh/get/jquery/3.1.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/line-basic/ you can see a call to create a graph. The JSON there has things like the series which is an array of unnamed objects. How can I make an EWB object that will match that? >>

You can declare such an array like this:

array of Variant

However, be aware that EWB has no facilities for querying the type, etc. of the variant.  Variants were added to the compiler simply to facilitate some of the RTTI property manipulation that occurs during persistent object loading/saving at run-time.

Tim Young
Elevate Software
www.elevatesoft.com
Image