| Summary: | How best to get the Orion workspace using the file client | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Anton McConville <antonm> |
| Component: | Client | Assignee: | John Arthorne <john.arthorne> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Mike_Wilson |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
. |
For Orion Projects, I need to include the Orion workspace in the navigation tree. Right now when I ask for the workspace information I do it like this: var loadedWorkspace = fileClient.loadWorkspace(""); Deferred.when( loadedWorkspace, function(workspace) { var location = workspace.Location; myexplorer.loadResourceList( location, true, null ); }); This results in the content of the workspace being listed in the tree - the children of the workspace, as opposed to an root folder for the entire workspace, which is what I'm looking for. workspace.Location is the same as workspace.ChildrenLocation In order to get the behavior I want, I'll have to artificially make a parent folder for the workspace. I'm not sure that this is how it should work. When I ask for the the drives, I get a root folder for the drive - which is what I want ... var loadedWorkspace = fileClient.loadWorkspace(""); Deferred.when( loadedWorkspace, function(workspace) { var location = workspace.DriveLocation; myexplorer.loadResourceList( location, true, null ); }); Should the workspace.Location not return the same as a DriveLocation?