简体   繁体   English

哪里可以更改破折号中“列表”数据源的数据?

[英]Where to change data for a “list” datasource in dashcode?

I created a new project in dashcode and it automatically generated a mobile web app for me with a list and sample datasources. 我用短代码创建了一个新项目,它自动为我生成了一个带有列表和示例数据源的移动Web应用程序。 I see two datasources, one is labeled as "datasource" and the other is "list". 我看到两个数据源,一个被标记为“数据源”,另一个被标记为“列表”。 However I can see that the actual data in datasources is in a js file, everything is good but where is the actual data stored for "list"? 但是我可以看到数据源中的实际数据在js文件中,一切都很好,但是“列表”存储的实际数据在哪里?

The sample application came with a bunch of data for "list" and I am unable to change it. 该示例应用程序附带了一堆“列表”的数据,但我无法更改它。 Any ideas? 有任何想法吗?

When you click on "DataSource" under Data Sources, you'll notice that the top line displayed is URL. 当单击“数据源”下的“数据源”时,您会注意到显示的第一行是URL。 It is assumed that the DataSource you'll be using is on the web somewhere (there's a way to maintain the datasource locally on the iphone but I'll get to that in a minute). 假定您将使用的数据源在Web上的某个地方(有一种方法可以在iPhone上本地维护数据源,但我会在稍后介绍)。 So, "publish" you xml|rss|atom|etc. 因此,“发布”您的xml | rss | atom | etc。 data on a web site somewhere and enter the appropriate URL. 在某个网站上输入数据,然后输入适当的URL。 When you press return or hit the refresh arrow, if the URL is correct, DashCode will parse your data file and the DataSource and List items will reflect your xml structure). 当您按回车键或单击刷新箭头时,如果URL正确,则DashCode将解析您的数据文件,而DataSource和List项将反映您的xml结构。

Then using DashCode create the bindings between your data and your DashCode template.... I whiz right by this because there is an excellent tutorial at the apple developer website at: http://developer.apple.com/safari/library/documentation/AppleApplications/Conceptual/Dashcode_UserGuide/Contents/Resources/en.lproj/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004692-CH1-SW1 然后使用DashCode在您的数据和DashCode模板之间创建绑定。...我很想这样做,因为在Apple开发人员网站上有一个出色的教程,网址为: http : //developer.apple.com/safari/library/documentation /AppleApplications/Conceptual/Dashcode_UserGuide/Contents/Resources/en.lproj/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004692-CH1-SW1

If the above link fails, go to "developer.apple.com" and from that home page search for "DashCode". 如果以上链接失败,请转到“ developer.apple.com”,然后从该主页中搜索“ DashCode”。 The intro document should be the first link returned. 简介文档应该是返回的第一个链接。

This intro walks you through writing DashCode applications including working with DataSources and binding to your templates. 本简介将引导您编写DashCode应用程序,包括使用DataSources以及绑定到模板。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM