BLaDe001 / capabilities-api-angular-template

A simple mvc template for building webpages with Qlik Sense Capabilities API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular Template for Qlik Sense Capabilities API

A simple template to create a website with Angular js. It utilizes the Capabilities API for seamless interaction and multipage mashups

Installation

Usage

Changing app and server
  • js/lib/app.js, change the configuration to much your server host url and the app id. Qlik Sense server is running on secure protocol so make sure to change the port to 443
Adding pages
  1. In js/controllers, Copy, paste and rename your new controller
  2. In views, copy, paste and rename your new view for your controller
  3. Load your new pages and define the url routes in js/lib/main.js,
  • L12, add the controller 'controller.yourPage': scriptsUrl + 'js/controllers/yourPage',
  • L46, add the url routes
    			templateUrl: scriptsUrl+"views/yourPage.html",
    			controller: 'controller.yourPage' 
    ```		} )
    
  • Finally, load them by adding the controller in L58 'controller.controller.yourPage'
  • You can access your new page by going to http://localhost:4848/extensions/angularTemplate/index.html#/yourPage
Adding Qlik Sense Objects
  • Add in your html the code <get-object qvid="'objectId'" id="'objectId'" height="400" interaction="false"></get-object>.
    • qvid: the object id as found at the dev-hub http://localhost:4848/dev-hub/single-configurator
    • height: the object desired height
    • interaction: false if you want to disable interactions in your object otherwise just omit, defaults to true
Adding Drop Down filter
  • Add in your html the code <drop-down data-dimension="'Cases Open/Closed'" data-title="'Cases Open/Closed'" data-id="'cases'" data-showselected="true"></drop-down>
    • data-dimension: is the dimension to populate the drop down list from
    • data-title: is for the text that will be displayed in the button
    • data-id: a unique id/name that the app will use to change the contents like text, colors etc
    • data-showselected="true" : if you want the button text to change to the seleted text

Tutorials

Tutorial on how to use it with 'Helpdesk Management.qvf':
Article on Memory Management and error handling:
Capability APIs 2.2 and Angularjs, disabled selections fix
Added export to csv directive as workaround for the bug found in 2.1
D3 support for custom Charts
getObject using a directive
Creating Drop Down Menus
Examples for these tutorials are found in the playground

About

A simple mvc template for building webpages with Qlik Sense Capabilities API.


Languages

Language:JavaScript 77.1%Language:CSS 15.4%Language:HTML 7.5%