1 / 20

Integration between HTML 5 Drag & Drop and SAP ABAP HTTP ICF Services

Integration between HTML 5 Drag & Drop and SAP ABAP HTTP ICF Services. Alessandro Spadoni & Patrizia Rossi October 8th, 2011. Overview.

kyros
Download Presentation

Integration between HTML 5 Drag & Drop and SAP ABAP HTTP ICF Services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Integration betweenHTML 5 Drag & Drop and SAP ABAP HTTP ICF Services Alessandro Spadoni & Patrizia Rossi October8th, 2011

  2. Overview Html 5 has the ability to create drag & dropevents (DnD). The spec defines an event-based mechanism, JavaScript API, and additional markup for declaring that just about any type of element be draggable on a page.

  3. Drag & Dropevents There are number of events which are fired during various stages of the DnDoperation: • Dragstart

  4. Drag & Dropevents There are number of events which are fired during various stages of the DnDoperation: • Dragstart • Drag • Dragenter

  5. Drag & Dropevents There are number of events which are fired during various stages of the DnDoperation: • Dragstart • Drag • Dragenter • Dragover • Dragleave

  6. Drag & Dropevents There are number of events which are fired during various stages of the DnDoperation: • Dragstart • Drag • Dragenter • Dragover • Dragleave • Drop

  7. Drag & Dropevents There are number of events which are fired during various stages of the DnDoperation: • Dragstart • Drag • Dragenter • Dragover • Dragleave • Drop • Dragend

  8. Drag & Dropevents- Summary

  9. Integration DnD with Sap – Part I Next slide shows a first example of integrationbetweenHtml 5 and Sap. Given a draggableelement of type <table>, we can export his contents (DOM innerHTML) in excel format by calling a Sap SICF Service synchronously submitting an HTML form via POST method. SAP Service parses HTML code as XML using class CL_IXML and our custom class ZCL_HTML_TABLEPARSER. HTTP Response will return a binary Excel as Attachment.

  10. Integration DnD with Sap – Part II Next slide shows a second example of integration. Dragging an AIRLINE image in a target area: On Drop event we can do an AJAX request to Abap SICF Service. Response is a JSON Object containing SFlightsData.

  11. Additional Information Sources W3C Specification: http://dev.w3.org/html5/spec/dnd.html HTML5rocks: http://www.html5rocks.com/en/tutorials/dnd/basics/

  12. ThankYou! Alessandro Spadoni Sap Netweaver Consultant Technis Blu S.R.L. alessandro.spadoni@technisblu.it @alespad Patrizia Rossi Sap Netweaver Consultant Technis Blu S.R.L. patrizia.rossi@technisblu.it @patty_1982

More Related