Smart View WebReports widget
Uldis
Member
Hi
We have a landing page with 3 tabs - overview, documents, statistics
In overview page we have Widget 1 (WebReport)
In statistics we have Widget 2 (WebReport)
Both widget use code similar to this
<div id="content"></div> <script> csui.require([ 'csui/lib/marionette', 'csui/lib/jquery', 'csui/utils/contexts/page/page.context', 'csui/utils/contexts/factories/connector', 'webreports/controls/table.report/table.report.view' ], function ( Marionette, $, PageContext, ConnectorFactory, TableReportView) { var contentRegionDP = new Marionette.Region({el: '#content'}), pageContextDP = new PageContext(), tableReportViewDP, options; options = { context: pageContextDP, data: { id: [LL_REPTAG_$WRDATA /], title: 'Document progress', header: false, titleBarIcon: 'title-assignments', columnsWithSearch: ["Name","Progress"], sortBy: 'Name', sortOrder: 'asc' } }; tableReportViewDP = new TableReportView(options); contentRegionDP.show(tableReportViewDP); pageContextDP.fetch(); }); </script>
Problem is that when switching between tabs, sometimes these WebReport widget do not load.
Is there other way how to call the tablereport view? maybe re-using same page context or something.
Tagged:
0
Comments
-
I suggest you create an unique ID (instead of just "content"). You can use the subtag that gives you the time ticks or something like that.
Also, include some debug output around your code (console.log(...)) to help you troubleshoot.
Hope it helps.
1
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 156 General Questions
- 151 Thrust Services
- 57 Developer Hackathon
- 38 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 919 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 34 eDOCS
- 193 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories