您可以导出/导入 Flex (4) 数据服务吗?

发布于 2024-08-31 23:36:01 字数 242 浏览 3 评论 0原文

我正在使用 flashbuilder 4(flex4?),并被要求在 Flex 应用程序中创建客户端数据服务集成“层”。还有另一个团队致力于实际的 UI/演示。两个部分必须部署在一个 swf 中。

如果我使用数据/服务向导构建我的服务连接(并生成 ActionScript),是否可以导出这些“连接”,以便可以轻松地将它们导入到另一个项目中?或者必须通过向导重新定义它们? 另一个团队希望能够看到新项目的数据/服务检查器(IDE 选项卡)中显示的连接。

I'm working in flashbuilder 4 (flex4?), and am being asked to create the client-side data services integration 'layer' in a flex app. There is another team working on the actual UI/Presentation. Both parts must be deployed in a single swf.

If I use the data/services wizard to build out my service connections (and generate the ActionScript), is it possible to export these 'connections' so that they can easily be imported into another project? Or must they be defined through the wizard all over again?
The other team wants to be able to see the connections appear in the new project's Data/Services inspector (IDE Tab).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜唯美灬不弃 2024-09-07 23:36:01

有一种方法可以做到这一点,但有点残酷。
转到您的项目所在的目录。通常在“我的文档”中的某个位置。然后转到您想要从中获取所有数据服务的项目的目录。

找到“.model”目录,您将在那里找到“~项目名称~.fml”文件。现在打开文本编辑器并打开该文件。复制并粘贴到剪贴板(即内存)。

做一个新项目。
然后转到新项目文件夹及其“.model”文件夹并打开其中的“~项目名称~.fml”文件。删除里面的内容并将内存中的所有内容粘贴到该文件中。

不要忘记从旧项目中复制粘贴 valueObjects 文件夹和 services 文件夹。
在新项目中,如果您不想使用某个服务,则可以删除该服务,然后从那里开始您的新项目。

希望这会有所帮助,并且我希望 Adob​​e 能够为此创建一个真正的导入/导出。

There is a way to do this but its a bit brutal.
Go to the directory where your projects are located. Usually somewhere in your My Documents. And go to the directory of the project you want all the Data services from.

Find the ".model" directory and there you will find your "~project name~.fml" file. Now open a text editor and open that file. Copy and Paste it into clipboard (i.e. memory).

Make a new project.
Then go to the new project folder, also to its ".model" folder and open the "~project name~.fml" file there. Delete what is inside and paste all that is in memory inside that file.

Don't forget to copy paste the valueObjects folder and the services folder from the old project.
Within the new project you can then delete a service if you don't want to use it and from there on start your new project.

Hope this will help, and I hope Adobe will create a true import / export for this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文