Adobe Dreamweaver Forums



Last 10 THreads :         Help with Dreamweaver CS4 (Last Post : admin - Replies : 1 - Views : 29 )           »          CreateODBCDate and cfqueryparam with cf_sql_date (Last Post : hannibalcanibal - Replies : 0 - Views : 1 )           »          Load bmp images in a flex app (Last Post : eholz1 - Replies : 0 - Views : 1 )           »          Problem with "Title" and DW CS4 (Last Post : Murray *ACE* - Replies : 1 - Views : 2 )           »          Snippet Pod Problems (Last Post : Pat@ffic - Replies : 2 - Views : 3 )           »          DDX generated PDF Table of Contents issue (Last Post : Flashm@n - Replies : 0 - Views : 1 )           »          Array of Queries (Last Post : ptrott - Replies : 3 - Views : 4 )           »          image alignment (Last Post : alexander glomba - Replies : 0 - Views : 1 )           »          Importing Iweb to Dreamweaver (Last Post : tllearner - Replies : 2 - Views : 3 )           »          How to I get an FLV Skin to display on external sites? (Last Post : QADesign - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-04-2008, 09:00 AM
vaibhav.chauhan
 
Posts: n/a
Diggs:
Default How to access custom object as property in yField

Hi All,
I have a stacked column chart. The data provider (dp) has an array of object
DataObject which has array of custom objects of class ClientRev:
public function ClientRev(name: String, rev : Number)
{
cName = name;
cRev = rev;
}

// data provider
public class DataObject
{
public var clientRev : Array;
}

Now I have to use cRev property of clientRev elements of DataObject
(DataObjects makes data provider) in yField of ColumnSeries.

if i write,
yField="{clientRev[0].cRev}",

It doesn't work. Please lemme know how can I achieve my goal.

Thanks for help.





Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-04-2008, 09:00 AM
vaibhav.chauhan
 
Posts: n/a
Diggs:
Default Re: How to access custom object as property in yField

Hi,
Actually I found dataFunction in ColumnSeries which can be used for the same purpose. :smile;
Reply With Quote
  #3 (permalink)  
Old 11-04-2008, 09:00 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: How to access custom object as property in yField


"vaibhav.chauhan" <webforumsuser@macromedia.com> wrote in message
news:gdmhok$2eq$1@forums.macromedia.com...
> Hi All,
> I have a stacked column chart. The data provider (dp) has an array of
> object
> DataObject which has array of custom objects of class ClientRev:
> public function ClientRev(name: String, rev : Number)
> {
> cName = name;
> cRev = rev;
> }
>
> // data provider
> public class DataObject
> {
> public var clientRev : Array;
> }
>
> Now I have to use cRev property of clientRev elements of DataObject
> (DataObjects makes data provider) in yField of ColumnSeries.
>
> if i write,
> yField="{clientRev[0].cRev}",
>
> It doesn't work. Please lemme know how can I achieve my goal.


Use a dataFunction


Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:09 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk