Data source and filter controls

Slides:



Advertisements
Similar presentations
Phoenix We put the SQL back in NoSQL James Taylor Demos:
Advertisements

2/25/2013 Miro Remias, Solution Architect
Built-in Kentico CMS UI Controls
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Enhanced XA Security CISTECH Security Solutions Belinda Daub, Senior Consultant Technical Services
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Michael Pizzo Software Architect Data Programmability Microsoft Corporation.
Utility SQL Bin (v3.3). Agenda  Purpose  Target User  Benefits  System Requirement  User Guide Introduction Navigation Add New SQL Add New Version.
Universal event handling for components in Kentico CMS
Built-in Kentico CMS UI Controls
CIS101 Introduction to Computing Week 12. Agenda Your questions Solutions to practice text Final HTML/JavaScript Project Copy and paste assignment JavaScript:
Partners’ Webinar 06/27/2013 Karol Jarkovsky Solution Architect Deep Dive – Web Analytics.
1 ITEC810 An Application Suite for a Student Database Project Supervisor: Abhaya Nayak Student Id: Andrew Johnson.
Integrating Access with the Web and with Other Programs.
Stanford University EH&S A Service Oriented Architecture For Rich Internet Applications Sheldon M. Heitz.
Handling Security Threats in Kentico CMS Karol Jarkovsky Sr. Solution Architect Kentico Software
Transformations Revealed
Sage CRM Developers Course
Performance Mistakes In Kentico 7/18/2012Miro Remias, Solution Architect.
Miro Remias Solution architect Kentico software
Gain Performance & Scalability With RightNow Analytics
Functionally Navigating/Balancing Patches and Fixes Session 1023 March 20, 2001 Presented by Melissa Grimsley, David Kline & Jane North.
Real World Examples – Part II 7/26/2013Miro Remias, Sr. Solution Architect.
Partners’ Webinar 10/25/2012 Karol Jarkovsky Solution Architect E-commerce Scenarios.
® IBM Software Group © 2009 IBM Corporation Rational Publishing Engine RQM Multi Level Report Tutorial David Rennie, IBM Rational Services A/NZ
Tracking/Requesting Local Modification Session #5312 Bradley Smith University of Central Florida
NHibernate in Action Web Seminar at UMLChina By Pierre Henri Kuaté 2008/08/27
Chapter 71 Building Data-Driven ASP.NET Applications Introduction to ASP.NET By Kathleen Kalata.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Effective Gathering of Requirements for Kentico CMS Project Karol Jarkovsky Consultant Kentico Software
E-commerce customization 12/19/2011Petr Vozak, Technical Leader.
Data Management Console Synonym Editor
Caching Chapter 12. Caching For high-performance apps Caching: storing frequently-used items in memory –Accessed more quickly Cached Web Form bypasses:
Andrew S. Budarevsky Adaptive Application Data Management Overview.
COMPREHENSIVE Access Tutorial 12 Managing and Securing a Database.
TRAINING SESSIONS.NET Controls.  Standard Controls  Label  Textbox  Checkbox  Button, Image Button, Image control  Radio Button  Literal  Hyperlink.
Ventsislav Popov Crossroad Ltd.. 1. ASP.NET Data Source Controls  SqlDataSource  EntityDataSource  ObjectDataSource 2. Entity Data Model and ADO.NET.
CRM in Education: Raising Standards. Saving Time. Presented by: Daniel Petersen Director of Business Solutions Applied Tech.
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
Master Data Management & Microsoft Master Data Services Presented By: Jeff Prom Data Architect MCTS - Business Intelligence (2008), Admin (2008), Developer.
SimDB Implementation & Browser IVOA InterOp 2008 Meeting, Theory Session 1. Baltimore, 26/10/2008 Laurent Bourgès This work makes use of EURO-VO software,
Clusterpoint Margarita Sudņika ms RDBMS & NoSQL Databases & tables → Document stores Columns, rows → Schemaless documents Scales UP → Scales UP.
CPSC 203 Introduction to Computers T97 By Jie (Jeff) Gao.
CPSC 203 Introduction to Computers T59 & T64 By Jie (Jeff) Gao.
Plug-In Architecture Pattern. Problem The functionality of a system needs to be extended after the software is shipped The set of possible post-shipment.
Developer Exam Preparation Thom Robbins Bryan Soltis
Using the Kentico CMS API Thom Robbins Bryan Soltis
19 Copyright © 2004, Oracle. All rights reserved. Coding PL/SQL Triggers.
Kentico CMS Performance Optimization Implementation at Newsmax - Ayush Chaturvedi.
Kentico CMS Deliver Now! Methodology Karol Jarkovsky Consultant, Kentico Software s.r.o.
Performance optimization and caching in Kentico CMS Martin Hejtmanek (CTO), Webinar 9/16/2009.
Advanced transformations in Kentico CMS Martin Hejtmanek (CTO), Webinar 8/19/2009.
Spice up Your Forms and Views
For Telephone Audio Dial: (702)
Data Virtualization Demoette… ODBC Clients
W04 Connecting 3rd Party Application to ODBC
Kentico CMS Web parts development
Integrating Dropbox with Canvas
Data Virtualization Demoette… Flat-File Data Sources
What's New in OLAP Clients
The Basics of Dashboards
Cameron Blashka| Informer Implementation Specialist
Avalon – Using Data In Your Applications
Office Power Hour New developer APIs and features for Apps for Office
Spice up Your Forms and Views
INTAKE OF NEW PORTFOLIO AND INVOICES
Practical guide to build Modern Intranet sites with SharePoint Communication Sites Asish Padhy.
Analytics Plus Product Overview 1.
Dashboard in an Hour Using Power BI
Plug-In Architecture Pattern
Presentation transcript:

