ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  addextrafield2
Posted by TomW on Feb-01-2014 05:19
Hi, Peter.  I am using PHP.  I have 4 arrays of data going into two separate layers in a spline chart.  The numeric values come through fine, however, I have two arrays that are coming through with either a 0 or a 1.  The one coming through as a 1 is an array filled with dates, such as 01/03/2014.  The other array, coming through with a 0 is filled with the corresponding day of the week, such as Friday.  I have confirmed the arrays do in fact have the data in them (using print_r) and that all of the arrays in each of the two layers have the same number of values.  Any thoughts on this?  Thanks for any help you can provide.

Tom

  Re: addextrafield2
Posted by Peter Kwan on Feb-03-2014 23:39
Hi TomW,

Do you mean you have an array filled with something like "01/03/2014", but when used with
addExtraField2, the field is displayed as 1?

The "01/03/2014" or "Friday" is not a date as according to PHP syntax (just like the word
"one" is not a number according to PHP syntax). In PHP syntax, "01/03/2014" and "Friday"
are just text strings, just like "one" is a text string. So the correct API to use is
"addExtraField", which accepts text strings, not "addExtraField2".

Hope this can help.

Regards
Peter Kwan

  Re: addextrafield2
Posted by TomW on Feb-03-2014 23:45
That was it...needed to use addextrafield, not addextrafield2.  Such a silly mistake.  Sorry.

Thanks, Peter!!

Tom