GraphsDatasetWin » History » Version 1
Guanji Wang, 16/02/2016 11:59
1 | 1 | Guanji Wang | h1. GraphsDatasetWin |
---|---|---|---|
2 | 1 | Guanji Wang | |
3 | 1 | Guanji Wang | h2. _onOK : function () |
4 | 1 | Guanji Wang | 1. Check the dataset link situation |
5 | 1 | Guanji Wang | 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 |
6 | 1 | Guanji Wang | 3. Define/Show the values by default for the UI |
7 | 1 | Guanji Wang | 4. The code : |
8 | 1 | Guanji Wang | |
9 | 1 | Guanji Wang | @ |
10 | 1 | Guanji Wang | if (this.mode == 'link') { |
11 | 1 | Guanji Wang | this.form.findField('nbRecord').setValue(nbRecord); |
12 | 1 | Guanji Wang | this.form.findField('datasetURL').setValue(dataset.get("url")); |
13 | 1 | Guanji Wang | Ext.getCmp('linktodataset').setText('<span style="">Link_Change_2016</span>'); |
14 | 1 | Guanji Wang | Ext.getCmp('unlinkbutton').setDisabled(false); |
15 | 1 | Guanji Wang | Ext.getCmp('datatablecheckbox').setDisabled(false); |
16 | 1 | Guanji Wang | Ext.getCmp('queryformcheckbox').setDisabled(false); |
17 | 1 | Guanji Wang | } |
18 | 1 | Guanji Wang | @ |
19 | 1 | Guanji Wang | !Selection_032.png! |