开发者

Can you Export/Import Flex (4) Data Services?

开发者 https://www.devze.com 2022-12-29 18:47 出处:网络
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

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开发者_StackOverflow社区 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).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消