Making OData requests from jquery and/or the Lianja HTML5 Client in a Web App is extremely straightforward and simple.



Similar documents
The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Importing TSM Data into Microsoft Excel using Microsoft Query

The Great Office 365 Adventure

GOA365: The Great Office 365 Adventure

Database Linker Tutorial

Do I need to install anything on my computer to use the VC?

Quick Start Guide Mobile Entrée 4

How is it helping? PragmatiQa XOData : Overview with an Example. P a g e Doc Version : 1.3

Create a New Database in Access 2010

1. To start Installation: To install the reporting tool, copy the entire contents of the zip file to a directory of your choice. Run the exe.

SBBWU PROXY SETTING IT CENTRE How to Set a Proxy Server in All Major Internet Browsers for Windows

Contents. 2 Alfresco API Version 1.0

Migrating helpdesk to a new server

Develop highly interactive web charts with SAS

General principles and architecture of Adlib and Adlib API. Petra Otten Manager Customer Support

DreamFactory & Modus Create Case Study

Connecticut Hazardous Waste Manifests Database

ISL Online Integration Manual

Paxera Uploader Basic Troubleshooting

DiskPulse DISK CHANGE MONITOR

Creating a Fiori Starter Application for sales order tracking

Salesforce Opportunities Portlet Documentation v2

SAV2013: The Great SharePoint 2013 App Venture

Generating Open For Business Reports with the BIRT RCP Designer

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

Traitware Authentication Service Integration Document

Trial version of GADD Dashboards Builder

TaskCentre v4.5 Run Crystal Report Tool White Paper

Ricardo Perdigao, Solutions Architect Edsel Garcia, Principal Software Engineer Jean Munro, Senior Systems Engineer Dan Mitchell, Principal Systems

TRIM: Web Tool. Web Address The TRIM web tool can be accessed at:

Configuring Internet Explorer for CareLogic

2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.

Cloud Elements! Events Management BETA! API Version 2.0

Paging, sorting, and searching using EF Code first and MVC 3. Introduction. Installing AdventureWorksLT database. Creating the MVC 3 web application

Using ELM Reports in WhatsUp Gold. This guide provides information about configuring ELM reports in WhatsUp Gold v15.0

Sage CRM. Sage CRM 2016 R1 Mobile Guide

Configuration Guide - OneDesk to SalesForce Connector

Excel Reports and Macros

SnapLogic Tutorials Document Release: October 2013 SnapLogic, Inc. 2 West 5th Ave, Fourth Floor San Mateo, California U.S.A.

Your Mission: Use F-Response Cloud Connector to access Google Apps for Business Drive Cloud Storage

Installing NetSupport School for use with the NetSupport School Student extension for Google Chrome

Upgrading a computer to Windows 10 with PetLinx

Up and Running with LabVIEW Web Services

Art of Code Front-end Web Development Training Program

Resources You can find more resources for Sync & Save at our support site:

Working with Indicee Elements

ADS2013: App Development with SharePoint 2013

Installing Logos SSL Certificates on Mobile Devices

Creating a Complete Backup of Shelby v5 Data

Enabling REST Services with SAP PI. Michael Le Peter Ha

Getting Started with Elastic DB Database Tools with Azure SQL

Tips and Tricks SAGE ACCPAC INTELLIGENCE

Administrator s Guide

Specify the location of an HTML control stored in the application repository. See Using the XPath search method, page 2.

As on other History Notes tabs, toolbar buttons are available to add and delete notes.

Manual Wireless Extender Setup Instructions. Before you start, there are two things you will need. 1. Laptop computer 2. Router s security key

INTRODUCING ORACLE APPLICATION EXPRESS. Keywords: database, Oracle, web application, forms, reports

The Welcome screen displays each time you log on to PaymentNet; it serves as your starting point or home screen.

CCC Report Center Overview Accessing the CCC Report Center Accessing, Working With, and Running Reports Customizing Reports...

You can find the installer for the +Cloud Application on your SanDisk flash drive.

Decision Support AITS University Administration. EDDIE 4.1 User Guide

T320 E-business technologies: foundations and practice

Resco CRM Server Guide. How to integrate Resco CRM with other back-end systems using web services

Creating an itunes App Store account without a credit card

Chapter 5 Configuring the Remote Access Web Portal

Data Domain Profiling and Data Masking for Hadoop

Business mail 1 MS OUTLOOK CONFIGURATION... 2

An Oracle White Paper June RESTful Web Services for the Oracle Database Cloud - Multitenant Edition

NetBrain Enterprise Edition 6.0a NetBrain Server Backup and Failover Setup

Using Ad-Hoc Reporting

Query, Read, Create and Update CLOUD FOR CUSTOMER ODATA SERVICE QUERY, READ, CREATE AND UPDATE

The LSUHSC N.O. Archive

Getting Started with AWS. Hosting a Static Website

Analytics Canvas Tutorial: Cleaning Website Referral Traffic Data. N m o d a l S o l u t i o n s I n c. A l l R i g h t s R e s e r v e d

The Query Builder: The Swiss Army Knife of SAS Enterprise Guide

Outlook Express POP Instructions - Bloomsburg University Students

Using Internet or Windows Explorer to Upload Your Site

Tableau Online. Understanding Data Updates

Table of Contents. Welcome Login Password Assistance Self Registration Secure Mail Compose Drafts...

File Share Navigator Online 1

HTSQL is a comprehensive navigational query language for relational databases.

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

SAS Visual Analytics 7.2 for SAS Cloud: Quick-Start Guide

SellerDeck 2014 Responsive Design Guide

Configuring browser settings (Internet Explorer and Google Chrome) for Bug Club via a Group Policy

ORACLE BUSINESS INTELLIGENCE WORKSHOP

Visualizing Big Data. Activity 1: Volume, Variety, Velocity

Installation and Usage Guide

Sisense. Product Highlights.

QualysGuard WAS. Getting Started Guide Version 3.3. March 21, 2014

Search help. More on Office.com: images templates

How to Reinstall SQL Server 2005

How To Install Amyshelf On Windows 2000 Or Later

Dostek Remote Support Guide

Super Pro Net TM Network Key Installation and Operation

Federal Employee Viewpoint Survey Online Reporting and Analysis Tool

Departmental User Dashboard

Vendor: Crystal Decisions Product: Crystal Reports and Crystal Enterprise

Transcription:

Lianja Cloud Server supports OData-compatible data access. The Server handles ODBC connections as well as HTTP requests using OData URIs. In this article I will show you how to use Lianja Cloud Server with OData URIs that will allow you to perform CRUD (Create, Read, Update and Delete) operations on your data. Making OData requests from jquery and/or the Lianja HTML5 Client in a Web App is extremely straightforward and simple. Unlike other OData implementations, Lianja Cloud Server OData services does not require any server-side configuration of web services. So let's get started and see what we can do with this new OData functionality. When testing your OData queries I find it useful to be able to just type the URIs in the address bar of Google Chrome. Any JSON data returned from the OData request is displayed in the browser tab (unlike IE which prompts you to save the JSON file into downloads). First thing we need to do is make sure that we have enabled HTTP services and OData Read Services through the Lianja Server Manager which you will find in the Control Panel on Windows. 1/5

Now fire up Chrome on your desktop and type the following into the address bar. http://127.0.0.1/odata/southwind/customers You should now see JSON format output in the browser window showing all the "customer" records from the "southwind" database. Now let's just select the top 5 records and also only request the customerid and contactname 2/5

columns using the $top and $select arguments. We can filter what data is returned using the $filter argument. Note that in OData all arguments begin with a $ and are concatenated together using & just like a normal web page URI. Notice that when we specify conditions e.g. for the $filter in this case we must specify these in OData-style: 3/5

= =!= and or + * / % - eq ge ne and or add mul div mod sub The Lianja SQL Server will generate SQL behind the scenes and optimize the query based on what indexes exist on the specified table. We can speed things up by specifying a "value selector" on the table. /odata/southwind/customers('a') The OData server will use heuristics to determine the column that 'A' is referring to in the 'customers' table. If the column customersid exists it wll be used, if that does not exist and the table is a 'collection' i.e. ends with a 's', the 's' will be removed and the column customerid will be looked up. In many cases this will just work but there are occasions where for example you may want to select all customers where the 'contactname' starts with 'A'. This is accomplished in the following manner. /odata/southwind/customers('a', contactname) There are a range of arguments that can be postfixed onto the URI like this. /odata/southwind/customers('a')?$skip=10&$top=5 The following arguments are available. $top $skip $filter $select $rowid $count Selects the specified number $top=10 of records Skips a number of selected $skip=50 records Selects only those records$filter=contactname that match the specified eq 'A'filter and amount gt 0 Selects only the specified$select=customerid,contactname columns (or expressions) Add the unique rowid into$rowid the output ( rowid ) which can be used to updat Don't return any data just $count tell me how many records would have been select 4/5

$metadata $format $format=jsongrid $format=jsonarray $format=ado $format=excel $format=attachment $format=html $format=csv $format=img $orderby $callback $sql $nocount Returns metadata describing $metadata the columns in the table; name, type, width an The output format $format=json Specify a column or expression $orderby=contactname that the data should be ordered by Specify a callback function $callback=your_javascript_function that will wrap the data returned. This is used with Evaluate a SQL SELECT $sql=select statement directly * from and customers return the results. Note that Don't return the count member $nocount which details the total number of rows that To query for the metadata for a table use the $metadata argument. 5/5