mercredi 2 juillet 2014

XTemplate - Panel - Complex Data - Hosting - Best way to do this ?

Hi All,

im trying to create a simple app, one of the key things is to have a Panel that shows infomation about a Venue. I have a set template as to how i want to show details about a Venue, i.e always have the Venue Name, Description a Picture and then a Bunch of Links, Essentially my "Venue Data object" has a one to many relashionship with a "Venue Data Links object"


[

{ id : 1,

name: 'KFC',

links: [

{ lid: 1,

lurl: 'www.kfc.com'}.

{ lid: 2,

lurl: 'http://ift.tt/1iV44hT'

}

]},

{ id : 1,

name: 'Burger King',

links: [

{ lid: 1,

lurl: 'www.burgerking.com'}.

{ lid: 2,

lurl: 'http://ift.tt/1iV44hT'

}

]}

]


if i create a panel with an XTemplate to work with this type of nested data Model, does anyone know a mBaaS (Mobile Back End as a service) that i can use to store and provide the data through a supported method in Sencha ? I wanted to use MS Azure, but i wasnt sure how you create an API that would return complex data in the way Sencha Expects ?


Anyone done anything similar ? is using an XTemplate a good idea ? the other option is to generate the html on the server side and then present it to sencha without using XTemplates, i wasnt sure what was best practice and assumed this would be slower given the overhead of the HTML markup..


Any pointers would be much appriciated!


Cheers

Niro





Aucun commentaire:

Enregistrer un commentaire