Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have an existing QS 2.0.6 mashup which also uses AngularJS as its javascript framework. In the past we successfully rendered elements dynamically an then used the mashup API to render objects within those dynamic elements. This is no longer working in 3.0.1. Long story short, we store our page structure in a SQL database - the object IDs are returned as a collection (among other attributes like height & width) and we generate unique HTML elements based on this data, and subsequently call getObject to render visualizations in those elements.
I have a simple example to reproduce the issue.
$scope.iterations = [1,2,3];
var app = qlikInstance.openApp('f8455997-00ac-4a13-9225-d020534fdd9c', config);
$timeout(function () {
app.getObject('qv1', 'HKMpzvW');
app.getObject('qv2', 'yHmN');
app.getObject('qv3', 'NEYfBc');
}, 2000);
<div ng-repeat="i in iterations" class="qv-object" id="{{'qv' + i}}" style="border: 1px solid white; display: inline-block; height: 200px; width: 200px">{{i}}</div>
If I hard-code the 3 elements, the visualizations render properly:
<div class="qv-object" id="qv1" style="border: 1px solid white; display: inline-block; height: 200px; width: 200px">1</div>
<div class="qv-object" id="qv2" style="border: 1px solid white; display: inline-block; height: 200px; width: 200px">2</div>
<div class="qv-object" id="qv3" style="border: 1px solid white; display: inline-block; height: 200px; width: 200px">3</div>
I look forward to hearing how you suggest we fix this issue. We are desperate to upgrade to QS 3.0 to take advantage of new features but our dynamic mashup is now useless.
Many thanks,
Alyssa