- create app instance from recordClass
Change-Id: I1fc70b4ae362daee13b856e53d065b7c3d0be2c2
Reviewed-on: http://gerrit.tine20.com/customers/4970
Reviewed-by: Michael Spahn <m.spahn@metaways.de>
Tested-by: Michael Spahn <m.spahn@metaways.de>
*/
store: null,
+ app: null,
+
/**
* initializes the component
*/
initComponent: function() {
+ if (!this.app && this.recordClass) {
+ this.app = Tine.Tinebase.appMgr.get(this.recordClass.getAppName());
+ }
+
this.combo = Tine.widgets.form.RecordPickerManager.get(this.app, this.recordClass, Ext.applyIf({},this));
this.items = [this.combo];