Changes for page RealtimeLivetable

Last modified by Vincent Massol on 2024/02/26 17:54

<
From version < 37.1 >
edited by Marius Dumitru Florea
on 2020/05/12 15:01
To version < 38.1 >
edited by Marius Dumitru Florea
on 2020/05/12 15:20
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -139,6 +139,57 @@
139 139  ** the list of cells (the data to display on each cell)
140 140  *** additional information that may be needed to display the table cell (e.g. data type, pretty name, etc.)
141 141  
142 +The JSON currently looks like this:
143 +
144 +{{code language="none"}}
145 +{
146 + "totalrows": 35,
147 + "returnedrows": 15,
148 + "offset": 1,
149 + "rows": [
150 + {
151 + //
152 + // Identify the row
153 + //
154 + "doc_wiki": "xwiki",
155 + "doc_fullName": "Blog.BlogIntroduction",
156 +
157 + //
158 + // Actions & access rights
159 + //
160 + "doc_viewable": true,
161 + "doc_url": "/xwiki/bin/view/Blog/BlogIntroduction",
162 +
163 + "doc_hasadmin": true,
164 +
165 + "doc_hasedit": true,
166 + "doc_edit_url": "/xwiki/bin/edit/Blog/BlogIntroduction",
167 +
168 + "doc_hasdelete": true,
169 + "doc_delete_url": "/xwiki/bin/delete/Blog/BlogIntroduction",
170 +
171 + "doc_hascopy": true,
172 + "doc_copy_url": "/xwiki/bin/view/Blog/BlogIntroduction?xpage=copy",
173 +
174 + "doc_hasrename": true,
175 + "doc_rename_url": "/xwiki/bin/view/Blog/BlogIntroduction?xpage=rename&step=1",
176 +
177 + "doc_hasrights": true,
178 + "doc_rights_url": "/xwiki/bin/edit/Blog/BlogIntroduction?editor=rights",
179 +
180 + //
181 + // Cell values
182 + //
183 + "doc_title": "First blog post",
184 + "category": "News",
185 + "publishDate": 1243846800000
186 + ...
187 + },
188 + ...
189 + ]
190 +}
191 +{{/code}}
192 +
142 142  See the [[XWiki.LiveTableResults>>https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-12.3/xwiki-platform-core/xwiki-platform-livetable/xwiki-platform-livetable-ui/src/main/resources/XWiki/LiveTableResults.xml]] page which is our current default data source.
143 143  
144 144  It's important that the data source doesn't depend on the JavaScript widget used to implement the live table. If necessary, we can write adapters on the JavaScript side to modify the JSON returned by the data source in order to meet the format expected by the JavaScript widget.
ProposalCode.ProposalClass[0]
Issues
... ... @@ -1,0 +1,1 @@
1 +XWIKI-7735

Get Connected