+ All Categories
Home > Documents > Visual DataFlex AJAX Library -...

Visual DataFlex AJAX Library -...

Date post: 25-Dec-2018
Category:
Upload: truongnhu
View: 229 times
Download: 0 times
Share this document with a friend
46
Visual DataFlex AJAX Library Building Real-Life Applications with the Visual DataFlex AJAX Library Harm Wibier (Data Access Europe)
Transcript
Page 1: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Visual DataFlex AJAX Library

Building Real-Life Applications with the Visual DataFlex AJAX Library

Harm Wibier (Data Access Europe)

Page 2: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Overview

• What's latest?

– Version 2.2

– Version 2.3

• Real-Life Applications

– Energiewacht

– ParaNICE

– Schuitemaker

– Several others

Page 3: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Previous releases

• 2.0 for Visual DataFlex 2009 - 15.0

– Rebuild of the AJAX Library

– New themes

• 2.1 for Visual DataFlex 2009 – 15.1

– JSON Calls

– TreeView

Page 4: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

WHAT'S LATEST?

Looking back at the 2010 releases of the AJAX Library.

Page 5: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

AJAX LIBRARY 2.2

About the AJAX Library 2.2 for Visual DataFlex 2010 - 16.0.

Page 6: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

AJAX Library 2.2

• Visual DataFlex 2010 – 16.0

– Updated theme’s

– Performance improvements using CSS Sprites

– Improved DDO support

• Supports more complex DDO structures

• Improved constraint support

– Clear All

– Improved AJAX API's

– Expressions

– Error details

Page 7: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Updated theme

Page 8: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Updated theme

Page 9: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Custom AJAX Calls

• vdf.ajax.HttpRequest

– Plain HTTP requests

• vdf.ajax.SoapCall

– Call SOAP Web Services

• vdf.ajax.JSONCall

– Call JSON Web Services

• vdf.ajax.VdfCall

– Call methods in web ojbects

Page 10: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

VdfCall

• Improved API

• Method of the vdf.core.Form

JavaScript: var oForm = vdf.getForm("products_form");

oForm.vdfCall("get_AmountOrdered", [ 95 ], handleDetermineAmount);

VDF (inside web object for products form): { Published = True }

{ Description = "" }

Function AmountOrdered Integer iProductId Returns Integer

Function_Return iFound

End_Function

Page 11: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

DbCall

• Data bound variant of the VdfCall

• Method of the vdf.core.Form

JavaScript: var oForm = vdf.getForm("orders_form");

oForm.dbCall("get_MarkShipped", [ ], handleMarkShipped);

VDF (inside web object for orders form): { Published = True }

{ Description = "" }

Function MarkShipped Returns Boolean

Set Field_Changed_Value of oOrders_DD Field Orders.ShippedDate to

(CurrentDateTime())

Function_Return True

End_Function

Page 12: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Expressions

• Published method

– Inside WO

– Returns value

– Uses data in the buffer

• Bind fields to the expression method

– Lookup fields

– Regular data entry fields

Page 13: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Expression API

HTML: <input type="text" value="" name="e:EmployeeFullName" title="Employee

Name" vdfServerTable="employee" />

VDF (inside web object for the form): { Published = True }

{ Description = "" }

Function EmployeeFullName Returns String

Function_Return (Trim(Employee.FirstName * Employee.LastName))

End_Function

Page 14: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

AJAX LIBRARY 2.3

The new release for Visual DataFlex 16.1.

Page 15: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

AJAX Library 2.3

• Visual DataFlex 16.1

– New SpinForm control

– Support for Internet Explorer 9

– Support for Mozilla FireFox 4

– Several bugfixes

• Beta already available…

Page 16: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

vdf.deo.SpinForm

• Increment and decrement values

– Keyboard control

• Cursor up and down

– Mouse control

– Intuitive fast spin when kept down

– Numeric and date fields

– Configurable step

– Respects masks

– Simple API

Page 17: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Simple API

HTML:

<input vdfControlType="vdf.deo.SpinForm" type="text"

value="1000" name="customer__credit_limit" size="20" />

HTML:

<input vdfControlType="vdf.deo.SpinForm" class="Data"

type="text" value="" name="datefield" vdfDataType="date"

vdfMaskType="dat" vdfMask="dd Mmm, yyyy" />

Page 18: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Example

• http://localhost/AJAXWines23/

Page 19: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

ENERGIEWACHT

Real world example.

Page 20: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

The company

• Energiewacht

– Installation and maintenance of heating and hot water installations

– Retail and business market

– 130.000 customers

– 90 service technicians

• Already worked with DataFlex and Visual DataFlex

Page 21: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

The application

• In-house application

• Resource management and planning

– Technicians

– Shifts

– Area's

– Capacity

• Regular maintenance

• Troubleshooting

– Vacations

Page 22: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Specifics

• Intranet only

– Full web application

– Big application (30GB SQL Database)

• Custom scheduling component

Page 23: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications
Page 24: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications
Page 25: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Reporting

• Filtering

• Data shown in expandable tables

Page 26: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications
Page 27: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Choice of technique

• Build with AJAX for ease of management

– Central application updates

– No client installation

• Ease of development improved over time

– Starting with AJAX 1.1 development was slow and difficult

– With the latest releases (2.1 & 2.2) development time improved

Page 28: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

PARANICE

Real world example.

Page 29: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

The company

• NICE Software B.V.

– Started in 1995

– Specialized in medical software

• Developed with Visual DataFlex since its beginning

Page 30: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

The application

• ParaNICE

– Used in over 60 hospitals

– Windows

• Patient registration

• Medical information

• Agenda scheduling

• Statistics

– Web extension

• View and process daily schedule

• Register medical information

Page 31: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Specifics

• Intranet only

– Mobile devices (Ipads)

– Parts of windows application

• Only details needed next to the bed

• Specific user scenarios

Page 32: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications
Page 33: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications
Page 34: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Components

• Data Entry

– Default AJAX Library controls on the Ipad

• Custom big buttons

Page 35: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications
Page 36: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications
Page 37: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications
Page 38: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications
Page 39: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Choice of technique

• Decided to go webapp to allow specific user scenarios

– Access information on location

– Less paperwork

• AJAX Library proves to run on mobile devices without problems

Page 40: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

SCHUITEMAKER

Real world example.

Page 41: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

The company

• Schuitemaker Machines B.V.

– Agricultural machinery

• Develops

• Produces

• Sells

– Over 160 employees

– Since 1918

Page 42: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Specifics

• Internet portal

– Full application

• Service Portal

– In house

– Maintenance

– Synchronized with ERP

• Dealer Portal

– Used by the customers / dealers

Page 43: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Example

• http://localhost/SchuitemakerPortal/Login.asp

Page 44: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

Choice of technique

• Decided to create a web portal to allow dealers to access the application.

• The AJAX Library has been used because of the typical data entry style.

Page 45: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

QUESTIONS?

Page 46: Visual DataFlex AJAX Library - marketing.dataaccess.commarketing.dataaccess.com/Synergy2011_Presentations/BldgAppsVDFAJAX... · Visual DataFlex AJAX Library Building Real-Life Applications

THANKS!

I'll be around and would be happy to answer any specific questions you may have...


Recommended