Data source and filter controls Miro Remias Solution architect Kentico software miro@kentico.com

Agenda Introduction Data source controls - API Filter controls - API Life cycle Examples – developing custom controls

Introduction Re-usable source of data (better performance, caching available) Higher design flexibility Easy data filtering Source database/ external source Filter name Filter name Filter n Filter 1 Data source Filter name SourceControlName Web part control ID Data source name Listing control Web part control ID Repeater (documents) Datalist (documents) BasicRepeater BasicDatalist Uni pager Target control name

Data source controls API - I Available data source controls: CMSDocumentsDataSource: CMSControlDataSource: CMSBaseDataSource CMSQueryDataSource: CMSBaseDataSource CustomTableDataSource: CMSBaseDataSource FileSystemDataSource: CMSBaseDataSource SQLDataSource: CMSBaseDataSource UsersDataSource: CMSBaseDataSource WebServiceDataSource: CMSBaseDataSource XMLDataSource: CMSBaseDataSource AttachmentsDataSource: CMSBaseDataSource CMSControlDataSource TreeProvider ClassNames Path CultureCode CombineWithDefaultCulture SelectOnlyPublished MaxRelativeLevel CheckPermissions FilterOutDuplicates SelectTopN InitDataProperties() ReloadData() GetDefaultCacheDependendencies() CMSBaseDataSource : CMSAbstractBaseFilterControl DataSource RelatedData GetDataSource() SourceFilterControl.InitDataProperties() GetDataSourceFromDB GetRelatedData (TreeNode for AttachmentsDataSource) GetDataSourceFromDB() GetRelatedData() InvalidateLoadedData() (DataSource and RelatedData = null) ClearCache()

Data source controls API - II Developing custom data source control / web part Steps to follow: Create control file. Inherit from CMSBaseDataSource or from CMSControlDataSource class. Register custom method in for OnFilterChanged handler of source filter control in OnInit method. Call InvalidateLoadedData() and RaiseOnFilterChanged() methods in this custom method. Implement GetDataSourceFromDB method to return custom DataSource. Create web part file. Assign WebPartControlID of the web part to FilterName property of your data source control in SetupControl method. Example 1 (Excel data source control) Detail information can be found in developer’s guide: http://devnet.kentico.com/docs/devguide/developing_datasource_web_parts.htm

