Recurring Schedules: ab-common-recurring-pattern-edit.axvw
Recurring Schedules: ab-common-recurring-pattern-edit.axvw
This file contains the recurring schedule pattern user interface. It is a panel that you can embed into a region in any view, or display it as a popup dialog box. You do not need to know any details about the code in this file, simply add it to a layout region in your view as follows:
<panel type="view" id="recurringPatternPanel" file="ab-common-recurring-pattern-edit.axvw" layoutRegion="center" showOnLoad="false" />
You can set the
layoutRegion
to any region that you’ve defined in your view for displaying the recurring schedule pattern UI. If you prefer to display the UI in a popup dialog box, use code similar to the following to display the dialog as a response to some user action:
View.openDialog('ab-common-recurring-pattern-edit.axvw', null, false, {
width: 520, height: 225, closeButton: false,
xmlPatternRecurrence: initialPattern,
callback: function(xmlPatternNew) {
formPanel.setFieldValue("table.recurrence_pattern", xmlPatternNew);
}
});
The above will display the UI in a popup dialog that contains Save and Cancel buttons.
See Adding a Recurring Schedule to a View for more detailed integration code.