PDA

View Full Version : LIST stops loading with associated jsonp Store



rordonez
9 Mar 2012, 7:00 PM
While Prototyping an application with a Tab panel and an jsonp Store,

I edited the template to show a list inside one of the tab panels, I used {FIELDNAME:usMoney}
For the list template.

The list Never showed (just a loading message) on the published version but rendered correctly inside Designer 2 verison Build 311.

After removing the usMoney on the list Template <div>{FIELD}</div>

The list showed the results from the jsonp Correctly and the application was published correctly.

The store Had a Model Built Separatly and json reader came from a php application, The fields that were trying to be formatted were float, and had number like 1250000.24452.

hth

Rodrigo O
Xnet

bharatn
10 Mar 2012, 6:38 PM
Hi,

<div>{FIELD}</div> is correct if you had a column named FIELD. You want to match what you have in the curly braces with field names in the model or store.

http://docs.sencha.com/touch/2-0/#!/api/Ext.dataview.DataView-cfg-itemTpl

Regards

rordonez
11 Mar 2012, 7:26 AM
Hi,

We have several fields that display inside the list correctly,
The problem arises when you apply the us money to a float field


If we do so, the list won't load,

The {FIELD} was an explanation only

It fails while trying to formatt the field with usMoney

It is acctually named MONTO, and it works without formatting

The strange thing is that in previews correctly inside the designer ui

Hth

Rodrigo