PDA

View Full Version : XTemplate with objects with a dot on names



gianpaulo
27 Feb 2010, 12:39 AM
How can I display the value to an XTemplate when applying it to a data which field names
has a dot on it. The data came from a store record and is retrieved from the server.

Here's an example data structure:



data :{
'Offset.date':'2009-10-23',
'Offset.reason':'Lorem ipsum dolor sit amet'
}


I've tried using {[values.Offset.date]} but it's obvious that it will not work. I've also tried {[values."Offset.date"]} and I get a compilation error.

For the meantime I'm mapping the fields but it would save me time if mapping is no longer needed.

Any ideas?

gianpaulo
28 Feb 2010, 5:13 PM
up! :D