Issue of SharedCollection.AddItem

I've been pulling teeth on this issue. An error is thrown whenever I try to make a '_topSpeed. AddItem"call (or SharedCollection.AddItem each time that the ConnectSessionContainer) triggers the event"synchronizationChange ". The only time "_topSpeed. AddItem"works is after the program loads and then I use a click event to then trigger '_topSpeed '. AddItem"(code not shown).

I get the error message: ' * err.errorID:1009 * err.» «Message: error #1009 * err.name:TypeError * err.getStackTrace:null»


private void sendMessage(p_evt:SessionEvent):void
{
If (p_evt.type == SessionEvent.ERROR) {}
notificationMessage.text = "Error:"+ p_evt.error; "
return;
}

If (p_evt.type == SessionEvent.SYNCHRONIZATION_CHANGE) {}
If {(cSession.isSynchronized)
Alert.Show ("Connected");
try {}
If {(_model.connectSession.isSynchronized)
_model. AddItem({FirstName:"John12",LastName:"Austin12"});) }
else {}
Alert.Show ("synchronization model");
}
} catch (err: error) {}
Alert.Show ("* err.errorID:" + err.errorID + "* err.") Message: "+ Err.message +" * Err.Name: "+ Err.Name + ' * err.getStackTrace:"+err.getStackTrace()); ' "
}
}
}
}

sendMessage is called via the synchronizationChange eventr below:
< rtc:ConnectSessionContainer roomURL = "myroomURL".
ID = authenticator "cSession" = "{auth}" height = "187" width = "628" y = "106" x = '7' synchronizationChange = "sendMessage (event)" >... "

Yes, it worked! Awesome.

In addition, Adobe 10 solves my problem of Flex debugger...

Tags: Adobe LiveCycle

