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

Tags: Adobe LiveCycle

Similar Questions

  • Boxes and custom data objects

    I am creating a form with a list of checkboxes based on interests of customers - there are 8 in total and they can select several options.

    What I want to do is to create shared lists for each option which will serve as a member of segment for future mailings.

    I also need to store data for that person together so if I never, I can go and say ' well, Joe Bloggs here is interested in X, Y and Z, so I'll put him in the countryside, A and B'.

    Are the data objects custom the way forward? I had a go at creating and mapping it, but I don't know what to do with these boxes!

    Thank you!!

    For the shared list, simply use the step "Add to shared Contact list" of your form and make it to the condition that the box is checked. You will need 8 of these steps, one for each option.

    To preserve the data, I would like to use a custom data object. Create a new CDO set with an address field of the email and one for each of your boxes (and any other information you want, of course.) And then use the processing stage of 'Update Custom Data object - With Custom Values'. You can define this step to add a 'yes' or 'on' or whatever you want to the appropriate field in the ORDER. Yet once, make this step on the box being checked in your form. Yet once, you need to create 8 of these steps, but once you get the first fact, others should go faster.

    PS, I kept typing "from" instead of "form". Argh.

  • Add Classes of objects before creating the user?

    Hello

    I have a requirement where in I need to add classes of objects to the user during the commissioning of Sun Directory Server. Exactly how should I implement my task of process for the same thing. I might add the object after the task of creating class is complete or until the user creating the task fires?

    Thank you
    PETREA

    Are you talking about adding classes of object customized for users? It would be a schema change and must be done before adding users since that would fail without the correct schema in place. To add new classes of objects you need to either manually create the admin Department page or import the definitions of objects and attributes of an ldif file. Once it is, you can then configure the workflow commissioning and add classes of objects when the user was created so that the system knows what classes of objects associated with each entry of the user.

  • What is custom data objects?

    Hello

    What is the custom data object? Use of custom data object?

    Thank you

    POOJA

    Hi Pooja,

    The custom data objects are used to store data that can be linked to a Contact or company record and they are not part of your account or customer contact record. Custom data object records can also go by the name data cards.

    Use: -.

    Send emails to contacts who have tweeted about a certain subject.

    Contacts of segment and filter for inclusion in an email campaign.

    Kind regards

    Eloqua Experts

  • Add custom in the analytical center of the lines of obiee11g lines

    Hello

    I want to add custom table lines. Only lines custom placed after the specified lines, based on requirements.

    In the screenshot, lines custom here is sum (1 + 2 + 3), sum(4+5), sum (6 + 7 + 8)

    ERR4.jpg

    To do this, I created RPD and exported in Ms.

    I have the analytic choice to create the report.

    To add lines custom, I choose Add custom calculated item.

    I tried. But I have no way out.

    Please see the screenshots

    err1.jpg

    err2.jpg

    err3.jpg

    See the output

    err5.jpg

    Please help me. I couldn't place the lines custom after the specified lines.

    Thnaks in advance,

    Bruno has.

    Make 1 more column for Prod_ID and then use fx of expression to sort values Prod_ID using the Case statement.

    using PivotTable the aggregate value or icon of sigma to sum up the values.

  • Cvent Feeder should send information to a Contact record or a custom data object?

    We use Cvent to organize our event series each year. The event series contains ~ 18 events each year. This will be the first year we try Cvent trough to connect the information that we collect to Cvent and push it in Eloqua? Should push us to a record of individual contact or a custom data object?

    My first inclination is to match to a contact record. My reasoning for this is that the event creates many new perspectives and we want these people to become contacts in Eloqua, so that they can be put in feed and then also synchronized in Salesforce. Our Organization has also had a very limited use of custom data objects so far, we're still learning the system, and it's so advanced capabilities of segmentation may still be beyond our capacity at the moment. My fear is that if we were to store data of Cvent in custom data objects, data objects that can be linked to a contact record because they are quite new perspectives there. On the other hand, a lot of information from the event record (beyond names, emails and addresses) is really intended for a custom data object. Any advice as to how we should do that?

    My recommendation is to use a custom data object. -Especially if you store specific information about the event.

    While I'm not 100% on the configuration of Cvent, you probably have the ability to set the default mapping that relates to the LCO to the contact table. -It is usually an email address

    Otherwise, you also have the option of specifying the parameter 'Mapping the default used in Upload' for the CDO. -Make sure it is set up properly as well. -Yet once, it is usually to address Email

    As long as they are set up correctly, the system will automatically create a new contact for you if the 'E-mail address' the participant Cvent is NOT already a contact Eloqua... More importantly, if the 'Email address' the participant Cvent is already a contact-> a new contact will NOT be created. (Instead, the existing contact will be related to multiple records LCO)... That's what you want

    This way don't unnecessarily create you more contacts than you need to.

    Once you get this sorted out, you'll be amazed how it is easy to start to use these CDO into Segments.

    Let me know if it helps.

    ***********

    Chris Continenza

    Senior Marketing Automation Consultant at Tegrita Consulting Group

    Tegrita Consulting Group

    Web: tegrita.com

    Phone: 1.800.771.3308

    E-mail address: [email protected]

  • Can I evaluate and fill out a form with data from a custom data object?

    I'm not a developer, but I'm trying to find as much information for my web team so they can implement this for me.  We use the E10.

    I have some information for the contacts stored in a data object custom I want to use for pre-population information access door and in another form.  For example:

    1. User enters his email address into a form and hands
    2. A search and contact and custom data object (CDO)
      1. If the contact has a CDO with the required information, he fills the following form with the information
      2. If the contact does not have the required ORDER, it displays information and a link to the place where to go next

    Is it possible, and where should I direct my developers learn more about treatments?

    Richard

    Hi Richard,

    You can certainly do so using data for the Eloqua Web search (Setup > data Web Look Ups). A database search allows you to request data stored in Eloqua, bring up the page and with a few JS, we determine if they will go on track 1 or 2 you described above.

    Is that an advanced feature requires knowledge of HTML and JS. Here is a good article on data search that should help:

    Using the Eloqua Cookie to customize your Web site

    If you have any specific questions, our support team is very familiar with this feature and can help to solve problems or answer specific questions.

    -Andrew.

  • Using the Eloqua.API to write to "Custom Data objects/data card Set.

    Does anyone know where there are examples for data objects programming customized via Eloqua.API, I created 2 custom data objects and you now need to write the code for these objects via the API. The examples of code that I used for the previous tasks such as create a contact, create business, update contact and company, describe the entity... I used the following link to complete the previous, above the tasks mentioned.

    http://www.eloquatrainingcenter.com/Portal/documentation/API/default.htm

    However, I don't see anything about the programming of a "Custom Data object/data card Set"

    Joey

    Hi Joey - looks like you you will first make a. Query() call using the name or the GUID personalized criteria, then the returned object, you can retrieve the Id property that will have the whole you need.

    Without this whole you will not be able to correctly map the data card.

  • How to add custom context menu menu items?

    How to add custom context menu menu items?

    through c++ sdk

    Hi Philippe,.

    to display a context menu you just replace the path of the menu. For example if you have a menu ' hand: & Layout: MyMenu "you can add it to the context menu"RtMouseLayout:MyMenu"in your MenuDef resource in the file en with the ActionID of your ActionComponent.

    Markus

  • How to add a JSON object in the body of a HTTP POST request

    Hello

    I use Java 8 ME incorporated and I would add a Json object in the body of an http request.

    I would like to do something like:

    -----------------------------------------------------------------------------------------

    HttpClientBuilder clientBuilder = HttpClientBuilder.getInstance ();

    HttpClient client = clientBuilder.build ();

    HttpRequestBuilder requestBuilder = client.build ("my_URI");
    requestBuilder.setHeader (HttpHeader.ACCEPT, "text/plain");

    [...]

    requestBuilder.setMethod (HttpMethod.POST);


    HttpRequest request = requestBuilder.build ();

    creating the Json object to be sent in the body of the http request
    JsonObject myJsonObj = Json.createObjectBuilder)
    . Add ("firstname", "John")
    . Add ("lastname", "XXX")
    . Build();

    This part, I'm a little confused: how to get the OutputStream where I should put the Json object?

    JsonWriter jsonWriter = Json.createWriter (java.io.OutputStream of);

    jsonWriter.writeObject (myJsonObj);

    jsonWriter.close ();

    invoking the http request

    HttpResponse response = request.invoke ();

    -----------------------------------------------------------------------------------------

    Have a tip, please?
    Thanks in advance.

    Bruno

    We need to create the class for this interface

  • OEM 12 c - add custom properties target - is it possible?

    We use the Oracle 12 c Cloud Control (12.1.0.1 BP).

    Targets have a number of Oracle-supplied properties that can be filled by the end user - comment, Contact, cost center, the identifier of the Customer Support, service, etc. For the purposes of database, these properties are accessible to Oracle Database/target/properties of installation in the GUI of the OEM.

    Is there a reasonably safe way or "Supported by Oracle" to add custom properties? For example, we would add a property of Type "backup" that we can maintain the same page as the Oracle-supplied properties.

    I see that there is a SYSMAN. Package MGMT_PROPERTIES, which seems to provide an API for manipulating the properties, but I found no official documentation for it.

    Thoughts?

    The verb add_target_property to emcli to add a custom target for a target type property.

    Ex:

    $ emcli add_target_property-target_type = "oracle_database" - property = "name of the owner.

    Property 'Owner name' added successfully

    For more information on the emcli verb, please see:

    http://docs.Oracle.com/CD/E24628_01/EM.121/e17786/cli_verb_ref.htm#CACDGGHJ

    Note: Currently target custom properties cannot be used to add targets of administrative groups. There is an improvement for this feature request.

    Kind regards

    Loc Nhan

  • Dynamically add child loader objects

    Hi I want to add the loader object dynamically on stage, but indicating an error.

    function addImage(str:String) {}

    LD = new Loader()

    LD. Load (new URLRequest (str + '.png'))

    ld.contentLoaderInfo.addEventListener (Event.COMPLETE, loadfinish)

    }

    function loadfinish(event:Event):void {}

    addChild (event.target.data)< < < this is showing the error

    }

    error is:

    ReferenceError: Error #1069: property not found on flash.display.LoaderInfo data and there is no default value.

    at imagesearch_fla::MainTimeline/loadfinish()

    If you are looking for the Loader class in the help documentation you will see that the ois of error what is the problem.  There is no property 'data' for the Loader class.  The Loader class, since it deals mainly with the Visual elements, has a property 'content '.

    The URLLoader class has a data property, and this is mainly because the URLLoader class is used for data files.

  • Output of mapping a custom BPM object DB adapter

    Hello
    I'm trying to map a set of my Adapater DB to a custom BPM object. My DB adapter contains a sql select statement that returns multiple order records. I want this card to my "orders" defined in the BPM project. I saw the new transformation Editor, but I don't know what choice do the mapping.

    Thank you.

    If you select "Use the Transformations" as type of data binding, which will have you use/create a xsl to do the transformation. In the Visual editor for XSL JDev, if you drag the type returned to your type I think we need to create a and create maps of specific fields.

  • JS script to add custom text and the name of file to file info in the title of the document

    Would be very happy for any help with this one...

    JS script add custom text and the name of file to file info in the title of the document

    Thank you very much

    Super: O)

    I have a folder of say 50 images and I want to run a lot of JS script

    example in the title of the document: image Nr 81205

    custom text is 'image Nr' + '81205 file name.

    activeDocument.info.title ="Nr of pictures"+ decodeURI(activeDocument.name);

    This would be correct without seening the ext file

    Thank you very much

  • Distance communication: sending the custom Java objects

    Hello...
    I use Flex 3.01 - BlazedDS

    I have a few working methods implemented on the server I have retrieve custom objects and custom objects table... everything works perfectly...
    I also have a method that I pass a custom Flex object (mapped to a Java object) to retrieve another object Java (mapped to a Flex object) works perfectly...

    But I have this method I have send as an argument one of my items customized to retrieve another object custom... and when I invoke this method the cursor "occupied" remains as always and demand is slowing down...

    I checked the log on the server and I do not see the method called and no error...

    Trying to debug... I saw in the object AbstractOperation "1023 stack overflow" error getting caught, but when I run it normally I see no error...

    This object I send as an argument is like a custom class to hold one of my items for various operations on the server and the first method that works, the object I have send as and the argument is simple...

    This second purpose is as a container that contains a table of another container of objects containing any kind of my items...

    I thought that maybe there is a limit for mapping... I don't know... but I don't see any information to reach the server...

    If someone could help me, I would appreciate...

    Thank you

    Solved...

    It seems that by using the same RemoteObject to call a large number of methods on the same destination is not good...

    I created another RemoteObject to call the method and worked...

    Thanks anyway...

Maybe you are looking for