ansoesil’s blog

“Learning is experience. Everything else is just information.” – Albert Einstein

Hybrid Data Drilling in Intersoft’s stand-alone Presenter

with one comment

Hi again,

In the previous post, i mentioned that we have two data drilling concepts which are:

In this post, i’ll discuss the second concept first which is Hybrid Data Drilling in Intersoft’s stand-alone Presenter which are Icon Presenter, List Presenter and Grid Presenter along with your custom view that implement IDataPresenter interface later on.

Hyrid Data Drilling

Pre-requisites:

Hybrid Data Drilling is a concept where you can drill down a hierarchical data into a different kind of data representation, you can have Icon Presenter for the root level, Grid Presenter for the first level, List Presenter for the second level and so on. Furthermore with the architecture provided by Intersoft Presenter™ you can make your Custom Presenter to be part in this Hybrid Data Drilling concept.

I’ll discuss more about the extending your Custom Presenter a little bit later since the feature has not been implemented yet in this CTP but we already managed to get it done and its in testing phase.

To enable the Hybrid Data Drilling is very simple as we enable Synchronized Data Drilling in Presenter Manager. What you need to do is specify the ChildPresenter property.

Lets make Icon Presenter {Customers} -> Grid Presenter {Orders} -> List Presenter {Order_Details}.

  • First of all you need to set up the Icon Presenter
Set up the Root Presenter

Set up the Root Presenter

  • Specify the Child Presenter for first level and second level.
Open the Root Presenter's Child Presenter collection

Open the Root Presenter's Child Presenter collection

Add a Grid Presenter as its Child Presenter

Add a Grid Presenter as its Child Presenter

Configure the Grid Presenter

Configure the Grid Presenter

Open Child Presenter collection for this Grid Presenter, and Add List Presenter as its Child Presenter.

Open Child Presenter collection for this Grid Presenter, and Add List Presenter as its Child Presenter.

Configure the List Presenter.

Configure the List Presenter.

  • You’ll get something like this in your XAML

hybriddatadrilling_childpresenter6

Basically this is just the thing you need to enable the hybrid data drilling. However you also need to set up the DataSource control so it can provide our Presenter with the data.

When you have ADO.NET Data Service up and running, you only need to specify the necessary information to Astoria Data Source as follows

Configuring Astoria Data Source

Configuring Astoria Data Source

Then you need to configure what are the data that you want to retrieve at each service level.

synchronizeddatadrilling_astoriaconfiguration2

Specify the detail at each Data Service level

After you got the Astoria Data Source control configured, what you need to do is just set the Data Member and Data Source ID.

Set DataSourceID and DataMember

Set DataSourceID and DataMember

After this you can have the Hybrid Data Drilling feature in Intersoft Presenter enabled already. Try running your project and see what happens when you double click an item. You can grab my sample project from this link.

To Drill Up, you can click the indicator at the top left.

hybriddatadrilling_childpresenter8

Important Notes

  • When we request a data drilling (drill down) to ADO.NET Data Service, what its actually do is load parent with the specified ID then expand its child. E.g.    http://…./NorthwindDataService.svc/Customers(‘ALFKI’)$expand=Orders
  • When you drill down all the previous structure history will be kept (Grouping, Column Reordering, Sorting)
    So let say you drill down to Orders from Customers (ALFKI), perform grouping, column re-ordering and sorting. Then drill up, select another customer then drill down , all the grouping, column positioning and sorting states will be kept. But of course its showing the new data.

That’s all for now.
To experience the real application i suggest you to go to http://sirius2.intersoftpt.com/presenter and explore the samples there.

Regards

Andry

Sample Link

Written by ansoesil

March 10, 2009 at 9:40 pm

One Response

Subscribe to comments with RSS.

  1. […] Hybrid Data Drilling in Intersoft’s stand-alone Presenter Technical discussion on the implementation of hybrid data drilling in Intersoft Presenter […]


Leave a comment