Forum Discussion

tanveer2780's avatar
tanveer2780
New Contributor
14 years ago

Flex Barchart dataprovider properties issue

Hi,



I have this flex application which contains a bar chart (ColumnSeries "Bar"), in which i am trying to read certain values which corresponds to this chart.



Now here i reached till the dataprovider for this chart, but when i try to go to item(0) for this dataprovider i get certain properties whose names start with *%bids, *% avgconv etc etc.



Now when i try to run the below code, testcomplete does not allow me to do so, because the IDE consider *% as an special character and does not allow to run that line of code.



msgbox firefox.pageZapTraderAdvertisers.objectZaptrader.aptraderZaptrader0.mainbodyMainbody67.chart1.dividedboxHdividedbox967.bodypanelBodypanel1018.trendreportviewTrendReport.columnchartColumn.ColumnSeries("bar").FlexObject.dataProvider.item(0).*%bids



Same way there are few properties which start with character such as month, label and when use them, it properly return me value.



Can some one have any idea on this.



Thanking you in advance

Tanveer

2 Replies

  • Hi Tanveer,



    Try using the aqObject.GetPropertyValue method to get the property values whose names contain special characters:



    Set dataProvider = firefox.pageZapTraderAdvertisers.objectZaptrader.aptraderZaptrader0.mainbodyMainbody67.chart1.dividedboxHdividedbox967.bodypanelBodypanel1018.trendreportviewTrendReport.columnchartColumn.ColumnSeries("bar").FlexObject.dataProvider



    value = aqObject.GetPropertyValue(dataProvider.item(0), "*%bids")

    MsgBox value



    Does it work this way?
  • It worked like a charm, hats off to you.....



    Thanks a ton Helen.



    -Tanveer