GroupDataModel point, cast to a custom object

I have a GroupDataModel (mContactsModel) of a listView by custom BBMContact objects.

On the list triggered, I want the BBMContact selected in the listView.

If I try

BBMContact contact_aux = qvariant_cast(mContactsModel->data(indexPath))

I get

/qnx6/usr/include/qt4/QtCore/qmetatype.h:169:80: error: 'qt_metatype_id' is not a member of 'QMetaTypeId'

How can I get the object selected to BBMContact?

Hello

To do this, you have two options that I can think of:

1, register the type using Q_DECLARE_METATYPE() & qRegisterMetaType().

or

2,

Qobject *obj = mContantsModel->data(indexPath).value();
BBMContact *contact_aux = qobject_cast(obj);

Tags: BlackBerry Developers

Similar Questions

  • Custom object of the quantities Record Field (best practices)

    Hello

    I've been searching but can't seem to find the best practices or recommendations on how many fields to the max may or must be in a single record from custom object. Is there someone out there who could give some information on this? or perhaps point me to some documents or articles on the subject?

    Thank you!

    You can take the class effective Marketing with the custom object class to better understand.  An excerpt from the guide of the student with the limitations thereon:

  • Hide custom objects

    Is there a way to hide the custom object based on certain conditions similar to how we filter extension points?

    EDIT:

    When I say custom objects, I mean the namespaces that we can define. (for example, frames, grids in the samples)

    1. I can't hide a view that shows these objects dynamically? (like does not appear on an if some related objects tab a flag is not together, or for some users)
    2. Can I hide it in the inventory list dynamically? For example, if I do not want certain users to be able to see the "basket" namespace in the inventory list but I don't want it to appear on the tab related objects of some objects.

    Thank you

    Virat

    The only way to hide any views or node defined in plugin.xml of stocks is to use with filtering.  For example, in the sample of chassis, you can hide the knot of the inventory of chassisApp of users with no privileges vCenter specific like this:

    aims. Navigator.nodespecs

    #{chassisAppCategory}

    vsphere.core.navigator.virtualInfrastructure

    [comma-separated-list-of-privileges]

    See the doc in line for other types of filtering of the extension: Extensions definition

  • Limits of the custom object

    Hello guys,.

    I'm trying to document all the limits of the custom object and new features added in new versions of cod.

    If anyone has any documentation or want to share some points, it will be greatly appreciated.

    Thank you

    IMSA

    Currently, Expression Builder is not available on items custom 4-16 but this evolving R17
    Attachments do not appear on some custom objects I forgot who once.

  • Are there any restrictions for custom object records?

    Hello

    Are there any restrictions for custom object records?

    Thank you

    Hello

    Registration of custom object data cannot be used:

    • with Hypersite field mergers;
    • with the research data on the data in the field, only the number of overall;
    • on off key Dynamic Content in the emails

    edynamic expert Eloqua

  • I want to send an email manually with the fields email drives custom object? Is this possible?

    I want to send an email manually with the fields email drives custom object? Is this possible?

    Hey,.

    Yes, however, the object record Email custom fields only fill with default values. For the custom field object Record is filled, it must be sent via the event Actions or a generating program so that he knows in which case it is associated.

    Thank you...

  • Related custom object records the Segment export view

    Hello

    I have records history of purchases in Eloqua-specific custom objects.

    These records are related to contacts.

    When I create a segment, I have the ability to filter the contacts based on the data stored on these custom objects.

    I want to export all the records in the custom objects related to all the contacts in the segment view, I can do?

    Hi Ofir,

    There is no way to do it directly from Eloqua. Segments will allow you only to view Contact data, and there is no equivalent way to custom segment object stores the data. To generate this list, you will need to export all history of purchase of your custom object records and then cross the two lists to identify records of custom object related to the Contacts in your industry to export all the contacts from your Segment view.

  • How to create the data control to a custom object of sale cloud using web service.

    Hi all

    I'm working on a requirement I need to display the common custom object data and their children object. After the display of the data user will be able to select multiple records by using the check box and then update the State to close.

    So basically, I need to create a table in which the data will fill with the checkboxs and when the user clicks on the button update then I need to update a field in the parent object.

    Any help would be appreciated.

    Thank you

    You must follow the steps below

    1. right click on the template project, select the new option

    2 Select the data control in the left hand side of the tab "All Technologies"

    4 Select "control of data from the Web Service" in the right side panel

    3. Enter the name of the data control (custom name)

    4. provide your WSDL to the URL https://crm-domain.oracleoutsourcing.com/foundationCustExtn/CrmCommonReferenceService?wsdl

    5. click Next, next if all methods to winow than wsdl, mix to the right and click Finish button

    6 refresh "data control" in your right side panel to request

    7 expand control of data and select only control data that you have already given

    8. then you can see the methods that comes from your wsdl.

    9. Select the method and expand it, you will get the return values

    10. drag and drop the return as a table value, you will get the af:table on the page

    11. don't want to operatet this table.

  • How can I update the custom object data card?

    Hello world

    We maintain a field check box on one of our custom objects data sheets.  I took a quick glance at the Eloqua REST API of Fred Sakr and found c# library class "customobjectdata", but there are only methods to get data cards and create new maps.  Someone at - it an example of updating an existing data card?

    I also took a glance to the bulk API but this would bring additional complexity to our development effort.  It seems that there must be a way to do this with a single call.

    I am open to the use of the SOAP API if this action is not possible using REST.

    Thank you

    Hey Austin Christmas Yes, you can update CDO via the REST API. We found this material useful for the performance of the access/mutation operations for CDOS: REST API - the custom metadata object

  • API bulk: creating custom objects, fields, and lists?

    Hi all

    I have searched and passed through the ticket of support for routing, but have not yet managed to find an answer to this question, so I thought that maybe the people who write the API would be the best ones to talk to

    Anyway, in summary, my question is:-

    Is it possible to create lists of contacts, the Contact fields and items customized by using the bulk API 1.0?

    I know, it is possible to create new contacts and add them to an existing list, but I want to create a new list with the bulk API and then add my contacts on this new list.

    Same kind of thing for the Contact fields. I want to be able to check if there is a Contact field and if not create one and then fill in the import.

    Once again, even for custom objects. I know I can do a GET for all currently available Custom objects, but can I create a new using the API as a whole?

    Any help would be most appreciated.

    Thank you

    Hi Chris,

    You cannot create contact fields, shared lists or the custom objects through the bulk API (which in fact is a RESTful API), they must exist already.

    You can use the REST or lists The SOAP API to create only shared the REST API to create the contact fields, but SOAP or REST currently supports the creation of custom data objects.

    If you don't have it already, please take a look here, building on The Eloqua Platform - A Resource Guide and there REST API - Documentation for kernel objects that will hopefully more questions.

    T.J.

  • API and custom objects

    Accessible custom objects (updated, retrieved,...) through all the APIs (in bulk, rest, soap)? If so, you can use and which have limits? We have reviewed the information available, but here a complete overview of the possibilities and the limits by type of API.

    The custom data objects can be recovered through the API.  They can only be updated via in bulk or SOAP.

  • Custom object filters (data card)

    How do you run the filters with data cards?

    We have Contact information stored in the Contact record, and our products are stored against cards of data with the email address as a common link between them.

    I need to run reports for some products, that lists all the products selected for some countries.

    Kind regards

    John

    He discovered. Using the "field of the linked object Custom' and 'A related custom object' in the contact filter allows filtering in the game of the data card.

  • Evaluation period for the stage of field custom object compare?

    I've never used an evaluation period during a stage of field of the custom object to compare on the canvas of the campaign and I want to confirm that she will be as I wait for him.

    We have a campaign that will send an email in nine batches, each a week after previous. I have a custom object with a field that contains the batch number (1-9) and I put nine steps to compare items customized on the canvas. The first checks to see if batch = 1, the second batch = 2, etc. I added a trial period of 7 days for the first eight steps. After I activated the campaign, I would expect all flow into the first stage of the decision and all those whose lot = 1 will immediately proceed to the stage of e-mail and the rest will wait seven days before moving on to the second decision, where everyone with batch = 2 will be moved to the stage left and e-mail everyone will wait for more than seven days, etc.

    I want to just make sure that this will be similar to, say, the Email step click on decision given that the data in the custom object will not change during the evaluation period, as it can to the other stages of decisions. And I don't want to accidentally send all nine lots at a time.

    Thank you.

    Hi Rob,

    This could work, as the Yes path would fire instantly and without the path would check during the evaluation period. Is there a reason to not only use a delay of a week between each stage of the decision well? A little more crowded, but perhaps more clearly during the audit of the canvas to the wire without having to enter each stage?

    See you soon,.

    Phil

  • REST API - custom objects DateTime fields

    Hello

    I can't understand how to create a new record of custom with date field object. When I create a contact I am passing the string format like this: "2014-09 - 29 T 23: 57:08Z. But the same format does not work with custom objects. It returns "invalid JSON string. What I am doing wrong?

    Hi Marc,

    You must pass as a integer unix timestamp.  for example 1414456157

    In rails, you generate using Time.now.to_i

    See you soon,.

    Ryan

  • Data in bulk Api Custom objects mapping to accounts

    We are trying to create custom objects and map it to an account using the REST api of bulk.  For contacts, we are able to do this by using the following:

    "{{Objetpersonnalise [48].}}. Contact.Field (C_EmailAddress)}}.

    For accounts, we tried this:

    "{{{Objetpersonnalise [48]." Account.Field (M_CustomAccount_ID)}}} ".

    However, we get the following error:

    "failures": [{"field": "account_mapping_field", "stackTrace": [{'field': 'fields'}], 'value': ' {{Objetpersonnalise [73].}} "}] "Account.Field (M_CustomAccount_ID)}}", "constraint":

    Does not contain account fields (given that the binding is not enabled for imports). »}]}

    Any suggestions?

    Hey Tyler,

    It is not currently possible to link records LCO to accounts via the API in bulk.  If available, try SFTP for automated downloads / on demand.

Maybe you are looking for

  • The button new message will not work in Gmail - it does with IE.

    The calendar very high buttons disconnection etc., dial button, task and contact in Gmail buttons do not work. All other keys are working. All work fine when using IE. I updated Firefox 3.6.12. Deleted all cookies cached, etc. & restarted.

  • Cleaning system

    Is there any cleaning system of exercises I should be doing on a regular basis on my desk? Similar to "scan disk" and "defrag" etc... OSX El Capitan v 10.11.3

  • How to use ReadyDLNA?

    ReadyNAS 104 6.4.1 I activated ReadyDLNA service and when I access it I have 4 folders, 'Browse folders', 'music', 'photos', 'video' all that is empty (they have subfolders that are empty too) where can I configure which files to put in the folder wh

  • Want to 750-055xt: POWER PN 746177-001 SPECIFICATIONS AND REPLACEMENTS

    I tried to find the specifications for the PN 746177-001 power supply 500 Watt.  But I guess that's a secret.  The price and the delivery from the parts store what is twice its evidence. (just my opinion).   I can buy it for $ 30 to $ 60, but everyon

  • translation of a foreign language

    Ive sent a wiring diagram for my work except the diagram, the details are in German y at - it a way to translate English