QueTwo's Blog

thouoghts on telecommunications, programming, education and technology

Upgrade to LiveCycle DataServices

,,,

Have you ever started a Flex project, planning only to use Flash Remoting (such as a connection to ColdFusion or .NET), or Web Services, when you realize halfway through the project that it could really use the power behind LiveCycle Data Services? Converting a project in Flex Builder from using Flash Remoting (RemoteObjects) or no server side connection, to utilizing a connection to LDS is not trivial, if you haven’t done it before.  Sure, you can create a new project, and import all the files — but if you are, for example, using SVN to sync your files, it is just a pain in the butt.

Here is how to do it in Flex Builder 3:

  1. Make sure your project is open, and right-click on the project in the project explorer.  Click on the Properties menu item.
  2. Click on the Flex Compiler Settings option, and make sure you add the -services “ to the compiler arguments.   The location to the ColdFusion services-config.xml file is : C:\ColdFusion8\wwwroot\WEB-INF\flex\
  3. Click on the Flex Build Path section, and then on the Library path tab. 
  4. Add the fds.swc by clicking on the “Add SWC…” button, by adding the fds.swc from either the \WEB-INF\flex\libs\ directory (if your use LiveCycle), or C:\ColdFusion8\wwwroot\WEB-INF\flex\libs\ (if you use ColdFusion)
  5. Click OK to close the properties dialog.
  6. Clean your project, by going to the Project menu, and clicking Clean…

And Flex Builder 2 (thanks to Jared’s Post)

  1. Make sure your project is open, and right-click on the project in the project explorer.  Click on the Properties menu item.
  2. Click on the Flex Compiler Settings option, and make sure you add the -services “ to the compiler arguments.   The location to the ColdFusion services-config.xml file is : C:\ColdFusion8\wwwroot\WEB-INF\flex\
  3. Click on the Flex Build Path section, and then on the Library path tab.
  4. Make sure (only) the following items are in the library path:
    1. ${FRAMEWORKS}/libs/playerglobal.swc
    2. ${FRAMEWORKS}/libs/locale/{locale}
    3. C:\ColdFusion8\wwwroot\WEB-INF\flex\libs (directory)
  5.   Click OK to close the properties dialog.
  6. Clean your project, by going to the Project menu, and clicking Clean…

Hope this helps!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: