SlideShare a Scribd company logo
1 of 13
Sencha Touch Development
 with ]project-open[
1.   Live Demo: Try the app
     on our demo server
2.   Install: Install the app
     on your own ]po[ V4.0
     server
3.   Understanding the
     Anatomy of the app
4.   The ]po[ REST
     Interface
5.   Creating your own
     package and app
Live Demo:    The “Sencha Touch ]po[ Notes” app is
]po[ Notes     installed on the ]po[ demo servers:
App Demo
                – Point your iPhone, iPad or Android device to:
                  http://po40demo.project-open.net/
                  You can also use your desktop Google
                  Chrome or Apple Safari (no Firefox, IE or
                  Opera, sorry).
                – Select the last demo server “All ]
                  po[ Functionality”
                – Login as “Ben Bigboss”
                – Go to:
                  http://po40demo.project-open.net/senchatouch-note
Install:          Please download the latest ]po[ V4.0
]po[ Notes         installer from:
App Demo on        http://www.sourceforge.net/projects/project-op
your ]po[ V4.0
                  Please checkout and update the source
                   code:
                    – # cd /web/projop/packages/
                      # cvs update intranet-rest
                      # cvs checkout senchatouch-v211
                      # cvs checkout senchatouch-notes
                  Install the new packages in Admin ->
                   Package Manager -> Install packages and
                   select the senchatouch-* packages.
                  Point your browser (ONLY Google
                   Chrome or Apple Safari work!) to
                   http://<your_server>/senchatouch-notes/
Understandin    The entire Notes application consists of 406 lines of code.
                The code is found in /web/projop/packages/ (Linux) or
g the           C:/project-open/servers/projop/packages/ (Windows):
Anatomy of
the Notes App    /senchatouch-v211/                              The Sencha Touch Code from www.sencha.com
                 /senchatouch-notes/
                     – index.tcl + index.adp                      The index page of the app
                     – app.json                                   The application loader configuration
                     – app.js                                     The main page
                     – app/model/Note.js                          The definition of the “note” business object
                     – app/store/NoteStore.js                     The definition of a “table” storing a list of “notes”
                     – app/view/SplashPage.js                     A splash page with the ]po[ logo
                     – app/view/NoteList.js                       A page showing a list of notes
                     – app/view/NoteDetail.js                     A page showing notes details as a form
                     – app/view/NoteNavigationView.js             A container containing the previous two pages
                     – app/controller/NoteNavigationController.js The event controller
                     – resources/startup/project_open.250x91.gif A ]po[ logo


                Please use your favorite text editor and look at the files.
                Please go to http://docs.sencha.com/touch/2.1.1/ for Sencha help.
                We recommend the http://docs.sencha.com/touch/2.1.1/#!/video/list
                video about the “List Component” as a quick intro.
Understanding the Anatomy of the Notes App

Communication between Sencha Touch components and the ]po[ REST API

                                                                Mobile Client
                                                                Mobile Client                   Server
                                                                                                Server
      GUI View:                     Data:                           Network:       Server:
    Pages & Panels               Model & Store                      Interface     REST API

    NoteNavigationView
     NoteNavigationView                 NoteModel
                                         NoteModel                                           ]po[ Server
                                                                                              ]po[ Server
                             •   Id: integer
                             •   note: text
                             •   note_type_id: integer
          NoteList
           NoteList          •   note_status_id: integer
                             •   object_id: integer

           NoteDetail
            NoteDetail
                                          NoteStore
                                           NoteStore                 „Proxy“
                                                                      „Proxy“      REST
                                                                                    REST
                             •   Id: 12345                                      Interface
                                                                                 Interface
                             •   note: „asdf@asdf.com“
                             •   note_type_id: 11508
                             •   note_status_id: 11400
                             •   object_id: 624
                             •   Id: 12346
                             •   note: „http://www.test.com/“
                             •   note_type_id: 11510
                             •   note_status_id: 11400
                             •   object_id: 8868
                                 ...
]po[ REST     The ]po[ REST API supports a range
Interface:     of techniques suitable for
               sophisticated mobile applications:
Overview
               – Designed for seamless integration with
                 Sencha Ext-JS and Sencha Touch
               – Designed for network efficiency
               – No need for TCL development skill
               – Effectively eliminates the need for
                 server-side development

              There are two options available:
               – Generic REST API:
                 Allows you to generically Read, List,
                 Update and Create ]po[ objects and.
               – “REST Reports”:
                 Allows you to create custom data-
                 sources using SQL queries.
]po[ REST       Please go to /intranet-rest/ on your ]
Interface:       po[ V4.0 server:
                 Here you can set default permissions per
Explore the      object type and user profile
Generic REST
API             Click on one object type (for instance
                 „im_project“):
                 You will get the list of all projects in the
                 system.
                Edit the URL and replace „format=html“
                 with „format=json“:
                 All REST API pages accept a format=xxx
                 parameter in order to facilitate JavaScript
                 communications.
                Please read the REST API documentation
                 at http://<your_server>/intranet-rest/ and
                 on:
                 http://www.project-open.org/en/package_intran
]po[ REST          Works generically
Interface:          for all ]po[ object
                    types.
                   Allows for Read,
Generic REST        List, Update and
API                 Create operations.
Characteristics    Techniques for reducing network traffic:
                      – Load lists of objects instead of individual objects. The
                        „query=<sql>“ parameter allows you to limit the return
                        set (example: /intranet-rest/im_project?
                        query=project_status_id=76 for open projects)
                      – Use the ?columns=project_name,project_status_id
                        parameter to limit the columns returned by the query
                      – Use the ?gzip_p=1 parameter in order to force the
                        server to compress the data (requires a special
                        version of AOLserver)
                      – For very specific queries you can use „REST Reports“
                        (see next slide).
]po[ REST     „REST Reports“ allow you to deploy a SQL query
Interface:     and to receive the result set in JSON format
              Go to /intranet-reporting/ and click on the „REST My
               Timesheet Projects“ link for a sample report.
Explore ]
              Click on the “wrench” symbol beside the “REST My
po[ „REST
               Timesheet Projects” report in order to review the
Reports“       report SQL statement:
                – Please observe the %user_id% string in the SQL. ]po[
                  will replace this place holder with the user_id of the
                  current user. This is the only predefined variable.
                – You can add custom variables in the URL (for
                  example you can add “&project_status_id=76”) and
                  then use “%project_status_id” in the SQL.
              Append a „format=json“ behind the report URL in
               order to request JSON output.
              Instead of specifying the report_id in the URL
               /intranet-reporting/view?report_id=48769 you can
               use the report code of the report: /intranet-
               reporting/view?
               report_code=rest_my_timesheet_projects
              Append gzip_p=1 in order to force the server to
               compress the data (requires a special version of
               AOLserver)
]po[ REST          Allows you to access the results of any SQL query
Interface:          in JSON or XML format.
                   Does not require TCL or other software
                    development
REST Reports       No Update or Creation operations
Characteristics
]po[ REST Interface: Generic REST API vs. REST Reports




  Generic REST API                       REST Reports
                                          REST Reports
   Generic REST API
   Allows for Read, List, Update        Only allows for List operation
                                             Only allows for List operation
      Allows for Read, List, Update       Allows for complete control of
     and Create operations
      and Create operations                  Allows for complete control of
                                            the returned data
                                             the returned data
   Allows only limited control of
      Allows only limited control of      User needs to define and
                                             User needs to define and
     the returned data (no joins with
      the returned data (no joins with      deploy new SQL queries
                                             deploy new SQL queries
     other tables).
      other tables).
   No additional work required
      No additional work required
                                          => Use for maximum control of
                                             => Use for maximum control of
   => Use when performance is
      => Use when performance is            the returned data
                                             the returned data
     not that critical
      not that critical
Create a         A ]po[ package is a
                  container of code that
New Package       can be “mounted” at a
                  specific URL using the ]
                  po[ Package Manager.
                 Please create a new
                  package using the “APM”
                  ( or /acs-admin/apm/)
                  and click on “Create new
                  Package” at the end of
                  the page.
                 Fill our the next page
                  with the sample data at
                  the right. Please note
                  that Package Key and
                  Auto-mount URI are the
                  same by convention.
                 You need to uninstall (on
                  the package main page)
                  and re-install (APM ->
                  Install package) your
                  new package in order to
                  activate the package at
                  the Auto-mount URI. You
                  don’t need to restart the
                  server in this case.
Check That    Please go to
The New        /web/projop/packages/senchatouch-
Package is
Accessible
               notes/www/ and create a new file
               „index.html“ with the content „<h1>Hello
               World</h1>“.
              Point your browser to /senchatouch-notes/
               in order to see the page with the „Hello
               World“ text.

More Related Content

What's hot

Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorialnolimit797
 
Oaf development-guide
Oaf development-guideOaf development-guide
Oaf development-guide俊 朱
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaJignesh Aakoliya
 
Introduction to dataweave
Introduction to dataweaveIntroduction to dataweave
Introduction to dataweaveSwati Deshpande
 
Moving to Microsoft Visual Basic .NET
Moving to Microsoft Visual Basic .NETMoving to Microsoft Visual Basic .NET
Moving to Microsoft Visual Basic .NETV Sanchez
 
Towards Requirements Management Issues in Excel
Towards Requirements Management Issues in ExcelTowards Requirements Management Issues in Excel
Towards Requirements Management Issues in ExcelEccam
 
JSF basics
JSF basicsJSF basics
JSF basicsairbo
 
Accessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarAccessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarKeyur Shah
 
Custom Requirement Attributes
Custom Requirement AttributesCustom Requirement Attributes
Custom Requirement AttributesEccam
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0Buu Nguyen
 
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...Amit Singh
 
Client Object Model - SharePoint Extreme 2012
Client Object Model - SharePoint Extreme 2012Client Object Model - SharePoint Extreme 2012
Client Object Model - SharePoint Extreme 2012daniel plocker
 
Example User Stories Specification for ReqView
Example User Stories Specification for ReqViewExample User Stories Specification for ReqView
Example User Stories Specification for ReqViewEccam
 
Weblogic Server Overview Weblogic Scripting Tool
Weblogic Server Overview Weblogic Scripting ToolWeblogic Server Overview Weblogic Scripting Tool
Weblogic Server Overview Weblogic Scripting ToolGokhan Fazli Celik
 

What's hot (20)

Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorial
 
Oaf development-guide
Oaf development-guideOaf development-guide
Oaf development-guide
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company india
 
Introduction to dataweave
Introduction to dataweaveIntroduction to dataweave
Introduction to dataweave
 
Moving to Microsoft Visual Basic .NET
Moving to Microsoft Visual Basic .NETMoving to Microsoft Visual Basic .NET
Moving to Microsoft Visual Basic .NET
 
Dataweave
DataweaveDataweave
Dataweave
 
Jsf presentation
Jsf presentationJsf presentation
Jsf presentation
 
Towards Requirements Management Issues in Excel
Towards Requirements Management Issues in ExcelTowards Requirements Management Issues in Excel
Towards Requirements Management Issues in Excel
 
JSF basics
JSF basicsJSF basics
JSF basics
 
Accessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarAccessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup Webinar
 
Introduction to jsf 2
Introduction to jsf 2Introduction to jsf 2
Introduction to jsf 2
 
Custom Requirement Attributes
Custom Requirement AttributesCustom Requirement Attributes
Custom Requirement Attributes
 
Servlets lecture1
Servlets lecture1Servlets lecture1
Servlets lecture1
 
Asp net
Asp netAsp net
Asp net
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
 
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
 
Client Object Model - SharePoint Extreme 2012
Client Object Model - SharePoint Extreme 2012Client Object Model - SharePoint Extreme 2012
Client Object Model - SharePoint Extreme 2012
 
Example User Stories Specification for ReqView
Example User Stories Specification for ReqViewExample User Stories Specification for ReqView
Example User Stories Specification for ReqView
 
Weblogic Server Overview Weblogic Scripting Tool
Weblogic Server Overview Weblogic Scripting ToolWeblogic Server Overview Weblogic Scripting Tool
Weblogic Server Overview Weblogic Scripting Tool
 

Viewers also liked

]project-open[ Screenshots
]project-open[ Screenshots ]project-open[ Screenshots
]project-open[ Screenshots Klaus Hofeditz
 
Leading an open source project oscon2016
Leading an open source project oscon2016Leading an open source project oscon2016
Leading an open source project oscon2016Tessa Mero
 
]project-open[ CVS+ACL Permission Configuration
]project-open[ CVS+ACL Permission Configuration]project-open[ CVS+ACL Permission Configuration
]project-open[ CVS+ACL Permission ConfigurationKlaus Hofeditz
 
How to cover the whole Translation Project Workflow with one open-source syst...
How to cover the whole Translation Project Workflow with one open-source syst...How to cover the whole Translation Project Workflow with one open-source syst...
How to cover the whole Translation Project Workflow with one open-source syst...Qabiria
 
The Top 10 Free and Open Source Project Management Software For Your Small Bu...
The Top 10 Free and Open Source Project Management Software For Your Small Bu...The Top 10 Free and Open Source Project Management Software For Your Small Bu...
The Top 10 Free and Open Source Project Management Software For Your Small Bu...Capterra
 
Open Source Project Management Part 2
Open Source Project Management Part 2Open Source Project Management Part 2
Open Source Project Management Part 2Semen Arslan
 
Eclipse Mylyn Integration with ]project-open[
Eclipse Mylyn Integration with ]project-open[Eclipse Mylyn Integration with ]project-open[
Eclipse Mylyn Integration with ]project-open[Klaus Hofeditz
 
BFBM(7-2016) Productivity : Smarter Faster Better ေဟာေျပာပြဲ (မံုရြာ)
 BFBM(7-2016) Productivity : Smarter Faster Better ေဟာေျပာပြဲ (မံုရြာ) BFBM(7-2016) Productivity : Smarter Faster Better ေဟာေျပာပြဲ (မံုရြာ)
BFBM(7-2016) Productivity : Smarter Faster Better ေဟာေျပာပြဲ (မံုရြာ)Hub Myanmar Company Limited
 
20151016 Data Science For Project Managers
20151016 Data Science For Project Managers20151016 Data Science For Project Managers
20151016 Data Science For Project ManagersTze-Yiu Yong
 
]project-open[ Budget Planning and Tracking
]project-open[ Budget Planning and Tracking]project-open[ Budget Planning and Tracking
]project-open[ Budget Planning and TrackingKlaus Hofeditz
 
]project-open[ Timesheet Project Invoicing
]project-open[ Timesheet Project Invoicing]project-open[ Timesheet Project Invoicing
]project-open[ Timesheet Project InvoicingKlaus Hofeditz
 
]project-open[ on Amazon AWS
]project-open[ on Amazon AWS]project-open[ on Amazon AWS
]project-open[ on Amazon AWSKlaus Hofeditz
 
]project-open[ Workflow Developer Tutorial Part 4
]project-open[ Workflow Developer Tutorial Part 4]project-open[ Workflow Developer Tutorial Part 4
]project-open[ Workflow Developer Tutorial Part 4Klaus Hofeditz
 
Empxtrack The Complete HR Package
Empxtrack The Complete HR PackageEmpxtrack The Complete HR Package
Empxtrack The Complete HR PackageEmpxtrack Inc.
 
]project-open[ Roll Out Plan
]project-open[ Roll Out Plan]project-open[ Roll Out Plan
]project-open[ Roll Out PlanKlaus Hofeditz
 
The Other 99% of a Data Science Project
The Other 99% of a Data Science ProjectThe Other 99% of a Data Science Project
The Other 99% of a Data Science ProjectEugene Mandel
 
]project-open[ OSS Project Mangement
]project-open[ OSS Project Mangement]project-open[ OSS Project Mangement
]project-open[ OSS Project MangementKlaus Hofeditz
 
Introduction to JIRA & Agile Project Management
Introduction to JIRA & Agile Project ManagementIntroduction to JIRA & Agile Project Management
Introduction to JIRA & Agile Project ManagementDan Chuparkoff
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedSlideShare
 

Viewers also liked (20)

]project-open[ Screenshots
]project-open[ Screenshots ]project-open[ Screenshots
]project-open[ Screenshots
 
Leading an open source project oscon2016
Leading an open source project oscon2016Leading an open source project oscon2016
Leading an open source project oscon2016
 
]project-open[ CVS+ACL Permission Configuration
]project-open[ CVS+ACL Permission Configuration]project-open[ CVS+ACL Permission Configuration
]project-open[ CVS+ACL Permission Configuration
 
How to cover the whole Translation Project Workflow with one open-source syst...
How to cover the whole Translation Project Workflow with one open-source syst...How to cover the whole Translation Project Workflow with one open-source syst...
How to cover the whole Translation Project Workflow with one open-source syst...
 
The Top 10 Free and Open Source Project Management Software For Your Small Bu...
The Top 10 Free and Open Source Project Management Software For Your Small Bu...The Top 10 Free and Open Source Project Management Software For Your Small Bu...
The Top 10 Free and Open Source Project Management Software For Your Small Bu...
 
BFBM(12-2016) Business to business marketing
BFBM(12-2016) Business to business marketingBFBM(12-2016) Business to business marketing
BFBM(12-2016) Business to business marketing
 
Open Source Project Management Part 2
Open Source Project Management Part 2Open Source Project Management Part 2
Open Source Project Management Part 2
 
Eclipse Mylyn Integration with ]project-open[
Eclipse Mylyn Integration with ]project-open[Eclipse Mylyn Integration with ]project-open[
Eclipse Mylyn Integration with ]project-open[
 
BFBM(7-2016) Productivity : Smarter Faster Better ေဟာေျပာပြဲ (မံုရြာ)
 BFBM(7-2016) Productivity : Smarter Faster Better ေဟာေျပာပြဲ (မံုရြာ) BFBM(7-2016) Productivity : Smarter Faster Better ေဟာေျပာပြဲ (မံုရြာ)
BFBM(7-2016) Productivity : Smarter Faster Better ေဟာေျပာပြဲ (မံုရြာ)
 
20151016 Data Science For Project Managers
20151016 Data Science For Project Managers20151016 Data Science For Project Managers
20151016 Data Science For Project Managers
 
]project-open[ Budget Planning and Tracking
]project-open[ Budget Planning and Tracking]project-open[ Budget Planning and Tracking
]project-open[ Budget Planning and Tracking
 
]project-open[ Timesheet Project Invoicing
]project-open[ Timesheet Project Invoicing]project-open[ Timesheet Project Invoicing
]project-open[ Timesheet Project Invoicing
 
]project-open[ on Amazon AWS
]project-open[ on Amazon AWS]project-open[ on Amazon AWS
]project-open[ on Amazon AWS
 
]project-open[ Workflow Developer Tutorial Part 4
]project-open[ Workflow Developer Tutorial Part 4]project-open[ Workflow Developer Tutorial Part 4
]project-open[ Workflow Developer Tutorial Part 4
 
Empxtrack The Complete HR Package
Empxtrack The Complete HR PackageEmpxtrack The Complete HR Package
Empxtrack The Complete HR Package
 
]project-open[ Roll Out Plan
]project-open[ Roll Out Plan]project-open[ Roll Out Plan
]project-open[ Roll Out Plan
 
The Other 99% of a Data Science Project
The Other 99% of a Data Science ProjectThe Other 99% of a Data Science Project
The Other 99% of a Data Science Project
 
]project-open[ OSS Project Mangement
]project-open[ OSS Project Mangement]project-open[ OSS Project Mangement
]project-open[ OSS Project Mangement
 
Introduction to JIRA & Agile Project Management
Introduction to JIRA & Agile Project ManagementIntroduction to JIRA & Agile Project Management
Introduction to JIRA & Agile Project Management
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-Presented
 

Similar to Tutorial: Writing Sencha Touch Mobile Apps using ]project-open[

GeekAustin DevOps
GeekAustin DevOpsGeekAustin DevOps
GeekAustin DevOpsMatt Ray
 
API workshop: Introduction to APIs (TC Camp)
API workshop: Introduction to APIs (TC Camp)API workshop: Introduction to APIs (TC Camp)
API workshop: Introduction to APIs (TC Camp)Tom Johnson
 
Building Your First App with MongoDB
Building Your First App with MongoDBBuilding Your First App with MongoDB
Building Your First App with MongoDBMongoDB
 
In Act Developers Platform
In Act Developers PlatformIn Act Developers Platform
In Act Developers PlatformEris Ristemena
 
REST-API introduction for developers
REST-API introduction for developersREST-API introduction for developers
REST-API introduction for developersPatrick Savalle
 
Building Killer RESTful APIs with NodeJs
Building Killer RESTful APIs with NodeJsBuilding Killer RESTful APIs with NodeJs
Building Killer RESTful APIs with NodeJsSrdjan Strbanovic
 
Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18Pierre Joye
 
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...Tom Johnson
 
Hack Like It's 2013 (The Workshop)
Hack Like It's 2013 (The Workshop)Hack Like It's 2013 (The Workshop)
Hack Like It's 2013 (The Workshop)Itzik Kotler
 
Rails in the bowels
Rails in the bowelsRails in the bowels
Rails in the bowelsCreditas
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiTiago Knoch
 

Similar to Tutorial: Writing Sencha Touch Mobile Apps using ]project-open[ (20)

GeekAustin DevOps
GeekAustin DevOpsGeekAustin DevOps
GeekAustin DevOps
 
API workshop: Introduction to APIs (TC Camp)
API workshop: Introduction to APIs (TC Camp)API workshop: Introduction to APIs (TC Camp)
API workshop: Introduction to APIs (TC Camp)
 
My Saminar On Php
My Saminar On PhpMy Saminar On Php
My Saminar On Php
 
Building Your First App with MongoDB
Building Your First App with MongoDBBuilding Your First App with MongoDB
Building Your First App with MongoDB
 
Best node js course
Best node js courseBest node js course
Best node js course
 
In Act Developers Platform
In Act Developers PlatformIn Act Developers Platform
In Act Developers Platform
 
REST-API introduction for developers
REST-API introduction for developersREST-API introduction for developers
REST-API introduction for developers
 
Portal Presention
Portal PresentionPortal Presention
Portal Presention
 
Building Killer RESTful APIs with NodeJs
Building Killer RESTful APIs with NodeJsBuilding Killer RESTful APIs with NodeJs
Building Killer RESTful APIs with NodeJs
 
REST APIs
REST APIsREST APIs
REST APIs
 
Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18
 
unit1 part 1 sem4 php.docx
unit1 part 1 sem4 php.docxunit1 part 1 sem4 php.docx
unit1 part 1 sem4 php.docx
 
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
 
Alfresco Architecture
Alfresco ArchitectureAlfresco Architecture
Alfresco Architecture
 
Rhodes
RhodesRhodes
Rhodes
 
Hack Like It's 2013 (The Workshop)
Hack Like It's 2013 (The Workshop)Hack Like It's 2013 (The Workshop)
Hack Like It's 2013 (The Workshop)
 
Rails in the bowels
Rails in the bowelsRails in the bowels
Rails in the bowels
 
RoR guide_p1
RoR guide_p1RoR guide_p1
RoR guide_p1
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
 
Databasecentricapisonthecloudusingplsqlandnodejscon3153oow2016 160922021655
Databasecentricapisonthecloudusingplsqlandnodejscon3153oow2016 160922021655Databasecentricapisonthecloudusingplsqlandnodejscon3153oow2016 160922021655
Databasecentricapisonthecloudusingplsqlandnodejscon3153oow2016 160922021655
 

More from Klaus Hofeditz

]po[ Sencha File-Storage Specs
]po[ Sencha File-Storage Specs]po[ Sencha File-Storage Specs
]po[ Sencha File-Storage SpecsKlaus Hofeditz
 
The ]project-open[ Community
The ]project-open[ CommunityThe ]project-open[ Community
The ]project-open[ CommunityKlaus Hofeditz
 
]po[ Developers: Reporting, Indicators & Dashboards
]po[ Developers: Reporting, Indicators & Dashboards]po[ Developers: Reporting, Indicators & Dashboards
]po[ Developers: Reporting, Indicators & DashboardsKlaus Hofeditz
 
]project-open[ Data-Model 100511b
]project-open[ Data-Model 100511b]project-open[ Data-Model 100511b
]project-open[ Data-Model 100511bKlaus Hofeditz
 
Po workflow-tutorial-1-overview.100603
Po workflow-tutorial-1-overview.100603Po workflow-tutorial-1-overview.100603
Po workflow-tutorial-1-overview.100603Klaus Hofeditz
 
]project-open[ Reporting & Indicators Options
]project-open[ Reporting & Indicators Options]project-open[ Reporting & Indicators Options
]project-open[ Reporting & Indicators OptionsKlaus Hofeditz
 
]project-open[ Workflow Developer Tutorial Part 2
]project-open[ Workflow Developer Tutorial Part 2]project-open[ Workflow Developer Tutorial Part 2
]project-open[ Workflow Developer Tutorial Part 2Klaus Hofeditz
 
]project-open[ Reporting & Indicators Options
]project-open[ Reporting & Indicators Options]project-open[ Reporting & Indicators Options
]project-open[ Reporting & Indicators OptionsKlaus Hofeditz
 
]project-open[ Package Manager
]project-open[ Package Manager]project-open[ Package Manager
]project-open[ Package ManagerKlaus Hofeditz
 
]project-open[ My First Package
]project-open[ My First Package]project-open[ My First Package
]project-open[ My First PackageKlaus Hofeditz
 
]project-open[ Data-Model “Categories”
]project-open[ Data-Model “Categories”]project-open[ Data-Model “Categories”
]project-open[ Data-Model “Categories”Klaus Hofeditz
 

More from Klaus Hofeditz (11)

]po[ Sencha File-Storage Specs
]po[ Sencha File-Storage Specs]po[ Sencha File-Storage Specs
]po[ Sencha File-Storage Specs
 
The ]project-open[ Community
The ]project-open[ CommunityThe ]project-open[ Community
The ]project-open[ Community
 
]po[ Developers: Reporting, Indicators & Dashboards
]po[ Developers: Reporting, Indicators & Dashboards]po[ Developers: Reporting, Indicators & Dashboards
]po[ Developers: Reporting, Indicators & Dashboards
 
]project-open[ Data-Model 100511b
]project-open[ Data-Model 100511b]project-open[ Data-Model 100511b
]project-open[ Data-Model 100511b
 
Po workflow-tutorial-1-overview.100603
Po workflow-tutorial-1-overview.100603Po workflow-tutorial-1-overview.100603
Po workflow-tutorial-1-overview.100603
 
]project-open[ Reporting & Indicators Options
]project-open[ Reporting & Indicators Options]project-open[ Reporting & Indicators Options
]project-open[ Reporting & Indicators Options
 
]project-open[ Workflow Developer Tutorial Part 2
]project-open[ Workflow Developer Tutorial Part 2]project-open[ Workflow Developer Tutorial Part 2
]project-open[ Workflow Developer Tutorial Part 2
 
]project-open[ Reporting & Indicators Options
]project-open[ Reporting & Indicators Options]project-open[ Reporting & Indicators Options
]project-open[ Reporting & Indicators Options
 
]project-open[ Package Manager
]project-open[ Package Manager]project-open[ Package Manager
]project-open[ Package Manager
 
]project-open[ My First Package
]project-open[ My First Package]project-open[ My First Package
]project-open[ My First Package
 
]project-open[ Data-Model “Categories”
]project-open[ Data-Model “Categories”]project-open[ Data-Model “Categories”
]project-open[ Data-Model “Categories”
 

Recently uploaded

Mahindra Happinest Tathawade Pune Brochure.pdf
Mahindra Happinest Tathawade Pune Brochure.pdfMahindra Happinest Tathawade Pune Brochure.pdf
Mahindra Happinest Tathawade Pune Brochure.pdfBabyrudram
 
M3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
M3M The Line Brochure - Premium Investment Opportunity for Commercial VenturesM3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
M3M The Line Brochure - Premium Investment Opportunity for Commercial Venturessheltercareglobal
 
Greater Vancouver Realtors Statistics Package April 2024
Greater Vancouver Realtors Statistics Package April 2024Greater Vancouver Realtors Statistics Package April 2024
Greater Vancouver Realtors Statistics Package April 2024VickyAulakh1
 
Girls in Kalyanpuri }Delhi↫8447779280↬Escort Service. In Delhi NCR
Girls in Kalyanpuri }Delhi↫8447779280↬Escort Service. In Delhi NCRGirls in Kalyanpuri }Delhi↫8447779280↬Escort Service. In Delhi NCR
Girls in Kalyanpuri }Delhi↫8447779280↬Escort Service. In Delhi NCRasmaqueen5
 
Puravankara Mundhwa Pune E-Brochure.pdf
Puravankara Mundhwa Pune  E-Brochure.pdfPuravankara Mundhwa Pune  E-Brochure.pdf
Puravankara Mundhwa Pune E-Brochure.pdfManishSaxena95
 
Telibagh & Call Girls Lucknow - 450+ Call Girl Cash Payment 🎂 8923113531 🎪 Ne...
Telibagh & Call Girls Lucknow - 450+ Call Girl Cash Payment 🎂 8923113531 🎪 Ne...Telibagh & Call Girls Lucknow - 450+ Call Girl Cash Payment 🎂 8923113531 🎪 Ne...
Telibagh & Call Girls Lucknow - 450+ Call Girl Cash Payment 🎂 8923113531 🎪 Ne...gurkirankumar98700
 
Aparna Greenscapes Kompally Hyderabad E - Brochure.pdf
Aparna Greenscapes Kompally Hyderabad E - Brochure.pdfAparna Greenscapes Kompally Hyderabad E - Brochure.pdf
Aparna Greenscapes Kompally Hyderabad E - Brochure.pdffaheemali990101
 
Sankla East World Hadapsar Pune E-Brochure.pdf
Sankla East World Hadapsar Pune  E-Brochure.pdfSankla East World Hadapsar Pune  E-Brochure.pdf
Sankla East World Hadapsar Pune E-Brochure.pdfManishSaxena95
 
How to Build Multifamily and Laneway Suites in Toronto!! (feat. Expert Archi...
How to Build Multifamily and Laneway Suites  in Toronto!! (feat. Expert Archi...How to Build Multifamily and Laneway Suites  in Toronto!! (feat. Expert Archi...
How to Build Multifamily and Laneway Suites in Toronto!! (feat. Expert Archi...Volition Properties
 
9990771857 Call Girls in Dwarka Sector 6 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 6 Delhi (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 6 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 6 Delhi (Call Girls) Delhidelhimodel235
 
3D Architectural Rendering Company by Panoram CGI
3D Architectural Rendering Company by Panoram CGI3D Architectural Rendering Company by Panoram CGI
3D Architectural Rendering Company by Panoram CGIPanoram CGI
 
Pooja Mehta 9167673311 Get Warm Welcome By Andheri Escorts For Desired Fantasies
Pooja Mehta 9167673311 Get Warm Welcome By Andheri Escorts For Desired FantasiesPooja Mehta 9167673311 Get Warm Welcome By Andheri Escorts For Desired Fantasies
Pooja Mehta 9167673311 Get Warm Welcome By Andheri Escorts For Desired FantasiesPooja Nehwal
 
M3M 129 E Brochure Noida Expressway, Sector 129, Noida
M3M 129 E Brochure Noida Expressway, Sector 129, NoidaM3M 129 E Brochure Noida Expressway, Sector 129, Noida
M3M 129 E Brochure Noida Expressway, Sector 129, Noidasarak0han45400
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in DLF phase 3 | Gurgaon
FULL ENJOY 🔝 8264348440 🔝 Call Girls in DLF phase 3 | GurgaonFULL ENJOY 🔝 8264348440 🔝 Call Girls in DLF phase 3 | Gurgaon
FULL ENJOY 🔝 8264348440 🔝 Call Girls in DLF phase 3 | Gurgaonsoniya singh
 
Call Girls In Vasant Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Vasant Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Vasant Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Vasant Vihar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
2k Shot Call girls Karol Bagh Delhi 9205541914
2k Shot Call girls Karol Bagh Delhi 92055419142k Shot Call girls Karol Bagh Delhi 9205541914
2k Shot Call girls Karol Bagh Delhi 9205541914Delhi Call girls
 
Premium Villa Projects in Sarjapur Road Bengaluru
Premium Villa Projects in Sarjapur Road BengaluruPremium Villa Projects in Sarjapur Road Bengaluru
Premium Villa Projects in Sarjapur Road BengaluruShivaSeo3
 
Call Girls in Noida Sector 11 Noida 💯Call Us 🔝 9582086666 🔝 South Delhi Escor...
Call Girls in Noida Sector 11 Noida 💯Call Us 🔝 9582086666 🔝 South Delhi Escor...Call Girls in Noida Sector 11 Noida 💯Call Us 🔝 9582086666 🔝 South Delhi Escor...
Call Girls in Noida Sector 11 Noida 💯Call Us 🔝 9582086666 🔝 South Delhi Escor...delhimodel235
 
Call Girls In Laxmi Nagar Delhi +91-8447779280! !Best Woman Seeking Man Escor...
Call Girls In Laxmi Nagar Delhi +91-8447779280! !Best Woman Seeking Man Escor...Call Girls In Laxmi Nagar Delhi +91-8447779280! !Best Woman Seeking Man Escor...
Call Girls In Laxmi Nagar Delhi +91-8447779280! !Best Woman Seeking Man Escor...asmaqueen5
 
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhidelhimodel235
 

Recently uploaded (20)

Mahindra Happinest Tathawade Pune Brochure.pdf
Mahindra Happinest Tathawade Pune Brochure.pdfMahindra Happinest Tathawade Pune Brochure.pdf
Mahindra Happinest Tathawade Pune Brochure.pdf
 
M3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
M3M The Line Brochure - Premium Investment Opportunity for Commercial VenturesM3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
M3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
 
Greater Vancouver Realtors Statistics Package April 2024
Greater Vancouver Realtors Statistics Package April 2024Greater Vancouver Realtors Statistics Package April 2024
Greater Vancouver Realtors Statistics Package April 2024
 
Girls in Kalyanpuri }Delhi↫8447779280↬Escort Service. In Delhi NCR
Girls in Kalyanpuri }Delhi↫8447779280↬Escort Service. In Delhi NCRGirls in Kalyanpuri }Delhi↫8447779280↬Escort Service. In Delhi NCR
Girls in Kalyanpuri }Delhi↫8447779280↬Escort Service. In Delhi NCR
 
Puravankara Mundhwa Pune E-Brochure.pdf
Puravankara Mundhwa Pune  E-Brochure.pdfPuravankara Mundhwa Pune  E-Brochure.pdf
Puravankara Mundhwa Pune E-Brochure.pdf
 
Telibagh & Call Girls Lucknow - 450+ Call Girl Cash Payment 🎂 8923113531 🎪 Ne...
Telibagh & Call Girls Lucknow - 450+ Call Girl Cash Payment 🎂 8923113531 🎪 Ne...Telibagh & Call Girls Lucknow - 450+ Call Girl Cash Payment 🎂 8923113531 🎪 Ne...
Telibagh & Call Girls Lucknow - 450+ Call Girl Cash Payment 🎂 8923113531 🎪 Ne...
 
Aparna Greenscapes Kompally Hyderabad E - Brochure.pdf
Aparna Greenscapes Kompally Hyderabad E - Brochure.pdfAparna Greenscapes Kompally Hyderabad E - Brochure.pdf
Aparna Greenscapes Kompally Hyderabad E - Brochure.pdf
 
Sankla East World Hadapsar Pune E-Brochure.pdf
Sankla East World Hadapsar Pune  E-Brochure.pdfSankla East World Hadapsar Pune  E-Brochure.pdf
Sankla East World Hadapsar Pune E-Brochure.pdf
 
How to Build Multifamily and Laneway Suites in Toronto!! (feat. Expert Archi...
How to Build Multifamily and Laneway Suites  in Toronto!! (feat. Expert Archi...How to Build Multifamily and Laneway Suites  in Toronto!! (feat. Expert Archi...
How to Build Multifamily and Laneway Suites in Toronto!! (feat. Expert Archi...
 
9990771857 Call Girls in Dwarka Sector 6 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 6 Delhi (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 6 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 6 Delhi (Call Girls) Delhi
 
3D Architectural Rendering Company by Panoram CGI
3D Architectural Rendering Company by Panoram CGI3D Architectural Rendering Company by Panoram CGI
3D Architectural Rendering Company by Panoram CGI
 
Pooja Mehta 9167673311 Get Warm Welcome By Andheri Escorts For Desired Fantasies
Pooja Mehta 9167673311 Get Warm Welcome By Andheri Escorts For Desired FantasiesPooja Mehta 9167673311 Get Warm Welcome By Andheri Escorts For Desired Fantasies
Pooja Mehta 9167673311 Get Warm Welcome By Andheri Escorts For Desired Fantasies
 
M3M 129 E Brochure Noida Expressway, Sector 129, Noida
M3M 129 E Brochure Noida Expressway, Sector 129, NoidaM3M 129 E Brochure Noida Expressway, Sector 129, Noida
M3M 129 E Brochure Noida Expressway, Sector 129, Noida
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in DLF phase 3 | Gurgaon
FULL ENJOY 🔝 8264348440 🔝 Call Girls in DLF phase 3 | GurgaonFULL ENJOY 🔝 8264348440 🔝 Call Girls in DLF phase 3 | Gurgaon
FULL ENJOY 🔝 8264348440 🔝 Call Girls in DLF phase 3 | Gurgaon
 
Call Girls In Vasant Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Vasant Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Vasant Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Vasant Vihar Delhi 💯Call Us 🔝8264348440🔝
 
2k Shot Call girls Karol Bagh Delhi 9205541914
2k Shot Call girls Karol Bagh Delhi 92055419142k Shot Call girls Karol Bagh Delhi 9205541914
2k Shot Call girls Karol Bagh Delhi 9205541914
 
Premium Villa Projects in Sarjapur Road Bengaluru
Premium Villa Projects in Sarjapur Road BengaluruPremium Villa Projects in Sarjapur Road Bengaluru
Premium Villa Projects in Sarjapur Road Bengaluru
 
Call Girls in Noida Sector 11 Noida 💯Call Us 🔝 9582086666 🔝 South Delhi Escor...
Call Girls in Noida Sector 11 Noida 💯Call Us 🔝 9582086666 🔝 South Delhi Escor...Call Girls in Noida Sector 11 Noida 💯Call Us 🔝 9582086666 🔝 South Delhi Escor...
Call Girls in Noida Sector 11 Noida 💯Call Us 🔝 9582086666 🔝 South Delhi Escor...
 
Call Girls In Laxmi Nagar Delhi +91-8447779280! !Best Woman Seeking Man Escor...
Call Girls In Laxmi Nagar Delhi +91-8447779280! !Best Woman Seeking Man Escor...Call Girls In Laxmi Nagar Delhi +91-8447779280! !Best Woman Seeking Man Escor...
Call Girls In Laxmi Nagar Delhi +91-8447779280! !Best Woman Seeking Man Escor...
 
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
 

Tutorial: Writing Sencha Touch Mobile Apps using ]project-open[

  • 1. Sencha Touch Development with ]project-open[ 1. Live Demo: Try the app on our demo server 2. Install: Install the app on your own ]po[ V4.0 server 3. Understanding the Anatomy of the app 4. The ]po[ REST Interface 5. Creating your own package and app
  • 2. Live Demo:  The “Sencha Touch ]po[ Notes” app is ]po[ Notes installed on the ]po[ demo servers: App Demo – Point your iPhone, iPad or Android device to: http://po40demo.project-open.net/ You can also use your desktop Google Chrome or Apple Safari (no Firefox, IE or Opera, sorry). – Select the last demo server “All ] po[ Functionality” – Login as “Ben Bigboss” – Go to: http://po40demo.project-open.net/senchatouch-note
  • 3. Install:  Please download the latest ]po[ V4.0 ]po[ Notes installer from: App Demo on http://www.sourceforge.net/projects/project-op your ]po[ V4.0  Please checkout and update the source code: – # cd /web/projop/packages/ # cvs update intranet-rest # cvs checkout senchatouch-v211 # cvs checkout senchatouch-notes  Install the new packages in Admin -> Package Manager -> Install packages and select the senchatouch-* packages.  Point your browser (ONLY Google Chrome or Apple Safari work!) to http://<your_server>/senchatouch-notes/
  • 4. Understandin The entire Notes application consists of 406 lines of code. The code is found in /web/projop/packages/ (Linux) or g the C:/project-open/servers/projop/packages/ (Windows): Anatomy of the Notes App  /senchatouch-v211/ The Sencha Touch Code from www.sencha.com  /senchatouch-notes/ – index.tcl + index.adp The index page of the app – app.json The application loader configuration – app.js The main page – app/model/Note.js The definition of the “note” business object – app/store/NoteStore.js The definition of a “table” storing a list of “notes” – app/view/SplashPage.js A splash page with the ]po[ logo – app/view/NoteList.js A page showing a list of notes – app/view/NoteDetail.js A page showing notes details as a form – app/view/NoteNavigationView.js A container containing the previous two pages – app/controller/NoteNavigationController.js The event controller – resources/startup/project_open.250x91.gif A ]po[ logo Please use your favorite text editor and look at the files. Please go to http://docs.sencha.com/touch/2.1.1/ for Sencha help. We recommend the http://docs.sencha.com/touch/2.1.1/#!/video/list video about the “List Component” as a quick intro.
  • 5. Understanding the Anatomy of the Notes App Communication between Sencha Touch components and the ]po[ REST API Mobile Client Mobile Client Server Server GUI View: Data: Network: Server: Pages & Panels Model & Store Interface REST API NoteNavigationView NoteNavigationView NoteModel NoteModel ]po[ Server ]po[ Server • Id: integer • note: text • note_type_id: integer NoteList NoteList • note_status_id: integer • object_id: integer NoteDetail NoteDetail NoteStore NoteStore „Proxy“ „Proxy“ REST REST • Id: 12345 Interface Interface • note: „asdf@asdf.com“ • note_type_id: 11508 • note_status_id: 11400 • object_id: 624 • Id: 12346 • note: „http://www.test.com/“ • note_type_id: 11510 • note_status_id: 11400 • object_id: 8868 ...
  • 6. ]po[ REST  The ]po[ REST API supports a range Interface: of techniques suitable for sophisticated mobile applications: Overview – Designed for seamless integration with Sencha Ext-JS and Sencha Touch – Designed for network efficiency – No need for TCL development skill – Effectively eliminates the need for server-side development  There are two options available: – Generic REST API: Allows you to generically Read, List, Update and Create ]po[ objects and. – “REST Reports”: Allows you to create custom data- sources using SQL queries.
  • 7. ]po[ REST  Please go to /intranet-rest/ on your ] Interface: po[ V4.0 server: Here you can set default permissions per Explore the object type and user profile Generic REST API  Click on one object type (for instance „im_project“): You will get the list of all projects in the system.  Edit the URL and replace „format=html“ with „format=json“: All REST API pages accept a format=xxx parameter in order to facilitate JavaScript communications.  Please read the REST API documentation at http://<your_server>/intranet-rest/ and on: http://www.project-open.org/en/package_intran
  • 8. ]po[ REST  Works generically Interface: for all ]po[ object types.  Allows for Read, Generic REST List, Update and API Create operations. Characteristics  Techniques for reducing network traffic: – Load lists of objects instead of individual objects. The „query=<sql>“ parameter allows you to limit the return set (example: /intranet-rest/im_project? query=project_status_id=76 for open projects) – Use the ?columns=project_name,project_status_id parameter to limit the columns returned by the query – Use the ?gzip_p=1 parameter in order to force the server to compress the data (requires a special version of AOLserver) – For very specific queries you can use „REST Reports“ (see next slide).
  • 9. ]po[ REST  „REST Reports“ allow you to deploy a SQL query Interface: and to receive the result set in JSON format  Go to /intranet-reporting/ and click on the „REST My Timesheet Projects“ link for a sample report. Explore ]  Click on the “wrench” symbol beside the “REST My po[ „REST Timesheet Projects” report in order to review the Reports“ report SQL statement: – Please observe the %user_id% string in the SQL. ]po[ will replace this place holder with the user_id of the current user. This is the only predefined variable. – You can add custom variables in the URL (for example you can add “&project_status_id=76”) and then use “%project_status_id” in the SQL.  Append a „format=json“ behind the report URL in order to request JSON output.  Instead of specifying the report_id in the URL /intranet-reporting/view?report_id=48769 you can use the report code of the report: /intranet- reporting/view? report_code=rest_my_timesheet_projects  Append gzip_p=1 in order to force the server to compress the data (requires a special version of AOLserver)
  • 10. ]po[ REST  Allows you to access the results of any SQL query Interface: in JSON or XML format.  Does not require TCL or other software development REST Reports  No Update or Creation operations Characteristics
  • 11. ]po[ REST Interface: Generic REST API vs. REST Reports Generic REST API REST Reports REST Reports Generic REST API  Allows for Read, List, Update  Only allows for List operation Only allows for List operation Allows for Read, List, Update  Allows for complete control of and Create operations and Create operations Allows for complete control of the returned data the returned data  Allows only limited control of Allows only limited control of  User needs to define and User needs to define and the returned data (no joins with the returned data (no joins with deploy new SQL queries deploy new SQL queries other tables). other tables).  No additional work required No additional work required  => Use for maximum control of => Use for maximum control of  => Use when performance is => Use when performance is the returned data the returned data not that critical not that critical
  • 12. Create a  A ]po[ package is a container of code that New Package can be “mounted” at a specific URL using the ] po[ Package Manager.  Please create a new package using the “APM” ( or /acs-admin/apm/) and click on “Create new Package” at the end of the page.  Fill our the next page with the sample data at the right. Please note that Package Key and Auto-mount URI are the same by convention.  You need to uninstall (on the package main page) and re-install (APM -> Install package) your new package in order to activate the package at the Auto-mount URI. You don’t need to restart the server in this case.
  • 13. Check That  Please go to The New /web/projop/packages/senchatouch- Package is Accessible notes/www/ and create a new file „index.html“ with the content „<h1>Hello World</h1>“.  Point your browser to /senchatouch-notes/ in order to see the page with the „Hello World“ text.