Modeler 3.11 works with Flash Builder 4.5 and Livecycle Data Services 3.1. It is available for download here:
https://www.adobe.com/cfusion/entitlement/index.cfm?e=lc_app_model
Note: These steps are only required when you run Flash Builder in stand-alone mode.
By default, new Flex projects for LiveCycle Data Services in Flash Builder use the fiber.swc file in the WEB-INF\flex\libs directory of the target web application. This version of the fiber.swc file is missing a new method that is required for ActionScript code generation when working with Modeler 3.11. This version of the fiber.swc file is missing a new method that is required for using the model-driven form. When you try to use the model-driven form in an application, you will get an error that contains the following text:
Method marked override must override another method.
To work around this issue, replace the the fiber.swc file in the WEB-INF\flex\libs directory with a copy of the fiber.swc file from the FB_INSTALL_DIR\eclipse\plugins\com.adobe.flexbuilder.project_4.5.0.308971\fiberSwcs\4.5\libs directory.
Message was edited by: Mike Peterson
Views
Replies
Total Likes
Hi Mike, thanks for this post. Any work arounds for the second known issue ?
Views
Replies
Total Likes
Dear Mike,
Have you ever encountered the issue about FB 4.5 channel set authentication to work with model driven?
In my test code, it calls "channelSet.login" before data service dynamic method generated, for instance "getAll()". It produces an error "Could not initialize DataService." But when I try to not call channelSet.login then getAll works.
LCDS debug console, service destination description will be automatically loaded for first time call getAll without any problem but if we call channelSet.login before getAll method, the destination description won't be loaded so getAll method cannot be fired.
Same test code is working well with FB 4.1.
By the way, the new modeler 3.11 interface seems missing custom "filter method" for entity as we got in prior version.
Best,
Timmy
Views
Replies
Total Likes
Can you please send me a private message with a zip file (as an attachment) of the Flex project that demonstrates the issue with ChannelSet.login?
I'm not sure what you are mean about a filter method. Do you mean the filter element of the modeling language? If so, you can definitely use filters in Modeler 3.1.1. In Design view, you can drag them from the tool palette or right click on an entity to add them.
- Mike
Views
Replies
Total Likes
Dear Mike,
Here is simple test code. On server side, just config tomcat custom authentication.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:ds="asclass.ds.*"
minWidth="955" minHeight="600"
creationComplete="application1_creationCompleteHandler(event)"
>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.messaging.ChannelSet;
import mx.messaging.config.ServerConfig;
import mx.rpc.AsyncResponder;
import mx.rpc.AsyncToken;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
[Bindable]
public var cs:ChannelSet = ServerConfig.getChannelSet("my-rtmp");
protected function application1_creationCompleteHandler(event:FlexEvent):void
{
//csResponder.token=cs.login('tomcat','tomcat');
}
protected function button1_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
getAllResult.token = usersService.getAll();
}
protected function button2_clickHandler(event:MouseEvent):void
{
csResponder.token=cs.login('tomcat','tomcat');
}
]]>
</fx:Script>
<fx:Declarations>
<s:CallResponder id="csResponder" />
<s:CallResponder id="getAllResult" />
<ds:UsersService id="usersService" channelSet="{cs}"
fault="Alert.show(event.fault.errorID+'\n'+event.fault.faultCode+'\n'+event.fault.faultString + '\n' + event.fault.faultDetail)"/>
</fx:Declarations>
<mx:DataGrid id="dataGrid" x="0" y="10" width="100%" height="100%" >
<mx:columns>
<mx:DataGridColumn dataField="version" headerText="version"></mx:DataGridColumn>
<mx:DataGridColumn dataField="id" headerText="id"></mx:DataGridColumn>
<mx:DataGridColumn dataField="createdDate" headerText="createdDate"></mx:DataGridColumn>
<mx:DataGridColumn dataField="password" headerText="password"></mx:DataGridColumn>
<mx:DataGridColumn dataField="updatedDate" headerText="updatedDate"></mx:DataGridColumn>
<mx:DataGridColumn dataField="username" headerText="username"></mx:DataGridColumn>
<mx:DataGridColumn dataField="role" headerText="role"></mx:DataGridColumn>
</mx:columns>
<s:AsyncListView list="{getAllResult.lastResult}"/>
</mx:DataGrid>
<s:Button x="10" y="202" label="Get" click="button1_clickHandler(event)"/>
<s:Button x="109" y="202" label="login" click="button2_clickHandler(event)"/>
</s:Application>
Thanks
Timmy
Views
Replies
Total Likes
Total newbie with LCDS and Flash Builder.
Running FB 4.5 with SDK 4.5.1 and Modeler 3.1.1 for a Flex Mobile Project. I installed lcds31 for Windows with integrated Tomcat server. I did not find folder FB_INSTALL_DIR\eclipse\plugins\com.adobe.flexbuilder.project_4.5.0.30 8971\fiberSwcs\4.5\libs but did find what appears to be the equivalent (FB_INSTALL_DIR\eclipse\plugins\com.adobe.flexbuilder.project_4.5.1.313231\fiberSwcs\4.5\libs) so I copied in that folder's fiber.swc to LCDS.
My project is still getting the following errors:
Unable to resolve resource bundle "data" for locale "en_US". TBOB-POC Unknown Flex Problem
Views
Replies
Total Likes
Hello,
You are missing the swc resource bundle libraries, which can be found along with the rest of the LCDS Actionscript libraries in lcds\resources\lcds_swcs\FlexSDK4\frameworks. Specifically you need the files in the "locale" directory on your link line in Flash Builder - fds_rb.swc and fiber_rb.swc.
If you create a new Flex project and on the second panel ("Server Settings") select the "Java" type, and the LiveCycle Data Services ES radio button, you can then point to the default LCDS web application and Flash Builder will correctly set up all the libraries you need to do LCDS development in Flex.
Hope that helps.
Tom
Views
Replies
Total Likes
Thanks for the quick reply!
That does seem to have resolved the issue. If that was in the installation and configuration info, I did not find it.
Much obliged!
Views
Replies
Total Likes
Views
Likes
Replies