Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela
Accepted Solution

add information to the address book BlackBerry-XML

[ Edited ]

Hello friend creates a list with my xml data but I would like to know how this information with a click is added to the book?

 

Contacto.qml

 

import bb.cascades 1.0
Page {
    id: contacto
    content: Container {
        background: Color.LightGray
        ListView {
            rootIndexPath: []
            dataModel: XmlDataModel { source: "model.xml" }
        }
    }
paneProperties: NavigationPaneProperties {
                    backButton: ActionItem {
                        title: "Atras"
                        onTriggered: { 
                            // _navPane is set in code.
                             navigationPane.pop();
                        }
                    }
             }
}

 Model.xml

 

<model>
  <header title="Nombre">
    <contact name="Marco Torres">
    </contact>
  </header>
   <header title="Correo">
    <contact name="xxxxxxx@gmail.com">
    </contact>
  </header>
     <header title="Telefono">
     <contact name="+58424xxxxxxx">
    </contact>
  </header>
       <header title="Twitter">
     <contact name="@marcossit">
    </contact>
  </header>
    <header title="Facebook">
    <contact name="facebook/marcossit">
    </contact>
  </header>
 </model>      

 IMG_00000058.png

 

also seen in the picture but I want the data to be added to the BlackBerry address book automatically or via a click?


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

Re: add information to the address book BlackBerry-XML

I have no idea how to add a model.xml my information in the book


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on: