GraphsDatasetWin¶
_onOK : function ()
1. Check the dataset link situation
2. Add new mode for the tree node, as in the code of AKKA, there is a mode = 'create', so we just need to create a new 'mode : 'link' in GraphNodeWin.js and use it in GraphsdatasetWin.js
3. Define/Show the values by default for the UI
4. The code :¶
if (this.mode == 'link') {
this.form.findField('nbRecord').setValue(nbRecord);
this.form.findField('datasetURL').setValue(dataset.get("url"));
Ext.getCmp('linktodataset').setText('<span style="">Link_Change_2016</span>');
Ext.getCmp('unlinkbutton').setDisabled(false);
Ext.getCmp('datatablecheckbox').setDisabled(false);
Ext.getCmp('queryformcheckbox').setDisabled(false);
}