Select to view content in your preferred language

Problem converting 1.3 widget to 2.2

1072
5
06-10-2011 04:54 AM
AdamMills
Deactivated User
I have a widget I'm converting over to 2.2 and I'm stuck on this issue.  I have a webservice returning data to this widget.  This code worked fine in 1.3, but now I'm getting "term is undefined and contains no properties" error on the line with the ssLabel string variable below:

//set labels equal to sql return rows
ssLabel = ObjectUtil.toString(e.result.Tables.Location1.Rows.list.source[0].ss);


If it helps, here's what e.result.Tables.Location1 returns:
Location1
(Object)#0
  Columns = (mx.collections::ArrayCollection)#1
    filterFunction = (null)
    length = 11
    list = (mx.collections::ArrayList)#2
      length = 11
      source = (Array)#3
        [0] "opco"
        [1] "discharge"
        [2] "line"
        [3] "vsmm"
        [4] "sv"
        [5] "sstype"
        [6] "ss"
        [7] "station"
        [8] "offdist"
        [9] "offang"
        [10] "offdir"
      uid = "359B3571-8600-D93D-61FF-7A3A300D640C"
    sort = (null)
    source = (Array)#3
  Rows = (mx.collections::ArrayCollection)#4
    filterFunction = (null)
    length = 0
    list = (mx.collections::ArrayList)#5
      length = 0
      source = (Array)#6
      uid = "1A1A451D-77C3-E5C4-D98E-7A3A300D245D"
    sort = (null)
    source = (Array)#6

Does anyone know why I'm getting this error?

thank you,
-Adam
Tags (2)
0 Kudos
5 Replies
AdamMills
Deactivated User
it's strange.  Flex 3 returns the row data, but Flex 4 does not.   Just the columns.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Adam,

   What is the resultFormat that you are requesting from the Flex WebService object?
0 Kudos
AdamMills
Deactivated User
Robert, I didn't set it.  Should it be set to:  resultFormat="e4x"?
0 Kudos
AdamMills
Deactivated User
TGIF.  My old Flex 3 was WGS84 and the new one is web mercator.  I'm passing points to the web service and, of course, it won't return any data since the coordinates are off.  Duh.

thanks,
-Adam
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Adam,

  Glad you figured it out.
0 Kudos