After creating a combo box, we have to 
 
 - Set the url. 
- Set id and autoRef.
- minChars: 0,
- displayField: 'filename',  (which is one of components of the fileStore.)we need to set autoRef: fileLoadForm2 of the FormPanel, 
and autoRef: loadProjectPresetButton2 of the Button, 
and then implement as follows (MainPanel.js) 
this.loadProjectPresetButton2.on('click', this.onSubmitClick.createCallback(this, this.fileLoadForm2, false));
this.loadProjectPresetButton2.on('click', this.delayRefreshAllTrees, this );In addition, Tree.py 
if "fileSelectCombobox2" in e.__dict__:
self.loadTree(os.path.join(BASE_PROJECT_FOLDERS[0],e.fileSelectCombobox2)+PROJECTFILE_INDICATOR)// Upload from Vizard to Browser of saved trees.//
socket.onevent('saved_trees', function(e){//})
#page_request = page_request.split('?_dc')[0]

 
No comments:
Post a Comment