// setup namespace Zymonic.FormFormat = {}; // base form format // don't do anything here, makes it easy to establish inheritance Zymonic.FormFormat.FormFormat = function() {}; // init function Zymonic.FormFormat.FormFormat.prototype.init = function(args) { for (var key in args) { this[key] = args[key]; } if (this.ident != "") { Zymonic.add_to_lookup('FormFormat', this.ident, this); } }; // get form records Zymonic.FormFormat.FormFormat.prototype.getFormRecords = function(lookup_fields, lookup_record_containers) { if (this.form) { return this.form.getRecords(lookup_fields, lookup_record_containers); } return []; }; // get form container of all records from the GUI Zymonic.FormFormat.FormFormat.prototype.getFormAllRecordsContainerDiv = function() { if (this.form) { return this.form.getAllRecordsContainerDiv(); } return null; }; //get form container of all records from the GUI Zymonic.FormFormat.FormFormat.prototype.getFormSingleRecordsContainerDiv = function(record_id) { if (this.form) { return this.form.getSingleRecordContainerDiv(record_id); } return null; }; Zymonic.FormFormat.FormFormat.prototype.isFormHorizontal = function() { if (this.form) { return this.form.isHorizontal(); } return false; }; Zymonic.FormFormat.FormFormat.prototype.getFormHorizontalTable = function() { if (this.form) { return this.form.getHorizontalTable(); } return null; }; // locks the form record container and returns function to call to unblock it Zymonic.FormFormat.FormFormat.prototype.blockFormAllRecords = function() { if (this.form) { return this.form.blockAllRecords(); } return null; }; // clears any caches from this and the container form Zymonic.FormFormat.FormFormat.prototype.clearCaches = function() { if (this.form) { return this.form.clearCaches(); } return null; };