_Natasha, can you help me on this?
I have new problem on the datagrid column. I need to create a check box on the second column and there are compile error saying that Access of undefined property cboActivities. See attached files for codes. Column one works fine.
thank you in advance.
Wendy
when there are values in "association" then the error occurs when I selected a ID in ComboBox. If There are not value to show in the datagrid, then no errors.
<mx:ComboBox
id="cboActivities" prompt="Please select an activity ID" dataProvider="{activityXML}" labelField="@event_id" x="121" y="87">
</mx:ComboBox>
<mx:DataGrid x="10" y="318" id="dgAssociation" dataProvider="{cboActivities.selectedItem.association}" columnWidth="100" height="100" editable="false" width="272">
<mx:columns>
<mx:DataGridColumn headerText=" Association "
dataField="{'col1'+ cboActivities.selectedItem.@event_id}" id="dgcol1" />
<mx:DataGridColumn editable="false" headerText=" Attribute Gift " id="dgcol2" >
<mx:itemRenderer>
<mx:Component>
<checkBoxItemRenderer:CBItemRenderer dataField="{'col2' + outerDocument.cboActivities.selectedItem.@event_id}" />
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
below is the ItemRendere codes:
package
import flash.events.Event;
import flash.events.MouseEvent;
import mx.controls.CheckBox;
import mx.controls.DataGrid;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.controls.listClasses.ListBase;
import mx.events.FlexEvent;
public class CBItemRenderer extends CheckBox{
private var _dataField:String;
private var _enabledField:String;
public function CBItemRenderer(){
super();setStyle(
"textAlign","center");}
override public function set data(value:Object):void {
super.data = value;
if (value != null) {
if( _dataField == null ){
throw new Error("No data field");}
if(value.hasOwnProperty(_enabledField)){
this.enabled = data[_enabledField];}
override public function validateProperties():void{
super.validateProperties();selected = data[_dataField];
override protected function clickHandler(event:MouseEvent):void{
super.clickHandler(event);clickOpp();
public function set dataField(dataField:String):void{_dataField = dataField;
public function set enabledField(enabledField:String):void{_enabledField = enabledField;
private function clickOpp():void{
if(data.hasOwnProperty( _dataField ) && _dataField!=""){data[_dataField] = selected;
else if( !data.hasOwnProperty( _dataField ) && _dataField!="" ){
throw new Error("Data Field is not available in Data Object ");}
edu.yu.checkBoxItemrenderer{
Similar Messages
-
Good morning. I just purchased Imatch but cannot download my music from an iphone 5 to IMatch in Icloud. Can you help me with this?
Hi
Has iTunes completed its scan of your iTunes library on your computer Subscribing to iTunes from an iOS device.
Jim -
I am using Dreamweaver CS4 and can no longer connect to Device Central - Can you help me with this?
Device Central was discontinued April 23, 2012.
http://www.adobe.com/products/devicecentral.html
And replaced with Adobe Edge Inspect CC (for Cloud subscribers)
http://html.adobe.com/edge/inspect/
Nancy O. -
I run Windows 7 Home Premium on an HP Pavilion dv6. I cannot install iTunes or QuickTime. Can you help me with this?
Hello raadabdaun,
Thanks for the question, and welcome to Apple Support Communities.
I understand you are having issues installing iTunes for Windows. The following article provides the most relevant information and troubleshooting steps:
Trouble installing iTunes or QuickTime for Windows
http://support.apple.com/kb/HT1926
Thanks,
Matt M. -
What will i do..there is a message show, "your device in not more eligible to create a free i cloud acount"..and when i try a new one it ask an account number, but i dont have...can you help me with this issue..?
I try also my old icloud user but its not recognizing the accoun...What will i do..there is a message show, "your device in not more eligible to create a free i cloud acount"..and when i try a new one it ask an account number, but i dont have...can you help me with this issue..?
I try also my old icloud user but its not recognizing the accoun... -
I try to sync my nano and get: the ipod cant be synced because there is not enough free space to hold all of the items in the items library (need 100MB) - I have a new computer?? can you help me understand this message: what to do?
Hello pryan1012,
What this message means is that you have more music in your itunes library than there is free space in your ipod.
I had this same issue at one time. This is what helped me put my music on the ipod. I used manually manage.
Learn how to sync muisc here.
Hope this helps.
~Julian -
Hi there I've got an iPhone 5 starting to get electric shocks of fone when I leave it on charge! Can you help me in this matter! Fone is constantly over heating the shock I got off phone really hurt! So please can u get intouch on
<Edited By Host>This is a user forum and is not Apple. I would definitely recommend that you stop using your iPhone and take it to be checked.
-
I understand there is a way to use my Super Drive with my PC. However, it requires a System OS Disk. Which I never received. Can you help me with this?
Rick6812 wrote:
I'm using Windows 8.1.
I do not know what you mean by a Windows 8.1. Please clarify.
The Apple superdrive is designed to be used with the following Macs.
It will not work with any other Mac unless you perform this modification;
http://www.tuaw.com/2012/04/02/use-the-macbook-air-superdrive-with-any-almost-ma c/
Are you trying to get it to work with a PC?
Ciao. -
Since the iOS 7.0.2 update, my iPad retina display is now experiencing white blurred screen, can you help me from this?
Restore the device via iTunes on the computer.
-
hello i am trying to update my phone . i am connecting it to itunes but it is giving error 3194 . can you help me resolve this problem please.
Hi ali hakim,
Welcome to the Support Communities!
The article below may be able to help you with this issue.
Click on the link to see more details and screenshots.
iOS: Restore error 3194 or 'This device isn't eligible for the requested build'
http://support.apple.com/kb/TS4451
This occurs when iTunes is unable to communicate with the update-and-restore server (gs.apple.com). This is most likely because it is being blocked, redirected, or interrupted by security software, hosts-file entries, or other third-party software.
Cheers,
- Judy -
Question
I play Zuma Blitz on FB; Ever since I upgraded to Firefox 4 I can't play the game the darn frog pauses before shooting and it's a mess; you know it's what I enjoy doing and it needs to be fixed can you help me with this??? I am super frustrated ith the situationThanksUpgrading to firefox 5 and updating my plug-ins helped a bit. Frog is less 'sticky' now, but it's not solved the problem. Java needs to be up to speed or the frog goes into stasis....
-
my iphone 5 is not getting audio during calls, im not hearing anything unless i put it on speaker. Can you help me is this a software problem its very annoying for every call i dial or recieve i have to put on speaker. Please help me apple please.
There's a whole lot to read in your post, and frankly I have not read it all.
Having said that, this troubleshooting guide should help:
http://support.apple.com/kb/TS1538
In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it. -
We live in motel but my iMac is not connecting with the internet but my cousin has hp laptop that works perfectly fine in my room. So can you help me with this situation?
Joining an encrypted WEP or WPA Wi-Fi network
-
My Phone randomly sounds an alarm. It fails to show why the alarm has sounded. can you help please?
This happens to me as well, iPhone 4s purchased in December 2011.
An alarm will randomly sound, at least a few times a week... it's not every day, not at the same time or any consistent time (like always 1/4 past the hour or anything like that). I can't detect ANY pattern to it whatsoever. There are no alarms set anywhere... not in the clock, the calendar, or anywhere else. No notification is given, there is no indication on the phone at all that it happened, I just have to be sitting next to it to hear it.
The sound that is played is always the same - "Bell" from the Alert Tones list. This has driven me semi-crazy for months, does anyone have the faintest idea what would cause this? -
I lost my ipod nano,how can you help me on this?
i lost my ipod nano,how can you help me on this?
Unfortunately, there is no way to track or locate it. Report the missing item to your local authorities.
Reporting a lost or stolen Apple product
B-rock
Maybe you are looking for
-
i have just synced my iphone to my computer and all of my contacts went onto the computer and off my phone !! i have a mac .when i sync contacts i click on all contacts and only seven are going onto the phone !! can someone please give me an awnser
-
Error - GR reduction not possible
Hi, As per system standard behavior for GRIR account system is deriving Expense commitment item. Logic we use is GL = commitment item E.g. GRIR a/c 123 and expenses a/c 456 Entry is - GL Expense A/c 456 Dr Commitment item 456
-
I purchased an iTunes card and I used The code in it to increase My money in The App Store. Now I have enough money to buy iTunes Match with The remaining money. Can I do it?
-
How can we use Metadata Integrater
Hi, Using with meta data Integrater we can browse from any where what are the steps to using this meta data Integrater. is there any docs for that can u pls send.
-
How to import SSiS file to BPC 7.5
HI. I am new to the BPC world and am having trouble learning how to import a master data file from ECC to BPC 7.5. I also need to be able map the property names and add "CC_" to the beginning of each Cost Center. Help would be greatly appreciated.