270 likes | 439 Views
Creating Hierarchical Drill Downs for Flex Charts. Dan Carotenuto Service Director, Product Marketing. Creating Hierarchical Drill Downs for Flex Charts Agenda. Technique Overview Create a Dashboard Convert chart to hierarchical drill down Make drill downs dynamic.
E N D
Creating Hierarchical Drill Downs for Flex Charts Dan Carotenuto Service Director, Product Marketing
Creating Hierarchical Drill Downs for Flex ChartsAgenda • Technique Overview • Create a Dashboard • Convert chart to hierarchical drill down • Make drill downs dynamic
Creating Hierarchical Drill Downs for Flex Charts Technique Overview • Create a Flex dashboard (WE, FB) • Load dashboard with data (WE, W) • Create a drill down hierarchy (WE, FA) • Add drill down hierarchy user controls (FB, WE) • Enable drill down hierarchy (WE, FA) W = WebFOCUS WE = WebFOCUS Enable FA = Flex ActionScript FB = Flex Builder
Creating Hierarchical Drill Downs for Flex Charts Technique Overview • Products used in this technique • WebFOCUS Reporting Server 7.6.10 • WebFOCUS Client 7.6.10 • WebFOCUS Developer Studio 7.6.10 • WebFOCUS Enable 1.0.1 for Adobe Flex 3.0 Hotfix1 • Adobe FlexBuilder 3
Creating Hierarchical Drill Downs for Flex ChartsCreate Flex Dashboard • Layout • Canvas: ibiCanvas (WE) • Panels: Panel (FB) • Flow/Direction: HBox, VBox (FB) • Add filters • ibiList (WE) • Add charts • ibiColumnChart (WE) WE = WebFOCUS Enable FB = Flex Builder
Creating Hierarchical Drill Downs for Flex ChartsLoad Dashboard with Data • Add IBI Data Grid to get data • ibiDataGrid (WE)
Creating Hierarchical Drill Downs for Flex ChartsLoad Dashboard with Data • Bind the data grid to a WebFOCUS procedure (fex) • Property > IBI Data > seturl • http://<ip>/ibi_apps/WFServlet?IBIF_ex=<name.fex>?IBIAPP_app=<WF app>
Creating Hierarchical Drill Downs for Flex ChartsLoad Dashboard with Data • Create linked filters • Set the data grid for filtering: ibiUseFiltered = true
Creating Hierarchical Drill Downs for Flex ChartsLoad Dashboard with Data • Create linked filters • Allow multiple selections: • Common > allowMultipleSelection = true
Creating Hierarchical Drill Downs for Flex ChartsLoad Dashboard with Data • Create linked filters • Set the component to be used as filter • ibiFilterAble = true
Creating Hierarchical Drill Downs for Flex ChartsLoad Dashboard with Data • Create linked filters • Set the source of the data: ibiParent • Specify the column to display distinct values: ibiColumn • Order the values: ibiSortValues
Creating Hierarchical Drill Downs for Flex ChartsLoad Dashboard with Data • Create linked filters • Link the filters: ibiFilterParent • Set ibiFilterParent to <id> of linked parent filter
Creating Hierarchical Drill Downs for Flex ChartsLoad Dashboard with Data • Load the column chart • Set the source of the column chart: ibiParent • Set the chart’s axis: ibiXField, ibiYField • Set the chart for filtering: ibiUseFiltered= true • Specify the column grouping: ibiGroupBy
Creating Hierarchical Drill Downs for Flex ChartsLoad Dashboard with Data
Creating Hierarchical Drill Downs for Flex ChartsCreate a drill down hierarchy • Create hierarchy array to store drill down path • Set up variables to store current and nextdimensions
Creating Hierarchical Drill Downs for Flex ChartsCreate a drill down hierarchy • Use method (drillIt) to handle runtime drill down • Update chart • ibiColumnChart.ibiGroupBy = nextDimension • ibiColumnChart.ibiXField = nextDimension
Creating Hierarchical Drill Downs for Flex ChartsCreate a drill down hierarchy • Use method (drillIt) to handle runtime drill down • WebFOCUS Enable API: doFilterValue • Loop through each filter • this[“ibiList0”].dataProvider.length
Creating Hierarchical Drill Downs for Flex ChartsCreate a drill down hierarchy • Use method (drillIt) to handle runtime drill down • WebFOCUS Enable API: doFilterValue • Apply to IBI Canvas for each filter: • ibiCvs1.doFilterValue(ibiList0,<n>) • Dynamically changes all objects when drilling
Creating Hierarchical Drill Downs for Flex ChartsCreate a drill down hierarchy • Enable chart for drill down • Set Events > itemClick to call a method that drills down • Pass the event to a method: drillIt(event);
Creating Hierarchical Drill Downs for Flex ChartsCreate a drill down hierarchy
Creating Hierarchical Drill Downs for Flex ChartsAdd Drill Down Hierarchy User Controls • Set up a default hierarchy on initial display / run
Creating Hierarchical Drill Downs for Flex ChartsAdd Drill Down Hierarchy User Controls • Add combo boxes for users to set drill path at runtime • Set combo box values to data column names: seturl • Run a WebFOCUS procedure to return metadta column names
Creating Hierarchical Drill Downs for Flex ChartsAdd Drill Down Hierarchy User Controls • Create a method to handle dynamic runtime drill path • Bind dimension data (column names) to combo boxes • Change hierarchy to be dynamically loaded • <combo box id>.selectedItem
Creating Hierarchical Drill Downs for Flex ChartsAdd Drill Down Hierarchy User Controls • Create a method to handle dynamic runtime drill path • Update filters with user selections: doFilterValue • Apply to IBI Canvas for each filter: • ibiCvs1.doFilterValue(ibiList0,<n>)
Creating Hierarchical Drill Downs for Flex ChartsAdd Drill Down Hierarchy User Controls • Create a method to handle dynamic runtime drill path • Reload data by reloading ibiCanvas and IBI Data Grid • WebFOCUS Enable API • this.ibiCvs1.reloadData(“ibiDG”,””)
Creating Hierarchical Drill Downs for Flex Charts Add Drill Down Hierarchy User Controls