12-02-2012 02:35 PM - edited 12-02-2012 02:36 PM
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>
also seen in the picture but I want the data to be added to the BlackBerry address book automatically or via a click?
12-27-2012 10:18 AM
I have no idea how to add a model.xml my information in the book