angular 6 ag-grid enterprise 19.0.0 - ag-grid

I'm trying to import features available under enterprise license into my angular 6 app, but it seems ag-grid doesn't see license key.
I have already imported ag-grid and ag-grid-community and it works fine, but there are some problems with enterprise licensed features.
Yesterday I got trial license for 2 month;
I downloaded package ag-grid-enterprise via npm and imported LicenseManager component (before bootstraping app):
import { LicenseManager } from 'ag-grid-enterprise';
LicenseManager.setLicenseKey('my_key');
Then added import "'ag-grid-enterprise'" to my module file according to documentation (I'm using lazy loading modules, so I put AgGridModule not into app.module, but into that module where I need ag-grid);
Then switched rowModelType to serverSide and replaced setter with setServerSideDatasource()
I followed the documentation steps, but after grid initialization got errors listed below.
ag-Grid: could not find matching row model for rowModelType serverSide
ag-Grid: rowModelType server side is only available in ag-Grid Enterprise
I'll really appreciate for any suggestions about how to solve this problem. If anyone have some alternative/more detailed guide that would be perfect.

Related

AG Grid React Enterprise License issue

I am using the AG Grid React for a project & the free version seems to be working fine. Recently i got a trial license & tried to incorporate that with the Ag Grid React. I have followed the following approach for importing the license
import { AgGridReact } from 'ag-grid-react';
import {LicenseManager} from "ag-grid-enterprise";
LicenseManager.setLicenseKey("license key");
Some features of Ag Grid Community & Ag Grid are also getting used as below
import { GridOptions, ColDef, ColGroupDef, ICellRendererParams } from "ag-grid";
import { CellClickedEvent } from 'ag-grid-community';
After that the Ag Grid shows up just fine like before but the enterprise features are still missing. I have tried to import the license at application starting point as well but still no luck.
There is no console error or warning for missing enterprise licence etc.
The Project is Durandal based front end application that leverages Require.js & Grunt minification.
Any help regarding this would be appreciated.
Thanks
Just import the enterprise version
import "ag-grid-enterprise";
Try doing this.
import { LicenseManager } from 'ag-grid-enterprise/main';
You can import cellClickedevent from ag-grid
import { CellClickedEvent } from 'ag-grid'

How to integrate Leaflet into Angular 5

I've got the standard Angular 5 build and I'm trying to include a Leaflet map. The documentation gives me an error when I follow it. I'm trying to import Leaflet through NPM and include it but I can't find documentation.
I know I need the CSS, ID tag, and imports...
I've downloaded "leaflet" into my "node_modules folder".
Now what? What is the import code for the Leaflet module that I need to put into my "app.module.ts" file?
Firstly, for better development, install through npm #types/leaflet to get leaflet types in application. After that, you need to create component with Map property (imported from leaflet) and use factory function map (also imported from leaflet). The most of examples show configuration using id, but you can pass HTMLElement.
constructor(private element: ElementRef) {}
ngAfterViewInit() {
this.map = map(this.element.nativeElement, {...options})
}
At this moment, I develop library to integrated leaflet with Angular 5 using components. First stable will be released in next week, but I have first beta release on npm here.

ionicBootstrap not importing in app.component.ts ionic v2.1.18

Hi Everyone,
My name is Kris Chery. I am new to ionic and am using version 2.1.18. I have been following this tutorial which I think is very insightful about the powers of ionic.
https://www.joshmorony.com/an-in-depth-explanation-of-providers-in-ionic-2/
I am stuck at the ionicBootstrap implementation. For now its a simple service that needs to display a message but for some reason. I can't seem to import ionic Bootstrap it is saying that ionicBoostrap wasn't exported from node modules.
This is information is imperative for me to my dream app. Any help would be much appreciated.
UPDATE: I have done a number or research on the matter but none led to a good explanation on how to fix it or to implement it properly.
I'd recommend not using that tutorial and using the official Angular docs instead. That was written back in July. Back then Angular 2 was only in RC phase and Ionic 2 was still in beta. A lot has changed since then.
You don't want to use bootstrapping for this, your app already does it's bootstrapping in app.ts. Instead in app.module.ts you can import other module and declare providers.
Angular 2 Tutorial: https://angular.io/docs/ts/latest/tutorial/
Bootstrapping and modules: https://angular.io/docs/ts/latest/guide/ngmodule.html#!#bootstrap

How can i use XFAFlattener from iText in jruby?

I got inspiration from https://github.com/abevoelker/pdf_ravager to create XFA Flattening. I was trying to use the XFAWorker, which is a paid version. I am trying to get the trial version to work with jRuby. XFAFlattener cannot be instantiated since it says that the class cannot be found. I added the license key as well. I am doing all the experiment in jirb.
I am assuming i dont understand how license key works. Any suggestions will be great.

CQ 5.6.1:: Inducing the versioning capability to custom components

I am using CQ 5.6.1 and have a requirement wherein we should have the capability to compare page to previous versions. That I believe basically means is we have to induce the versioning capability to components other than the standard out of the box text, the image, the text-image and the title components.
Is that possible ?
Thanks in advance
There is the timewarp feature where you can "scroll" back in time to look at previous versions of the page. You can find this in the sidekick, 4th tab "Versioning" at the bottom.
The only downside of this are DAM assets. As they are only referenced by their path only the current version of this asset will be displayed even if you look at an ancient version of the page itself. If the asset was directly uploaded to the page it will be versioned together with the rest of the page.
If you want to approach this programmatically, here a short code snippet I used recently in my current project.
The imports:
import javax.jcr.Session;
import javax.jcr.version.Version;
import javax.jcr.version.VersionHistory;
import javax.jcr.version.VersionIterator;
import javax.jcr.version.VersionManager;
The code:
Session session = currentNode.getSession();
VersionManager vm = session.getWorkspace().getVersionManager();
VersionHistory versionHistory = vm
.getVersionHistory(currentNode.getPath());
VersionIterator vIt = versionHistory.getAllVersions();
while (vIt.hasNext()) {
Version version = vIt.nextVersion();
}