Similar Questions

  • Add custom SharedCollection object

    Hello

    in my code, I have a SharedCollection called "playerDataCollection". I want to add a custom object called PlayerData which I use for storing drive-info like color, name, maps, etc... for her, something like that.

    playerDataCollection.addItem({userId:connectSession.userManager.myUserID, playerData:playerData});
    
    

    If I now see in the ChangeHandler for the playersDataCollection, I see that its update, but the playerData is added as an ordinary object, making me lose all the data that I could access otherwise with the set defined in the custom object accessors.

    The only solution is to move all the separate components of the playerData object separately, something like

    playerDataCollection.addItem({userId:connectSession.userManager.myUserID, playerName:playerData.name, playerColor:playerData.color, ...});

    and rebuild locally in the ChangeHandler who would like this:

    private function onPlayerDataCollectionChange(event:CollectionEvent):void{
         playerData = new PlayerData(playerDataCollection[0].playerName, playerDataCollection[0].playerColor);     
    } 
    

    Is it perhaps a simpler solution?

    Kind regards

    Hans

    Hello Hans,.

    All you have to do is register your PlayerData object that is customized by using MessageItem.registerBodyClass (PlayerData). Make sure that the manufacturer of the PlayerData accept null as default values for constructor parameters.

    For more information, please refer to CompleObjectTransfer example in the SDK sampleApps.

    Thank you

    Arun

  • SE error wheyn trying to use SharedCollection

    Hello everyone, I am really new to FAC and I have a question for ya' all.

    I get this error when you try to transfer data to a SharedCollection:

    Error: Each element in a sharedCollection requires a unique ID. Please have your implementation of mx.core.IUID items, or indicate "sharedCollection.idField" so that the collection knows what your question field is unique.

    I'm not sure what the problem is, how di I add an id field? Here's my test code

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:rtc="AfcsNameSpace">
         <mx:Script>
              <![CDATA[
                   import mx.events.CollectionEvent;
                   import com.adobe.rtc.events.SessionEvent;
                   import com.adobe.rtc.events.SharedPropertyEvent;
                   import com.adobe.rtc.sharedModel.SharedProperty;
                   import com.adobe.rtc.sharedModel.SharedCollection;
                   
                   private var sc:SharedCollection;
                   
                   private function init():void
                   {
                        sc = new SharedCollection();
                        sc.sharedID = '_testOne';
                        
                        sc.connectSession = this.connectSession;
                        sc.addEventListener(CollectionEvent.COLLECTION_CHANGE, this.rtnSession);
                        sc.subscribe();
                   }
    
                   private function rtnSession(evt:SharedPropertyEvent):void
                   {
                        
                   }
                   private function onSessionSync(event:SessionEvent):void{
                        if(connectSession.isSynchronized){
                             this.init();
                        }
                   }
                   private function SendData():void
                   {
                        var obj:Object = new Object();
                        obj.fname = 'tim';
                        obj.lname = 'gallagher';
                        
                        this.sc.addItem(obj);
                   }
                   
              ]]>
         </mx:Script>
    
         <rtc:LocalAuthenticator id="auth" userName="AnyArbitraryUsername"  />
         <rtc:ConnectSessionContainer id="connectSession" authenticator="{auth}" synchronizationChange="onSessionSync(event)" />
         <mx:Button label="Press ME" click="SendData();"/>
    </mx:Application>
    

    Can someone tell me what I am doing wrong?

    Thanks for the help,

    timgerr

    IdField close - must be a string, then try this:

    one must be called once, after creating sc - note that this is a string

    sc.idField = "tmpID";

    private function SendData (): void

    {

    var obj:Object = new Object();

    obj.fname = "MeName."

    obj. Lname = "MeLastName";

    obj.tmpID = UIDUtil.createUID ();

    this.sc.addItem (obj);

    }

    hope that helps

    Nigel

  • Appeal iPhone issues 7 more

    I recently bought the new iPhone 7 more.  Not only am I having problems with the LTE service, bounce back between 3 G and no service I am now having problems with call connectivity.  When you try to make an outgoing call, I get an automatic response from my carrier (Verizon) "it's Verizon, we are unable to complete your call at this time, please turn off your phone and back and try again."

    It is a known issue with the iPhone 7 and Verizon. Supposed to be Apple and Verizon are seeking him. It has been a problem since the phone was released. Do a Google search or search here on the forums for a temporary solution but not a cure.  But basically to stop the LTE oice and data into data only in the settings.

  • iPhone 6 more hang freeze issues

    My iPhone 6 more guard suspended (gel) for the past 6 months, I have to reset the whole phone sometimes up to 2 times just to get it to work again. Been a loyal (including my entire family) custome since gen 1 iPhone, iPad, mac book. Am really disappointed with the quality now. Did not bring to the service center since the first day of the problem because I thought that was just a few bugs & was sure that apple will fix it, but after many update of iOS so far, the pesisit still problem.

    iPhone is more quality I've known, hope apple can fix this problem before finally losing the most loyal customers

    Hello BennyFoo,

    Thank you for bringing your iPhone freeze questions here for Apple Support communities. I understand how it is important to have a reliable phone. I'm happy to check this with you.

    The first thing we want to make sure that all of your data on your device is safe. You can perform a backup in iCloud or iTunes using this article: backing up your iPhone, iPad, and iPod touch.

    Once your data is safe, try to turn off your device, then again on the March. Sometimes, that's all that is needed for connections reset and everything working properly again. This article help from Apple will help you to do: restart your iPad, iPhone or iPod touch. If you are still having issues, try force reset then. It is designed to be used when the iPhone does not respond, and it looks to be the exact symptoms that you are experiencing right now.

    If you still experience the same problems after reboot, please try to restore your device from a backup by using this article help: restore your iPhone, iPad or iPod touch from a backup. If you don't have a current backup, please try this help article: If you can not update or restore your iPhone, iPad, or iPod touch. Please pay close attention when you get to step 4 who said "when you see the option restore or put to update, choose update. iTunes will try to reinstall iOS without erasing your data. "to get your iOS reinstalled. Test if the issue is still ongoing.

    Thanks again and have a great rest of your day.

  • Pages on issues of formatting to iCloud

    Hey everybody,

    I created a document Pages using the Pages application on my macbook pro I downloaded then to iCloud Pages so that I can access it from any computer. The issue I'm having is that I formatted some of the text to have a black background and the text to yellow color. For the life of me I can't understand how to change the background color of text on the Pages of iCloud. I beginning to think that changing the background color of text just is not possible on the platform of iCloud, but wanted to put this out there just to make sure.

    I appreciate any help or clarification on this issue.

    Thank you!

    Background (highlight) text color controls are absent in the Pages for iCloud, because it is a subset of Pages for Mac.

    This has been discussed in a previous post here, not so long ago.

  • External hard drive mounting issues on MacOS Sierra

    After upgrading to OS Sierra, I found that my USB3 drives, directly connected to my iMac end of 2012, turn off at startup. USB 2 disks are unaffected and connect properly. The only way to access my USB3 disks is to disconnect and reconnect every time I start the computer, then they are ok. I tried to reset the NVRAM, but it did not work. I found Os El Capitan until this issue is resolved.

    Do not mount or actually turns out always the system start? It was not clear in your subject line and content later, what was going on.

    Are they NTFS formatted drives? See the solutions frequently asked and answered forum if they are.

  • TVos 10 - Apple TV 4 (Wifi issues)

    My apple TV was working until it was upgraded to the new update 10 TVos great. I reset my router and modem, reset the apple tv itself and it has restarted several times, all with the same mistake of not being able to connect to the wifi network. My iPhone and computer are connected properly, get about 40mbps is normal, and the router is in the same room. Everyone knows these issues? No luck, anyone know a fix?

    have you tried to restore the appletv? Restore your Apple TV via iTunes - Apple Support

  • I can't reach some websites with any browser. I get the message ERR_CONNECTION_REFUSED. If I boot in safe mode I don't have the issue. I tried the reset and repair of everything. Help, please

    I can't reach some websites with any browser. I get the message ERR_CONNECTION_REFUSED. If I boot in safe mode I don't have the issue. I tried the reset and repair of everything. Help, please

    Try to run this program in your usual account, then copy and paste the result in a response. The program was created by Etresoft, a regular contributor.  Use please copy and paste the screenshots can be difficult to read. On the screen with the Options, please open Options and tick the boxes in the bottom 2 before the race. Click on the button "Report share" in the toolbar, select "Copy to Clipboard" and then paste into a response. This will show what is running on your computer. No personal information is shown.

    Etrecheck - Information System

  • connectivity issues mobile iPhone 7

    I have a new iPhone 7 jet black, so far I'm in love. But yesterday, I noticed an annoying problem. The phone loses the network connection (cell to the & t) and he no reconnect, it will remain just it saying no service. I have to go in airplane mode and outside to force it to look for the network connection.

    everyone knows this? and everybody understand what it could be?

    I already missed messages and a phone call. This could worsen as boring to become a problem. If anyone has any idea what this could be please give me a heads up!

    OH! Another thing I noticed, when the iPhone is connected my signal strength went from-102 to my 6 sec to-86 on my 7! Then when I am connected I am connected!

    Hello jpgraphx,

    Thank you for using communities Support from Apple. I know have a cell connection issue on your new iPhone, it's not what you expect. The good news are the following steps will help to solve your problem with loss of cellular data and see no Service and get your new iPhone works properly again.

    If you cannot connect to a cellular network or cellular data

    See you soon!

  • Backup issues after upgrade to iOS10

    Dear users of Apple,

    I updated my iphone 6 more yesterday with iOS 10. Phone works quite well. But I have my phone backup problems. I usually back up my phone with my iTunes Macbook (Via cable and sometimes on wifi). But after the update to iOS 10 it seems that I can't back up my phone more. I don't know the real cause of this problem.

    1. I am not able to save my iPhone via wifi data in iTunes. (Previously it was not the case).

    2. I tried to back up my phone using the cable also. Also, I pressed "Trust" this computer, but I get this error message. Please see below.

    Also, I allowed my computer by disconnecting iTunes and logging back there. And yet I have the same issues.

    "iTunes could not connect to the iPhone because an invalid response was received from the device."

    Does anyone know what this answer is invalid can be?

    Do I have to change the settings in my phone or iTunes?

    Help please!

    Thank you very much

    Deven

    Did install you the latest iTunes? iOS 10 requires iTunes 12.5.1.

    Get the latest version of iTunes - Apple Support

  • A 2 month old iPod Touch 5th generation began to lose its charge the battery overnight.  East - the developer of a battery issue?

    A "renovated" old 2 months iPod Touch 5th generation just recently started losing its charge the battery during the night.  East - the developer of a battery issue?

    Perhaps. Where did you buy this device?

  • Huawei P9 - I have many issues with getting my pictures from the phone to my Imac

    Huawei P9 - I have many issues with getting my pictures from the phone to iphoto on my Mac.

    Before the summer I bought a Huawei P9 phone, I can easily see the photos on the phone - I can't just them on my mac.  When I connect via a USB cable, it refuses my permissions.

    I try to use my Google account to view on the Mac and move the iPhoto - I can't work either! I can see them, I can't move them!

    I'm pulling my hair out and I have enough to do with! Help, please...

    Jim Hosking

    You need the phone provider support - there is a problem with the way their phone works and how to use it and has nothing to do with the Photos or iPhoto - if pictures is consistent with standards of good Photos and iPhoto won't work with it

    You may need special third party software for your phone load in Photos or iPhoto

    LN

  • Thank you for contact I can not access my ipad air disable I try to reboot same issue pleas help me I have a lot of data in the air from my ipad

    Thank you for contact I can not access my ipad air disable I try to reboot same issue pleas help me I have a lot of data in the air from my ipad

    Here you will find a way how to activate your iPad If you have forgotten the password for your iPhone, iPad, or iPod touch or your device is disabled - Apple supports

  • Mac Pro (end 2013) freezing issues

    Hello

    I bought a couple of years a new fantastic Mac Pro, but in a few months I started to think that I made a terrible choice.

    The computer crashes very often since I updated it to El Capitan, but it was difficult to work on Adobe Premiere since the outset: ridiculously slow, three hours to make a 4 minute clip.

    I contacted the Apple store, they kept for a week, they said he went from testing all the equipment and they found nothing wrong.

    The mac is still suspended. SO FRUSTRATING.

    I work on Photoshop, most of the time, but I have the experience of the 'freeze' even just browse the folders with the finder or visit a Web site on Chrome or watch movies. I unplugged all peripheral usb/firewire, mac freezes still. I repaired disk permissions but reports seem ok.

    I started with the Mavericks, I upgraded to Yosemite, El Capitan I reinstalled from scratch.

    But nothing has changed in fact related to the gel issue, once time and then (sometimes up to 8 times a day), I need to force a restart by using the power button, because everything is frozen.

    The trackpad and the graphics tablet (Wacom Pro middle) are frozen, no key is accepted.

    Apple has determined that in some late 2013 Mac Pro graphics cards may cause video problems - without video, system instability, freeze - but it seems that only the GPU AMD OVER-PANTS D500/D700 are affected (I have the base model with a D300).

    Do you have any hint? Is that what I can do to understand what is the problem?

    I wish I could be in a position, at least, to reproduce the problem, but sometimes it takes days between a 'freeze' and the other. Error reports are generated not either, it is one of the error messages Console that I could find:

    WindowServer [176]: GPU Driver seems to be suspended (more than 5 continuous seconds of reluctance)

    I am a professional photographer and work is very unproductive and frustrating. I'm losing money customers time and my mood, and I would like a response from Apple on this topic.

    Looks like it could be due to problem of graphic material.

    have you looked at this long discussions:

    Mac pro end of 2013 freezes with the spinning wheel

Maybe you are looking for

  • According to the weather of dream

    The function of the weather on the screen of my dream ago 5 or 6 days of work. Other work of function and my router connection is working properly. Is there a problem with the Weatherbug application?

  • How can I change my wallpaper back to what I had before?

    I accidentally made a photograph of my desktop background, how can I delete it and go back to what I had?

  • Windows Installer denies access.

    Several attempts to load new or repair programs invited the answer that the system administrator does not allow windows setup to accept the command. What should I do to access Windows Installer.

  • install language UI for windows7 in offline mode

    I downloaded the pack of Arabic language for windows7 ultimate cd image interface, but cannot go further to change my windows interface. Any body can help me? Thank you in advance.

  • The relational model engineer

    HelloWhen you perform an engineer to the model of relationship I get an exclamation point for some entities where the difference lies in the translation of names and table name, I guess. See attached screenshot. I assume that this is because the bug