Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support bServerSide for datatables (not only views) #145

Open
jean opened this issue Aug 14, 2012 · 1 comment
Open

Support bServerSide for datatables (not only views) #145

jean opened this issue Aug 14, 2012 · 1 comment
Labels

Comments

@jean
Copy link
Member

jean commented Aug 14, 2012

At the moment, only PlominoView.tojson understands the bServerSide paging parameters (iDisplayStart etc) (see #126).

However datagrid fields on forms may also be paging through large datasets, so their tojson methods also need to understand these parameters.

Since these fields may be dynamically computed per request, per viewer, they need to be cached accordingly. Perhaps the Plomino support for caching in forms can be extended to deal with this. In addition to caching sections of rendered HTML, add a cacheid formula to dynamic fields. By default, this can create a form_field_initialrequest key which tojson can use to find the right cache. The initialrequest id would be computed when the form is rendered, so paging in that form will get that cache.

Field caches can be cleaned whenever the form is rendered or the field is computed or the form is submitted.

Should old caches be dropped? (The last-rendered set of caches for a form will not be cleaned up.) In the case of a dynamic field, yes. In the case of a static field, if we need the RAM. Configure this?

@ebrehault
Copy link
Member

I have replace the direct values injection by ajax loading ('sAjaxSource': 'tojson?item=${fieldname}&rendered=true&datatables=true' instead of aaData: [[....]])

so that's a first step

djay pushed a commit that referenced this issue Mar 28, 2019
* Add template doclink

* Add select2 to datagrid

* Support different field format in datagrid

* Fix IDE bug displaying doclink

* Fix doclink in view mode

* Fix doclink view mode

* Debug docklink

* Fix doclink in view mode and edit mode of selection list

* Fix bug

* Add doctest

* Make doclink workd with multi-page form

* Add doclink ajax call

* Recompile JS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants