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

Web and WebWorks Development

Reply
New Contributor
Posts: 2
Registered: ‎04-09-2013
My Device: Z10
My Carrier: Roogers

New developer needing some guidance

Hi Everyone,

 

I am new to scene of doing app development for blackberry. I have been tasked with building an app that will basically read a csv file or a xml that will contain contact information and need to display that information to the user.

 

I am not sure if I should be using webworks to develop with app or the Native SDK. I feel I can accomplish what I need to using the webworks platform. If you guys know anyone who is willing to be a tutor in the vancouver area in canada that would be awesome.

 

Let me know what you guys think about this. Appreciate any replies.

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: New developer needing some guidance

I can't tutor you, but I can tell you that there are plenty of SDKs, libraries and tutorials available that will help you reach your goal.

Pick one of the most feature complete SDKs like Sencha Touch or JQuery Mobile as it will be easier for you to get results quickly.
I don't know if BBUI.js features an XML parser.

Here is an example from the documentation of how things would look in Sencha touch

Ext.define('User',{
    extend:'Ext.data.Model',
    config:{
        fields:['id','name','email']}});

var store =Ext.create('Ext.data.Store',{ model:'User', proxy:{ type:'ajax', url :'users.xml', reader:{ type:'xml', record:'user'}}});

 This would parse a list formatted like this (roughly):

<?xml version="1.0" encoding="UTF-8"?>
<user><id>1</id><name>Ed Spencer</name><email>ed@sencha.com</email></user>
<user><id>2</id><name>Abe Elias</name><email>abe@sencha.com</email></user>

and would store everything in an array, ready to be displayed by a list view.

 

I would also suggest trying to get the data JSON formatted as I find it easier to work with in Javascript.

Also, please note that you can't get the native look with Sencha Touch yet, but it still does look as if it's belongs to the platform (colours, tabs).

 

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Developer
Posts: 107
Registered: ‎02-10-2012
My Device: Limited Developer Edition
My Carrier: WiFi

Re: New developer needing some guidance

Try www.code.org to do your first steps into code world, and always remember that code is poety
If i've helped you use the like button (KUDOS)!
Follow me at twitter: @hektorc
Read my blog: http://hektor.in
Check my GitHub: github.com/hektorcyc
Highlighted
New Contributor
Posts: 2
Registered: ‎04-09-2013
My Device: Z10
My Carrier: Roogers

Re: New developer needing some guidance

Thank you so much for your response. I will definietly try out what you said.