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

Reply
Developer
marcossit
Posts: 175
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:


Please use plain text.
Developer
marcossit
Posts: 175
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:


Please use plain text.