Archive for the ‘FLEX 3.0’ Category
Adobe Flex and Zend Framework – watch this ‘cookbook’
I ran into these two articles – describing how to integrate Adobe Flex and the Zend Framework using AMF.
The first article describes how to build a Flex client that uses AMF services based on Zend Framework – click here.
The second article describes how you build the server side services in the Zend Framework – click here.
Get started with Flex and PHP using Zend
If you have experience with BlazeDS, WebORB or AMFPHP you might also want to have a look at the Zend Framework – Adobe and Zend have announced a collaboration for creating Flex applications powered by the Zend Framework – interested..? then just click here to get started.
Or have a look at the Programmer’s reference guide.
Goto and Learn
I just ran into this amazing site – containing a lot of good Adobe Flex Video code-samples/tutorials … Goto and Learn… click here to visit the site.
Defining a SAP Flash Islands candidate: MashUp’s using existing Adobe components
In the good old days when the SAP Portal was brand new and everybody discussed what kind of content would/could be available in there in the near future, there was always one example which was demo’ed again and again: The Stock ticker or The list of preferred stocks and related updates. Although we knew that most customers did not have this “need”, the demo continued to survive – and it took a while before there was a real proposal on serious content.
Will the same thing happen to SAP Flash Island?
…. will Google Maps examples and colour full Piechart examples be the “Stock ticker” for SAP Flash Island?
Maybe… or maybe not… maybe there are a lot of inspiration to find in the Adobe Flex community, because there are already a lot of exising components and applications available – and a lot of different API’s are already supported by Adobe Flex. The inspiration might lead you to a ‘non-stock-ticker’ for SAP Flash Island.
If you visit Adobe.com/devnet you might find some inspiration to a new mashup – which could be a SAP Flash Island candidate – just to mention a few:
Four ways to integrate Adobe Flex with SAP Netweaver
For quite some time now SAP and Adobe has presented different methods and initiatives you could use if you would like to integrate Adobe Flex and SAP Netweaver. I will try to summarize four different scenarios you could consider.
Using SAP Flash Island scenario
If you are using Netweaver 7.0 EhP1 or 7.1 then you can use the SAP Flash Island framework to integrate Adobe Flex with SAP (read more about SAP Flash Island here). The framework will create a ‘bridge’ between a SAP WebDynpro application and Flex. In order to ‘connect to this bridge/framework’ – you need to use a library from SAP in your Flex project – I have created a template project you can use for this purpose click here. Flash Islands are best suited for smaller applications/components – especially for areas where you are missing UI functionality in the WebDynpro, e.g. could be advanced graphics, interactive maps, graphs and statistics. Authentication, User and session management will be handled by the WebDynpro application.
Using SAP BSP and an embedded Adobe Flex component
So what do you do if your application is SAP is not based on WebDynpro – then you will be missing the framework and bridge which will make it easy to communicate with an Adobe Flex application – or ? Well in SAP BSP you can use <object><embed> … </embed><object> to include an SWF application in the application – read more here. But the data binding and event handling you will have to handle yourself in the BSP and in the Flex application. This kind of integration is also meant for smaller applications/components – especially for areas where you are missing UI functionality in SAP BSP, e.g. again could be advanced graphics, interactive maps, graphs and statistics. Authentication, User and session management will be handled by the SAP BSP application.
Using an HTTP REST backend application in SAP BSP – and an Adobe Flex RIA as Frontend
So… what do we do if we want to build a larger application in Adobe Flex (RIA) which should be integrated with SAP Netweaver? Well.. One possibility would be to build a set of backend services in SAP BSP using the HTTP REST approach/architecture (read more here). In SAP you will then be building normal BSP’s which will receive the input parameters in a HTTP request – and send the reply to the calling application as XML. These services can be called from Adobe Flex using the HTTP-request object. The work could be divided in two parts: the work regarding the design and implementation in SAP and the work with the design and implementation of the RIA using Adobe Flex. In between you need to describe and design the implementation of the interface. User and session management could be handled by the SAP BSP application if it’s running as a state full application. Regarding Authentication you need to consider how you would implement this in the application.
Using WebService enabled SAP BAPI’s as backend application – and an Adobe RIA as Frontend
In the last method you could consider using Webservice enabled BAPI’s instead of having to write BSP’s to communicate with the frontend. From Netweaver 6.40 and onwards all BAPI’s in SAP could be webservice enabled – and from 7.0 the functionality has been improved. And it’s possible to call these webservice enabled BAPI’s directly from Adobe Flex. You can use standard BAPI’s and/or make custom development for your own specific BAPI requests. User and session management should be handled by the Adobe Flex application. Regarding Authentication you need to consider how you would implement this in the application.
Developing rich Internet applications for SAP with Adobe Flex
Do you want to know/learn more about RIA for SAP? – then read this whitepaper from Adobe.
Find Flash security vulnerabilities with SWFScan
HP has released a free tool to help developers find and fix security vulnerabilities in applicationes developed with Adobe Flash.
From the HP Blog:
“The tool is the first of its kind to decompile applications developed with the Flash platform and perform static analysis to understand their behaviors. This helps developers without security backgrounds identify vulnerabilities hidden within the application which cannot be detected with dynamic analysis methods.”
Read the full article here
Google Analytics in SAP WebDynpro using SAP Flash Islands
If you are doing Web development using SAP WebDynpro in Netweaver – you might find the fact that you cannot use Javascript in the UI a little bit annoying… so what do you do if you would like to use e.g. Google Analytics to monitor the usage of your WebDynpro application…? in order to do this you need to add a small Javascripts snippet to your webpages, and this is not possible in WebDynpro… or…. (btw: the same Javascript idea applies to other kinds of third party app’s.. not only Google apps)
Well.. I ran into a couple of links – and it gave me a good idea, that might help you embed Google Analytics.
- First of all your development platform need to support SAP Flash Islands (min. SAP NetWeaver 7.0 EhP1)
- Then you need to goto Google Analytics Tracking for Adobe Flash – in order to get the analytics.swc file
- Create a Google Analytics account in order to get an account-id for tracking
- Create a new SAP Flash Island application (click here to see an SAP Flash Island template)- and add the analytics.swc to the Flex build path/Library path – the Island should not display much… maybe just a company logo etc.
- The new SAP Flash Island application should take an url as an input parameter and pass this url to Google Analytics using the Google Analytics Tracking tool for Flash/Flex (see example) using the command: ”
tracker.trackPageview( the input url parameter );" - Place the new SAP Flash Island application on each of the WebDynpro pages you want to track (the visual size of the Island could but small or covered by a company log – you just need it somewhere on the page) – and pass the actual url of the WebDynpro Application parameter to the Island. You actually just use SAP Flash Island to call Google Analytics, so from a display point of view the output of the Island is not that interesting in this example
- And you will be able to start collecting the WebDynpro Usage in Google Analytics
- Remember to check the terms of service
Happy programming…
Flex in a week – video training
I ran into this Adobe Flex video training site the other day…. and I find it really great. Especially if you have the Adobe Media Player installed on your PC – and adds the feed from the site.
The Adobe Flex video training site from contains nearly the same as you would find in other ‘How to get started’ courses/eLearning materials (and yes… it also includes excercises) – and it’s for free…
Want to learn more about SAP Flash Island?
With the introduction of SAP Flash Islands in Netweaver 7.0 EhP1- SAP will now also attract ressources from the Adobe Flex community together with SAP’s own developer community. Developers from both communities will be needed to make SAP Flash Islands a real success.
Flex developers will now have the possibility to use their existing skills from the Adobe Flex ‘world’ to develop and invent new SAP Flash Islands components which can be integrated easily with SAP Netweaver.
SAP developers on the other hand can focus on UI integration areas where advanced e.g graphical components are needed and use the new SAP Flash Islands from the Adobe community to complete this kind of task.
Read more at: