How to write to a file on the Workspace (server-side) ?
Hello,
We wish to update (or create) a text (xml) file on the workspace, on the server-side, upon "save" operation.
We managed to do this on the client-side sandbox and got the "unresolved" file as expected.
Our goal now is to move this functionality to the server and write the file on the user's workspace.
Given an IFileItem ift, we need to change it's content (we don't have the exact path to it, since there's no "sandbox" as was on client-side case), while creating a new version of this file (i.e. new State) and then check it into a newly created change-set.
Can anyone please provide an example that does similar thing?
If not, maybe someone can explain the needed steps to achieve that or recommend on the right practices to do this?
Thanks!
We wish to update (or create) a text (xml) file on the workspace, on the server-side, upon "save" operation.
We managed to do this on the client-side sandbox and got the "unresolved" file as expected.
Our goal now is to move this functionality to the server and write the file on the user's workspace.
Given an IFileItem ift, we need to change it's content (we don't have the exact path to it, since there's no "sandbox" as was on client-side case), while creating a new version of this file (i.e. new State) and then check it into a newly created change-set.
Can anyone please provide an example that does similar thing?
If not, maybe someone can explain the needed steps to achieve that or recommend on the right practices to do this?
Thanks!
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Feb 24 '14, 6:04 a.m.1 vote
Ehud Hoggeg
Feb 24 '14, 6:56 a.m.Tim Mok
JAZZ DEVELOPER Feb 24 '14, 9:26 a.m.Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Feb 24 '14, 12:18 p.m.