Hi,
We are using Flex 3.0 and Netweaver 7.3 to build a Flex Rich Islands concept. We have created a Flex Application and there are many Flex Modules which are loaded dynamically at run time as per user interaction, by the Flex ModuleLoader instance.
The problem that we are facing is that we are able to transfer data from Flex to Webdynpro using Events. However we are unable to transfer data back to Flex from Webdynpro. In one of our modules, we have a button which fires a webdynpro event. The data that we give to this event is going as per expectations. However the return data, is not coming as per expectation.
The skeleton of our Flex Application is given below.
Main Flex Application
http://www.adobe.com/2006/mxml"
initialize="initApp()" layout="absolute">
<mx:Script>
<![CDATA[
import sap.FlashIsland;
public function initApp(): void
{
FlashIsland.register(this);
}
]]>
</mx:Application>
Module
http://www.adobe.com/2006/mxml" width="100%" height="100%"
initialize="module1_initializeHandler(event)"
layout="absolute">
<mx:Script>
<![CDATA[
[Bindable]
public var strReservationNumber:String;
[Bindable]
public var strWorkshop:String;
protected function module1_initializeHandler(event:FlexEvent):void
{
trace("module1_initializeHandler(event) INVOKED");
}
private function ReservationNoSearchButton_clickHandler(eve:MouseEvent):void
{
trace("ReservationNoSearchButton_clickHandler Value of Reservation ="+resNo.text);
var abc:uint = int(resNo.text);
FlashIsland.fireEvent(this, 'ONENTER', {rsnum:abc});
}
]]>
</mx:Script>
<mx:Form id="DemandChangeScreen" includeInLayout="true" horizontalScrollPolicy="auto" verticalScrollPolicy="auto">
<mx:FormItem>
<mx:Grid>
<mx:GridRow width="100%">
<mx:GridItem>
<mx:Label text="Reservation No." textAlign="center"></mx:Label>
</mx:GridItem>
<mx:GridItem>
<mx:TextInput id ="resNo" text="" enabled="true" includeInLayout="true" editable="true" borderColor="black" borderStyle="solid"></mx:TextInput>
</mx:GridItem>
<mx:GridItem>
<mx:Button id="ReservationNoSearchButton" label="Search" enabled="true" includeInLayout="false" click="ReservationNoSearchButton_clickHandler(event)">
</mx:Button>
</mx:GridItem>
</mx:GridRow>
<mx:GridRow width="100%">
<mx:GridItem>
<mx:Label text="Workshop Name" textAlign="center"></mx:Label>
</mx:GridItem>
<mx:GridItem>
<mx:TextInput id="workshopCode" text="" enabled="true" includeInLayout="true" editable="true" borderColor="black" borderStyle="solid"></mx:TextInput>
</mx:GridItem>
</mx:GridRow>
</mx:Grid>
</mx:Form>
</mx:Module>
Any help on this regard would be appreciated. Why is the data not flowing from the Webdynpro Application to the Flex Application?
__________________________________
Regards,
Amardeep Verma