Project

General

Profile

GraphsDatasetWin » History » Version 1

Anonymous, 16/02/2016 11:59

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