RunWRDHistoryDialog (open)
Shows a dialog with the changes for a specific entity
Syntax
LOADLIB "mod::wrd/lib/dialogs.whlib";
MACRO RunWRDHistoryDialog(OBJECT owner, OBJECT entity, RECORD options)Parameters
OBJECT ownerOwner screen
OBJECT entityShow the history of this entity
RECORD optionsOptions.
STRING ARRAY hideattributesMasks for tags of attributes to hide (format: 'type:attr' glob mask)
FUNCTION PTR mapchangesrowsMapping function for titles (RECORD ARRAY FUNCTION map(OBJECT type, RECORD ARRAY rows) In: [ entity := id, title := 'default title', type := 'default typename' ] Out:= [ entity := id, title := 'updatetitle', type := "updated typename", sortkey := "optional title sortkey" ]
BOOLEAN mergechangesIf TRUE, merge multiple changes to the same entity within a changeset
STRING ARRAY recursetypesAlso show attachments of these types.
STRING ARRAY showattributesMasks for tags to show anyway, even if they match hideattributes (format: 'type:attr' glob mask)