<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ag-grid and hypercube in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/ag-grid-and-hypercube/m-p/1668083#M12182</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently in a difficult spot, so I was wondering if you could help me out?&lt;/P&gt;&lt;P&gt;I am trying to use ag-grid, and this current status:&lt;/P&gt;&lt;P&gt;//ag-grid.html&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html lang="en"&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Ag-Grid Basic Example&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://community.qlik.com/" target="_blank"&gt;https://unpkg.com/ag-grid-community/dist/ag-grid-community.min.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script src="ag-grid.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;button onclick="getSelectedRows()"&amp;gt;Get Selected Rows&amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;lt;div id="myGrid" style="height: 600px;width:500px;" class="ag-theme-balham"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;//ag-grid.js&lt;/P&gt;&lt;P&gt;var columnDefs = [&lt;BR /&gt;{headerName: "Make", field: "make", sortable: true, filter: true, checkboxSelection: true },&lt;BR /&gt;{headerName: "Model", field: "model", sortable: true, filter: true },&lt;BR /&gt;{headerName: "Price", field: "price", sortable: true, filter: true }&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;// specify the data&lt;BR /&gt;var rowData = [&lt;BR /&gt;{make: "Toyota", model: "Celica", price: 35000},&lt;BR /&gt;{make: "Ford", model: "Mondeo", price: 32000},&lt;BR /&gt;{make: "Porsche", model: "Boxter", price: 72000}&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;// let the grid know which columns and what data to use&lt;BR /&gt;var gridOptions = {&lt;BR /&gt;columnDefs: columnDefs,&lt;BR /&gt;rowData: rowData,&lt;BR /&gt;rowSelection: 'multiple'&lt;BR /&gt;};&lt;BR /&gt;​&lt;BR /&gt;// setup the grid after the page has finished loading&lt;BR /&gt;document.addEventListener('DOMContentLoaded', function() {&lt;BR /&gt;var gridDiv = document.querySelector('#myGrid');&lt;BR /&gt;new agGrid.Grid(gridDiv, gridOptions);&lt;BR /&gt;});&lt;BR /&gt;​&lt;BR /&gt;function getSelectedRows() {&lt;BR /&gt;var selectedNodes = gridOptions.api.getSelectedNodes()&lt;BR /&gt;var selectedData = selectedNodes.map( function(node) { return node.data })&lt;BR /&gt;var selectedDataStringPresentation = selectedData.map( function(node) { return node.make + ' ' + node.model }).join(', ')&lt;BR /&gt;alert('Selected nodes: ' + selectedDataStringPresentation);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and what I would like to do is to put into chart values from hypercube which was created using editor&lt;/P&gt;&lt;P&gt;//hypercube&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* Basic responsive mashup template&lt;BR /&gt;* @owner Enter you name here (xxx)&lt;BR /&gt;*/&lt;BR /&gt;/*&lt;BR /&gt;* Fill in host and port for Qlik engine&lt;BR /&gt;*/&lt;BR /&gt;var prefix = window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 );&lt;BR /&gt;var config = {&lt;BR /&gt;host: window.location.hostname,&lt;BR /&gt;prefix: prefix,&lt;BR /&gt;port: window.location.port,&lt;BR /&gt;isSecure: window.location.protocol === "https:"&lt;BR /&gt;};&lt;BR /&gt;require.config( {&lt;BR /&gt;baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"&lt;BR /&gt;} );&lt;/P&gt;&lt;P&gt;require( ["js/qlik"], function ( qlik ) {&lt;BR /&gt;qlik.setOnError( function ( error ) {&lt;BR /&gt;$( '#popupText' ).append( error.message + "&amp;lt;br&amp;gt;" );&lt;BR /&gt;$( '#popup' ).fadeIn( 1000 );&lt;BR /&gt;} );&lt;BR /&gt;$( "#closePopup" ).click( function () {&lt;BR /&gt;$( '#popup' ).hide();&lt;BR /&gt;} );&lt;/P&gt;&lt;P&gt;//callbacks -- inserted here --&lt;BR /&gt;function wololo(reply, app){}&lt;/P&gt;&lt;P&gt;//open apps -- inserted here --&lt;BR /&gt;var app = qlik.openApp('4d6402a6-e321-455d-a03d-3632e1681bb8', config);&lt;/P&gt;&lt;P&gt;//get objects -- inserted here --&lt;BR /&gt;&lt;BR /&gt;//create cubes and lists -- inserted here --&lt;BR /&gt;app.createCube({&lt;BR /&gt;"qInitialDataFetch": [&lt;BR /&gt;{&lt;BR /&gt;"qHeight": 20,&lt;BR /&gt;"qWidth": 2&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"qDimensions": [&lt;BR /&gt;{&lt;BR /&gt;"qLabel": "Date",&lt;BR /&gt;"qLibraryId": "517d8d3b-6ddf-4496-a285-6c066b7eecd9",&lt;BR /&gt;"qNullSuppression": true,&lt;BR /&gt;"qOtherTotalSpec": {&lt;BR /&gt;"qOtherMode": "OTHER_OFF",&lt;BR /&gt;"qSuppressOther": true,&lt;BR /&gt;"qOtherSortMode": "OTHER_SORT_DESCENDING",&lt;BR /&gt;"qOtherCounted": {&lt;BR /&gt;"qv": "5"&lt;BR /&gt;},&lt;BR /&gt;"qOtherLimitMode": "OTHER_GE_LIMIT"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"qMeasures": [&lt;BR /&gt;{&lt;BR /&gt;"qLabel": "Last Reload Failure",&lt;BR /&gt;"qLibraryId": "74501d19-300d-4a0e-a43a-9e8543588783",&lt;BR /&gt;"qSortBy": {&lt;BR /&gt;"qSortByState": 0,&lt;BR /&gt;"qSortByFrequency": 0,&lt;BR /&gt;"qSortByNumeric": 0,&lt;BR /&gt;"qSortByAscii": 1,&lt;BR /&gt;"qSortByLoadOrder": 0,&lt;BR /&gt;"qSortByExpression": 0,&lt;BR /&gt;"qExpression": {&lt;BR /&gt;"qv": " "&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"qSuppressZero": true,&lt;BR /&gt;"qSuppressMissing": true,&lt;BR /&gt;"qMode": "S",&lt;BR /&gt;"qInterColumnSortOrder": [],&lt;BR /&gt;"qStateName": "$"&lt;BR /&gt;},wololo);&lt;BR /&gt;} )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone point me to a solution, or provide some insight?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:30:00 GMT</pubDate>
    <dc:creator>Broly</dc:creator>
    <dc:date>2024-11-16T03:30:00Z</dc:date>
    <item>
      <title>ag-grid and hypercube</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/ag-grid-and-hypercube/m-p/1668083#M12182</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently in a difficult spot, so I was wondering if you could help me out?&lt;/P&gt;&lt;P&gt;I am trying to use ag-grid, and this current status:&lt;/P&gt;&lt;P&gt;//ag-grid.html&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html lang="en"&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Ag-Grid Basic Example&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://community.qlik.com/" target="_blank"&gt;https://unpkg.com/ag-grid-community/dist/ag-grid-community.min.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script src="ag-grid.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;button onclick="getSelectedRows()"&amp;gt;Get Selected Rows&amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;lt;div id="myGrid" style="height: 600px;width:500px;" class="ag-theme-balham"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;//ag-grid.js&lt;/P&gt;&lt;P&gt;var columnDefs = [&lt;BR /&gt;{headerName: "Make", field: "make", sortable: true, filter: true, checkboxSelection: true },&lt;BR /&gt;{headerName: "Model", field: "model", sortable: true, filter: true },&lt;BR /&gt;{headerName: "Price", field: "price", sortable: true, filter: true }&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;// specify the data&lt;BR /&gt;var rowData = [&lt;BR /&gt;{make: "Toyota", model: "Celica", price: 35000},&lt;BR /&gt;{make: "Ford", model: "Mondeo", price: 32000},&lt;BR /&gt;{make: "Porsche", model: "Boxter", price: 72000}&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;// let the grid know which columns and what data to use&lt;BR /&gt;var gridOptions = {&lt;BR /&gt;columnDefs: columnDefs,&lt;BR /&gt;rowData: rowData,&lt;BR /&gt;rowSelection: 'multiple'&lt;BR /&gt;};&lt;BR /&gt;​&lt;BR /&gt;// setup the grid after the page has finished loading&lt;BR /&gt;document.addEventListener('DOMContentLoaded', function() {&lt;BR /&gt;var gridDiv = document.querySelector('#myGrid');&lt;BR /&gt;new agGrid.Grid(gridDiv, gridOptions);&lt;BR /&gt;});&lt;BR /&gt;​&lt;BR /&gt;function getSelectedRows() {&lt;BR /&gt;var selectedNodes = gridOptions.api.getSelectedNodes()&lt;BR /&gt;var selectedData = selectedNodes.map( function(node) { return node.data })&lt;BR /&gt;var selectedDataStringPresentation = selectedData.map( function(node) { return node.make + ' ' + node.model }).join(', ')&lt;BR /&gt;alert('Selected nodes: ' + selectedDataStringPresentation);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and what I would like to do is to put into chart values from hypercube which was created using editor&lt;/P&gt;&lt;P&gt;//hypercube&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* Basic responsive mashup template&lt;BR /&gt;* @owner Enter you name here (xxx)&lt;BR /&gt;*/&lt;BR /&gt;/*&lt;BR /&gt;* Fill in host and port for Qlik engine&lt;BR /&gt;*/&lt;BR /&gt;var prefix = window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 );&lt;BR /&gt;var config = {&lt;BR /&gt;host: window.location.hostname,&lt;BR /&gt;prefix: prefix,&lt;BR /&gt;port: window.location.port,&lt;BR /&gt;isSecure: window.location.protocol === "https:"&lt;BR /&gt;};&lt;BR /&gt;require.config( {&lt;BR /&gt;baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"&lt;BR /&gt;} );&lt;/P&gt;&lt;P&gt;require( ["js/qlik"], function ( qlik ) {&lt;BR /&gt;qlik.setOnError( function ( error ) {&lt;BR /&gt;$( '#popupText' ).append( error.message + "&amp;lt;br&amp;gt;" );&lt;BR /&gt;$( '#popup' ).fadeIn( 1000 );&lt;BR /&gt;} );&lt;BR /&gt;$( "#closePopup" ).click( function () {&lt;BR /&gt;$( '#popup' ).hide();&lt;BR /&gt;} );&lt;/P&gt;&lt;P&gt;//callbacks -- inserted here --&lt;BR /&gt;function wololo(reply, app){}&lt;/P&gt;&lt;P&gt;//open apps -- inserted here --&lt;BR /&gt;var app = qlik.openApp('4d6402a6-e321-455d-a03d-3632e1681bb8', config);&lt;/P&gt;&lt;P&gt;//get objects -- inserted here --&lt;BR /&gt;&lt;BR /&gt;//create cubes and lists -- inserted here --&lt;BR /&gt;app.createCube({&lt;BR /&gt;"qInitialDataFetch": [&lt;BR /&gt;{&lt;BR /&gt;"qHeight": 20,&lt;BR /&gt;"qWidth": 2&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"qDimensions": [&lt;BR /&gt;{&lt;BR /&gt;"qLabel": "Date",&lt;BR /&gt;"qLibraryId": "517d8d3b-6ddf-4496-a285-6c066b7eecd9",&lt;BR /&gt;"qNullSuppression": true,&lt;BR /&gt;"qOtherTotalSpec": {&lt;BR /&gt;"qOtherMode": "OTHER_OFF",&lt;BR /&gt;"qSuppressOther": true,&lt;BR /&gt;"qOtherSortMode": "OTHER_SORT_DESCENDING",&lt;BR /&gt;"qOtherCounted": {&lt;BR /&gt;"qv": "5"&lt;BR /&gt;},&lt;BR /&gt;"qOtherLimitMode": "OTHER_GE_LIMIT"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"qMeasures": [&lt;BR /&gt;{&lt;BR /&gt;"qLabel": "Last Reload Failure",&lt;BR /&gt;"qLibraryId": "74501d19-300d-4a0e-a43a-9e8543588783",&lt;BR /&gt;"qSortBy": {&lt;BR /&gt;"qSortByState": 0,&lt;BR /&gt;"qSortByFrequency": 0,&lt;BR /&gt;"qSortByNumeric": 0,&lt;BR /&gt;"qSortByAscii": 1,&lt;BR /&gt;"qSortByLoadOrder": 0,&lt;BR /&gt;"qSortByExpression": 0,&lt;BR /&gt;"qExpression": {&lt;BR /&gt;"qv": " "&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"qSuppressZero": true,&lt;BR /&gt;"qSuppressMissing": true,&lt;BR /&gt;"qMode": "S",&lt;BR /&gt;"qInterColumnSortOrder": [],&lt;BR /&gt;"qStateName": "$"&lt;BR /&gt;},wololo);&lt;BR /&gt;} )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone point me to a solution, or provide some insight?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/ag-grid-and-hypercube/m-p/1668083#M12182</guid>
      <dc:creator>Broly</dc:creator>
      <dc:date>2024-11-16T03:30:00Z</dc:date>
    </item>
  </channel>
</rss>

