]> git.evergreen-ils.org Git - working/Evergreen.git/commit
AutoFieldWidget support for augmenting pcrud search options
authorBill Erickson <berick@esilibrary.com>
Mon, 1 Aug 2011 18:04:24 +0000 (14:04 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 1 Aug 2011 18:04:24 +0000 (14:04 -0400)
commit6fa60db796c979fe381bf20ea678d6338c4ad22b
tree38150ff97bd10c7d797422c8e7a53588a1254441
parent9e8cc45fdbc0cf825eff6d22366521c6e286920f
AutoFieldWidget support for augmenting pcrud search options

Adds a new searchOptions attribute to AutoFieldWidget for specifying
additional parameters to pcrud when retrieving linked objects.  The
initial use case is for supporting a "select" list to allow
AutoFieldWidget to retrieve only the display column of a linked object
and not the whole object.

Example:

 // fetch 'remote_field_name' on the remote objects instead of
 // fetching the entire object

 myGrid.overrideWidgetArgs.some_field = {searchOptions :
 {"select":{"some_hint":["remote_field_name"]}}};

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js