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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Regular Contributor
marcossit
Posts: 84
Registered: ‎07-19-2012
My Carrier: Movistar-Venezuela

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?

Download my App for BB10 http://appworld.blackberry.com/webstore/content/134103/
Please use plain text.
Regular Contributor
marcossit
Posts: 84
Registered: ‎07-19-2012
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

Download my App for BB10 http://appworld.blackberry.com/webstore/content/134103/
Please use plain text.