Welcome to Xierpa. This is the stable 1.2 version which was developed by Petr van Blokland + Claudia Mens (buro@petr.com) and is maintained by Michiel Kauw-A-Tjoe. It is subclassed by the Museum Meermanno and American Express applications.

Events

How to build an MVC page?

The AjaxEvent class implement the storage of event parameters, as passed between calling Ajax requests and the subscribed methods that update the content of part of a page.
Methods that subscribe to a certain event name, will be called with an event as single attribute if an event with name occures.
An AjaxEvent instance holds four attributes:
name The name of the event. This is the exact label that elements subscribe on.
appid Id of the application calling
table Table name to retrieve the anchor record.
anchorid Id to retrieve the anchor record.
mode Mode of the request. This can be used e.g. to specify/idenitify multiple lists in the same interface.
data Any piece of data that is relevant to the Ajax request.
target The optional target of the result of this Ajax request, of the subscription target is undefined (None).
jscallback The optional JS callback to be executed at the end of handling this Ajax request. Must not contain single quotes.
Subscribed method are free to use this information to update the target. Additionally they can use the session and other specific parameters that are part of the Ajax URL.

MethodAttributesDocstring or default value
copy anchorid
appid
data
jscallback
mode
name
table
target
The copy method answers a copy of self, with optionally modified attributes.
getcachedrecord
getmodekey key
mode
The getmodekey method answers the key attribute depending on the event mode. The optional mode attribute allows the calculation of other modes than set in the event. If the event has no mode defined and the optional mode is not set, then answer key unchanged.
setcachedrecord record