Filemaker:导出 PLIST(适用于 iOS)
我有一个数据库,我想将其导出为 iOS 兼容的 PLIST。
我提出的解决方法是创建一个计算字段,该字段添加标记的填充和标题,并使用这些字段创建报告。然后,我将报告预览导出为 PDF,在 Acrobat Reader 中打开 PDF,选择所有文本,复制并粘贴到可识别 PLIST 格式的 XCode 中,一切按预期工作。
有更好的方法吗? (这似乎是一种非常复杂的做事方式,出错的可能性很高,等等。)“导出为 XML”选项看起来很有希望,但我似乎无法将这些点连接起来。
I have a database which I want to export as an iOS compatible PLIST.
The work around I have come up with is to create a calculated field which adds the tagged padding and header and creates a report using these fields. I then export the preview of the report as a PDF, open the PDF in Acrobat Reader, select all text, copy and paste into XCode which recognises the PLIST format and all works as expected.
Is there a better way of doing this? (This seems a really convoluted way of doing things, high chance of error, etc.) The Export as XML option looks promising but I can't seem to join the dots.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我能想到的两种方法可以完成您想做的事情。最优雅的方法可能是您建议的带有 XSLT 导出的 XML。不过,如果您还不了解 XSLT,您可以尝试以下操作 - 听起来就像您已经创建的计算 XML 行一样,这将是对数据库的简单更改:
在 plistCreator 脚本中:
Two ways that I can think of to do what you're trying to do. The most elegant way is probably the XML with XSLT export which you suggest. If you don't already know XSLT, though, you might try the following -- it sounds like with the calculated XML line you've already created, like this would be a simple change to your database:
In the plistCreator script:
最简洁的解决方案是使用带有 XSLT 的导出 XML 来转换输出。您需要了解一点 XSLT 才能执行此操作,或者至少能够自定义 FileMaker 中的示例。
The cleanest solution is to use the export XML with an XSLT for transforming the output. You'll need to know a little XSLT to do this, or at least be able to customize the examples from FileMaker.