Opened 13 years ago

Closed 13 years ago

#213 closed enhancement (fixed)

ResultVectorLayer - singleMode and singleResource

Reported by: adube Owned by:
Priority: minor Milestone:
Component: widgets Version:
Keywords: Cc:

Description

In the ResultVectorLayer widget, have :

  • a new 'singleResource' Private property. String. Automatically set by the 'singleMode' option upon adding features to the layer. See below.
  • a new 'singleMode' API property (option). Boolean. Defaults to false. When set to true, the first valid feature to be added to the layer that has is linked to a resource will set the 'singleResource' property equal to the feature's resource. From there on, only features of this specific resource will be added.
  • when 'singleResource' is set, set the query widget 'multiQueryResource' as well.
  • when reseting the results, if query was not in 'multiple' mode, reset the 'singleResource' and 'multiQueryResource' properties. Requires #212.

Change History (2)

comment:1 by adube, 13 years ago

#212 : a small change of task will be required. Instead of "Letting the results know when QueryOnClick widget was in 'multiple' mode. " when querying, it should be when reseting instead (before querying).

comment:2 by adube, 13 years ago

Resolution: fixed
Status: newclosed

r1024, featuring :

  • all the above features in the description above
  • documentation about new 'singleMode' option
  • queryonclick/mutli example updated to use 'singleMode'
  • small bug fix in getObjectFromNode call in xslt file to get the widget options.

Done.

Note: See TracTickets for help on using tickets.