+
+ var store = new Ext.data.ArrayStore({
+ autoDestroy: true,
+ storeId: 'my_store',
+ fields: [
+ {name: 'value', type: 'string'},
+ {name: 'display', type: 'string'}
+ ]
+ });
+
+ var combodata;
+ if (me.parenttype === "Snapshot") {
+ combodata = [["clone","Clone"]];
+ } else if (me.parenttype === "Volume") {
+ combodata = [["snapshot", "Snapshot"]];
+ } else {
+ combodata = [["filesystem","Filesystem"],
+ ["volume","Volume"],
+ ["snapshot","Snapshot"]];
+ }
+ store.loadData(combodata,false);
+