new ProjectVersion()
        Create a new instance of ProjectVersion
    
    
    
    
    
    
    
    
    
- Source:
- Project/ProjectVersion.js, line 46
 
- See:
Properties:
| Name | Type | Description | 
|---|---|---|
| title | String | Array of projects | 
| webInterfaces | Array | Array of webInterfaces | 
| processes | Array | Array of processes | 
| summary | Object | Contains the projects summery | 
| author | User | Contains the author's informations | 
| project | Project | Contains the project associated to the version | 
Example
Load version
		function loadVersionList(p_project){//loaded project object
            p_project.loadVersions({
				onSuccess:function(){
					var version = p_project.versions[1];
					version.load({
						onSuccess:function(){
							alert("Version loaded");
						}
					});
				}
			});
		};Methods
- 
    create()
- 
    
    
    Create a new ProjectVersion.Parameters:Name Type Argument Description options.onSuccessResource~onSuccess a callback function called in case of a success options.onFailureResource~onFailure <optional> 
 a callback function called in case of a failure options.baseUrlString <optional> 
 base URL. If not set the current base URL will be used - Source:
- Project/ProjectVersion.js, line 91
 
- See:
 
- 
    generate_xml(options)
- 
    
    
    generate xml to create/updateParameters:Name Type Description optionsobject options to be used during the call 
 PropertiesName Type Argument Description updateBoolean Is this an xml for update baseUrlString <optional> 
 base URL. If not set the current base URL will be used - Source:
- Project/ProjectVersion.js, line 290
 
- See:
 
- 
    generateUrl()
- 
    
    
    Overrides Resource's generateUrl method to return the request url- Source:
- Project/ProjectVersion.js, line 70
 
- See:
 
- 
    loadPreset()
- 
    
    
    Overrides Resource's loadPreset method.- Source:
- Project/ProjectVersion.js, line 64
 
- See:
 
- 
    loadProcesses(options)
- 
    
    
    Load a list the list of processes.Parameters:Name Type Description optionsobject options to be used during the call 
 PropertiesName Type Argument Description onSuccessResource~onSuccess a callback function called in case of a success onFailureResource~onFailure <optional> 
 a callback function called in case of a failure baseUrlString <optional> 
 base URL. If not set the current base URL will be used - Source:
- Project/ProjectVersion.js, line 265
 
- See:
 ExampleLoad processes function loadProcess(p_version){//version object p_version.loadProcesses({ onSuccess:function(){ alert("there are " +p_version.processes.length+" processes"); } }); };
- 
    loadSet(rObject)
- 
    
    
    Overrides Resource's loadSet method to set local variables after request.Parameters:Name Type Description rObjectjson JSON representation of the loaded data. - Source:
- Project/ProjectVersion.js, line 80
 
- See:
 
- 
    loadWebInterfaces(options)
- 
    
    
    Load a list the list of webInterfaces.Parameters:Name Type Description optionsobject options to be used during the call 
 PropertiesName Type Argument Description onSuccessResource~onSuccess a callback function called in case of a success onFailureResource~onFailure <optional> 
 a callback function called in case of a failure baseUrlString <optional> 
 base URL. If not set the current base URL will be used - Source:
- Project/ProjectVersion.js, line 231
 
- See:
 ExampleLoad webInterfaces function loadWebinterface(p_version){//version object p_version.loadWebInterfaces({ onSuccess:function(){ alert("there are " +p_version.webInterfaces.length+" web interfaces"); } }); };
- 
    update()
- 
    
    
    Update an Existing WebInterface.Parameters:Name Type Argument Description options.onSuccessResource~onSuccess a callback function called in case of a success options.onFailureResource~onFailure <optional> 
 a callback function called in case of a failure options.baseUrlString <optional> 
 base URL. If not set the current base URL will be used - Source:
- Project/ProjectVersion.js, line 171
 
- See:
 