Filter controls API - I Available filter classes: CMSAbstractDataFilterControl - works with document data sources. CMSAbstractMenuFilterControl - works with navigation web parts. CMSAbstractQueryFilterControl - works with custom table and query data sources. CMSAbstractBaseFilterControl - works with all data sources. CMSAbstractControlFilterControl TreeProvider ClassNames Path CultureCode CombineWithDefaultCulture SelectOnlyPublished MaxRelativeLevel CheckPermissions InitDataProperties() ReloadData() CMSAbstractBaseFilterControl StopProcessing CacheItemName CacheDependencies CacheMinutes SiteName WhereCondition OrderBy TopN SelectedColumns FilterChanged FilterName FilterControlPath FilterControl SourceFilterName SourceFilterControl FilteredControl DisableFilterCaching Value OnFilterChanged InitDataProperties() OnLoad() -> SourceFilterControl.OnFilterChanged -> RaiseOnFilterChanged() -> OnFilterChanged ResetFilter() CMSAbstractDataFilterControl SelectTopN SelectedItemTransformationName RelatedNodeIsOnTheLeftSide RelationshipName RelationshipWithNodeGuid PageSize InitDataProperties() CMSAbstractMenuFilterControl ApplyMenuDesign UseItemImagesForHiglightedItem HighlightAllItemsInPath SubmenuIndicator UseAlternatingStyles CSSPrefix WordWrap HideControlForZeroRows ZeroRowsText Columns InitDataProperties() CMSAbstractQueryFilterControl QueryName GeneralConnection PageSize SelectTopN InitDataProperties()

Filter controls API - II Developing custom filter control Steps to follow: Create control file. Inherit from suitable (CMSAbstractDataFilterControl, CMSAbstractMenuFilterControl, CMSAbstractQueryFilterControl, CMSAbstractBaseFilterControl) filter class. Initialize child controls in OnInit method. Implement SetFilter method, where call to RaiseOnFilterChanged method is necessary. Call SetFilter method in OnPreRender method if there was post back. Use filter control in Filter web part. Important notes !!! All filters and data source controls as well as some other controls (BasicRepeater etc.) are loaded into hash table: CMS.Controls.CMSControlsHelper.CurrentFilters. When you set FilterName property CMSControlsHelper.SetFilter() method is called to add the control to CurrentFilters hash table. Example 2 (Excel filter control) Detail information can be found in developer’s guide: http://devnet.kentico.com/docs/devguide/developing_custom_filters.htm

Life cycle – Custom data source + filter controls ExcelDataSource [w] Filter [w] BasicRepater [w] ExcelDataSourceControl [c] [edsc] ExcelFilter [c] [ef] OnContentLoaded SetupControl edsc.FilterName LoadFilter ef.FilterName EnsureFilterControl OnInit ef.OnFilterChanged GetDataSource InitializeColumns OnLoad Onload edsc.OnFilterChanged OnPreRender SetFilter RaiseOnFilterChanged OnFilterChanged InvalidateLoadedData edsc.DataSource Access CurrentFilters hash table and access DataSource propety of CMSBaseDataSource control which will call CMSBaseDataSource.GetDataSource method -> SourceFilterControl(ExcelFilter).InitDataProperties(this) and after that -> GetDataSourceFromDB() of ExcelDataSourceControl control and load the dataset in GetDataSourceFromExcel method

? Questions FAQ – http://devnet.kentico.com/FAQs.aspx Developing custom filter blog post from Karol Jarkovsky: http://devnet.kentico.com/Blogs/Karol-Jarkovsky/March-2011/Custom-filter-development-with-Kentico-CMS.aspx FAQ – http://devnet.kentico.com/FAQs.aspx KB - http://devnet.kentico.com/Knowledge-Base.aspx Documentation - http://devnet.kentico.com/Documentation.aspx Technical support - http://www.kentico.com/Support.aspx (support@kentico.com)

Thank you! Miro Remias miro@kentico.com Solution architect Kentico software