Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Isomorphic
    replied
    Please see RestDataSource. You can get a JSON or XML representation of the request, which when parsed, would generally be represented by an Array on any platform (especially the JSON).

    This is the recommended approach for integration when you don't have our Java server framework - this is covered in the QuickStart (Data Integration) among other places.

    Leave a comment:


  • sortBy parameter not interpreted correctly by back-end framework

    When allowing multiple sort columns in a grid, a request query string is constructed like this:
    Code:
    _sortBy=-number&_sortBy=name
    (first sort field is number descending, second name ascending). My back-end (RubyOnRails) doesn't understand this. To have it retrieve an array, it should receive "_sortBy[]" twice. I believe PHP expects the same.

    Until now I've solved this by overriding transformRequest() in the data source and this might be the right way, but maybe there's an easier way? I will look into a solution in RubyOnRails also. My goal at the moment is to reduce my custom code as much as possible.
Working...
X