Opened 13 years ago

Closed 13 years ago

#248 closed enhancement (fixed)

ResultExtGrid - use of resource field options

Reported by: adube Owned by: adube
Priority: major Milestone: 1.4.0
Component: widgets Version: trunk
Keywords: bis-1.4.0 Cc:

Description

For the resultextgrid widget, it would be nice to be able to use the resource field options to set some column settings such as the width, type, title, etc.

Currently, we need to specify this in the 'grids' options, but if we had that in the resource options or fields instead it would be great.

Attachments (2)

patch-trunk-resultextgrid-use-resource-fields-248-r1365-A0.diff (23.2 KB ) - added by adube 13 years ago.
Patch - xslt and sample updated - missing PGSQLMapContextConfig driver changes
patch-trunk-resultextgrid-use-resource-fields-248-r1365-A1.diff (25.7 KB ) - added by adube 13 years ago.
Patch - xslt and sample updated - PGSQLMapContextConfig driver changes included

Download all attachments as: .zip

Change History (9)

comment:1 by adube, 13 years ago

Milestone: 1.2.0

No patch, bumped to 1.2.

comment:2 by adube, 13 years ago

Milestone: 1.2.01.4.0

No patch, pushed to 1.4.

comment:3 by adube, 13 years ago

Keywords: bis-1.4.0 added

comment:4 by adube, 13 years ago

Owner: set to adube

This enhancement will require 2 things :

  • (1) an update of the XSLT file of the widget for it to automatically build the same things required by the javascript.
    • the old way must still be usable
    • the "useResponseFields" option must still be usable too
  • (2) once available, the PGSQLMapContextConfig driver will be able to simply use it. Currently, resources fields are already used in the resultextgrid.php file, inside the linkResource method, to build the nodes required by the old way. We'll simply scrap that and let the new XSLT portion handle that.

by adube, 13 years ago

Patch - xslt and sample updated - missing PGSQLMapContextConfig driver changes

by adube, 13 years ago

Patch - xslt and sample updated - PGSQLMapContextConfig driver changes included

comment:5 by adube, 13 years ago

Alright, all required changes are included in the A1 patch above. If anyone wants to review, that'd be nice.

I tested in XMLConfig, XMLWorkspaceConfig and PGSQLMapContextConfig : everything works as expected.

comment:6 by adube, 13 years ago

Version: trunk

Fixed in r1366 :

  • Sample "queryonclick/simple" updated to show it it works.
  • ResultExtGrid documentation updated

comment:7 by adube, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.