Multiple CollectionNodes with one SharedID in one app....

I'm having trouble getting multiple CollectionNodes to use the same sharedID but different Nodes.
It looks like the first CollectionNode to try and create a node on a sharedID, succeeds and the rest fail. The documentation for SharedObject refers to "piggybacking", so it must be possible to do what I'm trying to do.
Any direction in helping me get this working would be greatly appreciated.
There's some sample code right here. (username/password redacted)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <rtc:ConnectSessionContainer id="sessionContainer" width="100%" height="100%"
        roomURL="https://connectnow.acrobat.com/telecare/collectionNodeTest"
        xmlns:rtc="AfcsNameSpace">
        <rtc:authenticator>
            <rtc:AdobeHSAuthenticator userName="<username>" password="<password>" authenticationFailure="onAuthFailure(event)" authenticationSuccess="onAuthSuccess(event)"/>
        </rtc:authenticator>
    </rtc:ConnectSessionContainer>
    <mx:Script>
        <![CDATA[
            import com.adobe.rtc.sharedModel.CollectionNode;
            import com.adobe.rtc.events.CollectionNodeEvent;
            import com.adobe.rtc.messaging.NodeConfiguration;
            import com.adobe.rtc.messaging.UserRoles;
            private var _fooNode:CollectionNode;
            private var _barNode:CollectionNode;
            private var _sharedID:String = "CollectionNodeTest";
            private function onAuthFailure(event:Event) : void {
            private function onAuthSuccess(event:Event) : void {
                subscribeFoo();
                subscribeBar();
            private function subscribeBar() : void {
                _barNode = new CollectionNode();
                _barNode.sharedID = _sharedID ;
                _barNode.connectSession = sessionContainer;
                _barNode.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, barSync);
                _barNode.subscribe();
            private function barSync(event:CollectionNodeEvent) : void {
                if( _barNode.isSynchronized ) {
                    if( !_barNode.isNodeDefined("bar") ) {
                        var config:NodeConfiguration = new NodeConfiguration();
                        config.accessModel = UserRoles.VIEWER;
                        config.publishModel = UserRoles.VIEWER;
                        config.persistItems = true;
                        config.modifyAnyItem = true;
                        config.userDependentItems = false;
                        config.sessionDependentItems = false;
                        config.itemStorageScheme = NodeConfiguration.STORAGE_SCHEME_SINGLE_ITEM;
                        config.allowPrivateMessages = false;
                        _barNode.createNode("bar", config);
            private function subscribeFoo() : void {
                _fooNode = new CollectionNode();
                _fooNode.sharedID = _sharedID ;
                _fooNode.connectSession = sessionContainer;
                _fooNode.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, fooSync);
                _fooNode.subscribe();
            private function fooSync(event:CollectionNodeEvent) : void {
                if( _fooNode.isSynchronized ) {
                    if( !_fooNode.isNodeDefined("foo") ) {
                        var config:NodeConfiguration = new NodeConfiguration();
                        config.accessModel = UserRoles.VIEWER;
                        config.publishModel = UserRoles.VIEWER;
                        config.persistItems = true;
                        config.modifyAnyItem = true;
                        config.userDependentItems = false;
                        config.sessionDependentItems = false;
                        config.itemStorageScheme = NodeConfiguration.STORAGE_SCHEME_SINGLE_ITEM;
                        config.allowPrivateMessages = false;
                        _fooNode.createNode("foo", config);
        ]]>
    </mx:Script>       
</mx:Application>

Aha! That makes total sense now. It's the same problem I was having when trying to write to the same collection node as the WebCamera. I'm just trying to keep all my data organized.
I'm creating various pods. The pod superclass stores its location, visibility, etc... When I create a new type of pod, I make a class that inherits from the Pod class and it just adds what it needs to that Collection. In this way the super class adds a node called "pod", if it's a pod that represents a flashcard, the flashcards class might add the word or a picture to the "flashcard" node. So, I can easily add the CollectionNode to the superclass and just use it where I need to. Sometimes though, the Pod is just a container that contains other interactive elements, so I need to pass the CollectionNode around. Not a huge deal, but not ideal either.
It looks like my best solution might be to create a CollectionNodeManager to take care of these things. It would be a singleton and I'd request a CollectionNode like this: CollectionNodeManager.getNode(sharedID), and if it already exists, it will just give me the one that exists.
Which do you think is better, pass the CollectionNode object around or make a CollectionNodeManager?
(As an aside, a mechanism like this might be nice to introduce in later releases of the API, and it should be used in the existing PODS like the WebCamera pod so that developers can better utilize them.)
The general flex SDK docs are set up so I can add a comment to them. Is there a similar version of the API doc that I can add a note to?
You guys have been a huge help, I clearly owe you a beer or three.
-sandy

Similar Messages

  • Create multiple folders with one click on documents tab in BP in SAP CRM

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

  • Multiple iPhones with one one computer

    I was using multiple iPhones with one one computer, each iPhone device has it's Owen Apple ID. When I connected my device. I got my mothers photos, contacts &amp; applications. All my applications are deleted, is there a way to retrieve my iPhones photos and applications ?

    Sign out of your mom's account in itunes, then sign in with your account, then restore your phone from your itunes backup.

  • Strange Gateway Error with one APP Server (WSAETIMEDOUT)

    Hello Everyone,
    We are experiencing a strange gateway timeout issue on one application server in our SAP environment.  This started happening after we applied a series of Microsoft patches and updated the SAP kernals from 179 (DB 172) to 185 (DB 182).
    From this App server we are seeing all kinds of gateway errors, the following is a sample from the dev_rd file from the server in question:
      LOCATION    SAP-Gateway on host sappe1exp5 / sapgw00
      ERROR       partner 'sappe1exp4:sapgw00' not reached
      TIME        Sat May 30 23:40:54 2009
      RELEASE     700
      COMPONENT   NI (network interface)
      VERSION     38
      RC          -10
      MODULE      nixxi.cpp
      LINE        2823
      DETAIL      NiPConnect2
      SYSTEM CALL connect
      ERRNO       10060
      ERRNO TEXT  WSAETIMEDOUT: Connection timed out
      COUNTER     67
    GwTraceHdlInfo:
    HANDLE   = 6   
    TIME     = Sat May 30 23:40:33 2009
    SOCKET   = 468
    STAT     = NI_CONN_WAIT
    TYPE     = STREAM IPv4
    OUT      = 0 messages 0 bytes
    IN       = 0 messages 0 bytes
    LOCAL    = 0.0.0.0:2604
    REMOTE   = -
    OPTIONS  = BUFFERED
      ni hdl      = 6
      type        = CLIENT
      net_stat    = CONNECT_TO_REM_GW_PENDING
      hostaddr    = 10.10.0.21
      opcode      = NORMAL_CLIENT
      conn opcode = REMOTE_GATEWAY
      conn vers   = 105
      index       = 59
      data        = 0000000000000000
      ext_info    = 000000000333DCA0
      offset      = 0
      rest_len    = 0
      snc_forced  = 0
    remote gateway infos:
      hostname =
      hostaddr = 10.10.0.21
      service  = sapgw00
      tpname   = sapdp00
    Sat May 30 23:46:17 2009
    ***LOG Q0I=> NiPConnect2: connect (10060: WSAETIMEDOUT: Connection timed out) [nixxi.cpp 2823]
    ERROR => NiPConnect2: SiPeekPendConn failed for hdl 6 / sock 428
        (SI_ECONN_REFUSE/10060; I4; ST; 10.10.0.21:3300) [nixxi.cpp    2823]
    I have done alot of searching and I have tried the following things:
    1) Checked the services file of this machine, they line up with all other systems
    2) Attempted to telnet to other App servers on 3200, 3300, 3600 with no success
    3) tried to connect via SM59 to another App server with no success
    4) Attempted to do all of these things in reverse from the another app server with the same results.
    This is only happening with one app server in our landscape and this app server has no issues connecting to the CI.
    Any ideas on where I can look further?
    Edited by: James Wright on Jun 5, 2009 10:10 PM

    Hi,
    on sappe1exp5  try the following command in a dos prompt:
    telnet sappe1exp4 sapgw00
    this should also time out i.e. hang for a certain amount of time (~50 seconds) and then terminate with error.
    It simply means that the IP address 10.10.0.21 is not reachable from your client PC.
    Maybe you changed some IP addresses during patches. Usually there is an RFC destination that is not functioning properly.
    Best regards
    Carl Philipp

  • Multiple selections to multiple layers or multiple files with one go ?

    Hi,
    how to convert multiple selections to multiple layers or multiple files with one go ?
    Thanks!

    You may want to ask over at
    http://forums.adobe.com/community/photoshop/photoshop_scripting?view=discussions
    or
    http://ps-scripts.com/bb/
    I think there are Scripts about for the task or at least ones that could be adapted without too much problems.
    The usual approach is, I think, creating a Work Path from a Selection and then using (expanded) Selections based on the individual subPathItems to intersect with the original selection.
    Of course there are possibilities for bad results …

  • Photoshop crashes while using multiple windows with one image

    Has anyone else encountered the following problem:
    Photoshop CS4 crashes sooner or later when working with multiple windows with one image (window->arrange->new window for...).
    I remember having same problem since CS2. Is this a bug in Photoshop or am I having a bad luck?
    Technical specifics:
    Ps CS4, iMac, 21.5, 10.6

    Don't know.  I haven't heard of other people having that problem.
    Do you have a crash report I could look at?
    Or have you attached your email to crash reports sent to Adobe and can you tell me the date on one of them?

  • Create multiple delivery with one invoice

    Hi all,
    can you tell me how to do multiple delivery with one invoice,
    i tried in vf01 by giving their my 3 delivery nos but it is generating three invoices
    pls explain this in details
    points will be rewarded
    regards,
    smmmmmm

    Dear Sameer
    As per your requirement run the Tcode VF04 (Billing Due list) and select the Delivery Documents for which you want to to have single Billing Document by clicking on Collective Billing document/Online  Push Button in that screen.
    To Have Single Billing Document for Multiple Delivery you need to have Payer,Terms of Payment,Incoterms(part 1 and part2) same for all materials orelse the billing document will split and this split analysis is visible during creating of Billing document.
    Hope this will help you in solving your problem.
    Regards
    PSH

  • Select or deselect multiple rows with one single selection  event

    Does anyone know how to create a JTable which can select or deselect multiple rows with one single selection event in JTable. Fore example, if the table has
    row1
    row2
    row3
    row4
    row5
    row6
    What I need is when user select row1 or row2, both row1 and row2 should be set to be selected. Then if user press CTRL and click one of row3 or row4, both of them should be selected including the previouse selected row1 and row2.
    For deselection, if row1 and row2 are selected, when users deselect one of row1 or row2, both of them should be deselected.
    Hopefully someone can give me a hint.

    Here is a partial solution using a JList. Only one line gets highlighted when the user makes a selection in the list. But, two lines are returned. There is a blank line between every two lines.
         private void addLineToList() {
              String a = f_one.getText();
              String b = f_two.getText();
              if (a.length() == 0) {
                   Utils.showInformationMessage("Item field is empty.");
                   f_one.requestFocusInWindow();
                   return;
              if (b.length() == 0) {
                   Utils.showInformationMessage("Match field is empty.");
                   f_two.requestFocusInWindow();
                   return;
              model.addElement("item: " + a);
              model.addElement("match: " + b);
              model.addElement(" ");
              int size = model.getSize();
              pairList.setSelectedIndex(size - 3);
              f_one.setText("");
              f_two.setText("");
              f_one.requestFocusInWindow();
         private void editList() {
              if (pairList.getSelectedValue().toString().equalsIgnoreCase(" ")) {
                   Toolkit.getDefaultToolkit().beep();
                   f_one.requestFocusInWindow();
                   return;
              if (!f_one.getText().equals("")) {
                   int result = JOptionPane.showConfirmDialog(this,
                   "The Item field contains text. Replace the text?",
                   "Flash Card Activity", JOptionPane.YES_NO_OPTION,
                   OptionPane.INFORMATION_MESSAGE);
                   if (result == JOptionPane.NO_OPTION) return;
              if (!f_two.getText().equals("")) {
                   int result = JOptionPane.showConfirmDialog(this,
                   "The Match field contains text. Replace the text?",
                   "Flash Card Activity", JOptionPane.YES_NO_OPTION,
                   JOptionPane.INFORMATION_MESSAGE);
                   if (result == JOptionPane.NO_OPTION) return;
              String item = "";
              String match = "";
              int index = pairList.getSelectedIndex();
              String choice = model.getElementAt(index).toString();
              if (choice.startsWith("item")) {
                   item = choice;
                   match = model.getElementAt(index + 1).toString();
                   model.remove(index);
                   model.remove(index);
                   model.remove(index);
              else {
                   item = model.getElementAt(index - 1).toString();
                   match = choice;
                   model.remove(index + 1);
                   model.remove(index);
                   model.remove(index - 1);
              int size = model.getSize();
              if (size > 2) {
                   pairList.setSelectedIndex(size - 2);
              f_one.setText(item.substring(6));
              f_two.setText(match.substring(7));
              f_one.requestFocusInWindow();
         }

  • How can i active my iphones with one app id and using find my iphone apps

    hi
    i want to register 2 iphones with one app id ,and using find my iphone apps in my iphones ,
    how can i do it ?
    please help me

    this will not work for "find my iPhone".  It is always a good idea to have two seperate Apple ID's anyway

  • Multiple instances of one app of the same name

    Hello,
    we have few FMS/AMS servers, versions 4, 4.5 and 5, running some kind of internet TV tubes on them.
    Each tube is supposed to run as unique instance of a Tube app, with unique settings for publishing to CDN (Akamai).
    Sometimes following scenario happens: We reload the stream via administration console or administration API with use of reloadApp command, instance starts closing sequence, even triggers onAppStop event. But as the new instance starts, the old process wakes up again and lives together with the new one - when I check then throught administration API with use of getActiveInstances command, it shows me more instance of the same name as result - for example:
    -<data>
    <_0>tv_app/tube25</_0>
    <_1>tv_app/tube2</_1>
    <_2>tv_app/tube21</_2>
    <_3>tv_app/tube2</_3>
    <_4>tv_app/tube2</_4>
    </data>
    From logs I can see that each of that instances runs under different process ID (x pid column).
    This is quite unpreffered behaviour, as with the same connection settings the multiple instances steals the connection to CDN entry point from each other which causes problems and unpredictable behaviour...
    I have following questions related to this:
    1. - Why the onAppStop is triggered when using reloadApp and unloadApp commands or buttons in admin console, when documentation says that this event should not be triggered on these ocassions (see http://help.adobe.com/en_US/adobemediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7 edfSSASLR.2.3.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7fe2SSASLR.2.3)
    2. - How is it possible that system runs more instances of the same app with the same name? How to avoid such behaviour?
    I already noticed following aspects to have influence on the possibility to run multiple instance with the same name and got rid of them but problem still persists:
    - case sensivity of app name (one client connects to TV_app/tube2 and other connects to tv_app/tube2)
    - using false as return value in onAppStop event handler - when reloaded, new instance is started but the old one persists
    I am very eager to hear some explanation or clarification of such logic as it comes to me as some kind of internal bug as I have found everywhere that the instances names should be always unique....
    Thanks

    I just want to note that my recommendations led my clients to purchase more than 5 licences of FMIS/AMIS througt the time.
    As I see how low is the passion to react to any problem on Adobe side, I would have probably changed my mind.
    This is really pain in the *** as any call to adobe official contact (taken on mind that to find one is a big quest by itself) lead just to reply "pay nasty amount for our consultancy Sir!" and it does not look any better here....
    I am no novice on FMS/AMS platform, working with it more than 6 years throught many projects and I would not ask for some stupid questions which could be solved just by looking to documentation or could be solved by some performance eperience.
    I am really upset for this :/

  • How do I create multiple TEBs with one submit button on one page in Captivate 7

    I've read other posts on this topic (which refer primarily to earlier versions of Captivate) and am still at a loss as to how to put multiple text entry boxes on a page with one submit button. Here's my scenario:
    I am creating test questions.
    Each test question has multiple text entry boxes (for numbers only).
    Student should be able to enter numbers into the textboxes in any order.
    Then there is one Submit button that should initiate validating all the text entries, and move to a scoring page (so I can test it). (What would be best is if this button not only did the above, but also submitted scores to the LMS.  But that is not my question at this time.)
    I'd like this question to be set up as a template so that I can duplicate it, be able to add or delete text boxes and change the values required in the text boxes.  
    Here is an image of a sample question page with multiple TEBs. The yellow boxes tell the student where they need to enter text:
    Any help or direction to help is appreciated!!

    I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz.  Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
    If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it.  But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
    You can learn more about the Master widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
    http://www.infosemantics.com.au/interactivemaster/help
    You can download a free trial version of the widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    One caveat you should be aware of is that this widget is not HTML5 compatible.

  • Submitting multiple forms with one Submit button?

    I'm working to create a web app for the iphone and am using
    an apple developed css within an html page. In doing so I have
    created three forms within the single page and would like to submit
    them simultaneously with one submit. I've looked and tried a few
    javascripts but nothing has worked thus far. All three forms call
    the same action (php).
    Is this possible using js or another function?

    .oO(iRyFlash)
    >I'm working to create a web app for the iphone and am
    using an apple developed
    >css within an html page. In doing so I have created three
    forms within the
    >single page and would like to submit them simultaneously
    with one submit. I've
    >looked and tried a few javascripts but nothing has worked
    thus far. All three
    >forms call the same action (php).
    >
    > Is this possible using js or another function?
    Make it a single form.
    Micha

  • How can track my phone and another non-iPhone with one app?

    I installed "Find My Phone" a little while ago on my iPhone 3s, and on my wife's Pantech Burst...because I thought that since they both have the same logo, and background picture, then they must be synced...Well, that didn't work...
    So, I need an app that I can use on my phone and hers, where she can see where I am and I can see where she is...without using up a phone call to ask.
    Is there one app to do this?

    Don't think there is one.  The only apps with this functionality are Find My iPhone and Find My Friends, both of which only locate devices with iCloud accounts.

  • Multiple tasks with one click

    My work involves manually changing multiple lines to a different graphic style, and then moving that line to a different layer.  As it is now, I am changing the graphic styles, choosing Select < Same < Fill & Stroke, and then moving the lines to the appropriate layer.  I am wanting to know if there is a way to change the graphic style, and move the line to the different layer with one click.  I'm ignorant when it comes to scripting, but was wondering if there are any scripts that would perform this function.

    You need to fully explain the setup. Otherwise, people making suggestions are just guessing. Here's my suggestion, based on what little information you have provided:
    You don't need a script for this; you can do it with a set of very simple Actions. Example:
    Assume your repetitive task requires three Layers, named Red, Green, and Blue. On each Layer, all objects need to have the same Graphic Style applied.
    1. New document. Create three Layers. Name them Red, Green, and Blue.
    2. Define three Graphic Styles. Name them Red, Green, and Blue.
    3. Draw an object (any object; a square, a line, whatever). Send it to Layer Red. In the Attributes Palette, type "Red" into its Note field. (This effectively "names" the object "Red".
    4. Draw an object, Send it to Layer Green. Type "Green" in its Note.
    5. Draw an object. Send it to Layer Blue. Type "Blue" in its Note.
    6. Draw an object on Layer Red. Select it.
    7. Actions Palette: New Action. Name the Action "Red." Set its color to red. Start recording:
    7.1 Edit>Cut
    7.2 Edit>PasteInFront
    7.3 Apply Graphic Style Red
    7.4 Stop recording.
    8 Actions Palette: Select the Cut step. From the flyout menu select Select Object.... In the resulting dialog, enter "Red". OK the dialog. The Action should now have a new Set Selection step listed after the Cut step.
    9. Actions Palette flyout menu: Button Mode.
    Now you have an Action named Red that appears as a red button in the Actions palette. Select an object. Click the button. The object is moved to Layer Red, and gets Graphic Style Red.
    10. Turn off Button Mode. Duplicate the Action. DoubleClick the duplicate. Change its name to Green and its color to green. Edit its Set Selection step to select the object named Green. Replace its Graphic Style step with a step that applies Graphic Style Green.
    11. Similarly duplicate and edit one of the two Actions to create a Blue Action. Put the Actions palette back in Button Mode.
    Now you can select any number of objects, and then move them to the Red, Green, or Blue Layer and apply the appropriate Graphic Style wiht one click.
    Now come back and reveal the specifics of your actual situation which renders all that work moot.
    JET

  • Syncing multiple iPones with one computer

    What is the easiest way to sync 11 iphones with one computer? At work im in charge of 11 iPhones and need to manage them from one computer. Each user has there own apple ID and different apps so on and so forth. I would like to be able to update all the phones without getting all there stuff mixed up or losing there data.

    Well, you're gonna have to log into each user's account in itunes, then sync their phone, log out, log the next user in, sync, etc.
    Make sure you DO NOT SYNC CONTACTS, CALENDARS or stuff like that or you will screw things up!
    Message was edited by: wjosten

Maybe you are looking for