Pivot notifications

pivot_fields

Foldr to change or add pivot fields for the main pivot table.
The rsc contains all rsc properties for this resource, including pivot properties.
Type:
first

Return:

#pivot_fields{} properties:
  • id: m_rsc:resource()
  • rsc: list

pivot_update

Pivot just before a m_rsc_update update. Used to pivot fields before the pivot itself.

Type:
foldr

Return:

#pivot_update{} properties:
  • id: m_rsc:resource()
  • raw_props: list

custom_pivot

Add custom pivot fields to a resource’s search index (map) Result is a list of {module, props} pairs. This will update a table “pivot_<module>”. You must ensure that the table exists.

Type:
map

Return:

#custom_pivot{} properties:
  • id: m_rsc:resource()

See also

rsc_pivot_done