18 May 2009
26 December 2008
Step 4 - Create a Flex application
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
creationComplete="onCreationComplete()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
protected var inventory:ArrayCollection = new ArrayCollection();
protected function onCreationComplete():void {
ds.fill(inventory, "all");
}
]]>
</mx:Script>
<mx:DataService id="ds"
destination="sql-product"
/>
<mx:DataGrid id="grid1"
dataProvider="{inventory}"
editable="true"
/>
<mx:Label text="Items: {inventory.length}" />
</mx:Application>
14 December 2008
Step 2 - Understand LCDS' folders
| C:\Adobe_lcds\tomcat | The root folder for Tomcat, your Java application server |
| C:\Adobe_lcds\tomcat\bin | Directories for Tomcat startup/shutdown scripts |
| C:\Adobe_lcds\tomcat\conf | Configuration files for Tomcat |
| C:\Adobe_lcds\tomcat\work | Hands off! Tomcat's own temp (working) folder |
| More info about Tomcat at Jajakarta.org | |
C:\Adobe_lcds\tomcat\webapps | Root folder for LCDS. |
C:\Adobe_lcds\tomcat\webapps\lcds-samples | Adobe's sample applications. |
C:\Adobe_lcds\tomcat\webapps\lcds | Template folder for your own apps. Copy this, and create your own based on this template. Keep this unspoilt if you need to start from scratch. |
C:\Adobe_lcds\tomcat\webapps\ds-console | The console / status reports for the Adobe LiveCycle Data Services web applications. |
| More info about LiveCycle Data Services configuration at Adobe | |
13 December 2008
- Start 'lcds261-win.exe'
- Leave the serial number blank (free when used on a single CPU)
- Install with Tomcat (unless you know how to do otherwise)
- My example uses the install path C:\Adobe_lcds.
Start LiveCycle Data Services Server and Samples Database
- Start - Adobe - LiveCycle Data Services ES 2.6.1 (or C:\Adobe_lcds\tomcat\bin\catalina.bat start)
- Start - Adobe - Start Samples Database (or C:\Adobe_lcds\sampledb\startdb.bat start)
Test LCDS
My default installation gives me LCDS on http://localhost:8400/, which is configured in C:\Adobe_lcds\tomcat\conf\server.xml, under Service name "Catalina".
LCDS Samples are found on http://localhost:8400/lcds-samples/. And our applications will be deployed at http://localhost:8400/lcds/.
Check also out the console on http://localhost:8400/ds-console.
[Main article] [Next] [Previous]
12 December 2008
How-to connect LiveCycle Data Services 2.6 to Microsoft SQL Server
Flex is front-end only. So, when you want to get information from one of your databases, you need 'something else' to transport your data between the database and the Flex front-end. This 'something', you often have to make from scratch, and names and structure are often partly redundant, as it copies existing code, written in ActionScript/Flex.
Adobe LiveCycle Data Services is capable of providing this missing link, without writing a single line of code, by using its SQL Adapter. You specify SQL statements directly in a configuring file, for Creating,
Here in
Being a newbie to Flex, LiveCycle Data Services and Java application servers in general didn't make it easier. But I've succeeded, and here's my story for others in the same situation:
1. Download and install Livecycle Data Services
2. Understand the folders of LCDS and Tomcat, the java app server
3. Explore the existsing sample HSQLDB database and its configuration
4. Create a Flex application reading the sample database
5. Install MSSQL Java drivers
6. Set up MSSQL and LCDS' connection
As you see, I'm not yet finished writing all the sub sections. But they will come...
