To Create File on Desktop using Doors DXL OSLC service.
Hello everyone, I am facing an issue while trying to create a .txt file on the desktop using Doors DXL OSLC services called through a Python API. Below is the DXL code I am using:
pragma encoding, "UTF-8"
pragma runLim, 0 // No limit noError string getPath = (getenv("USERPROFILE"))"\\Desktop\\Export.txt" Stream outputfile = write(getPath, CP_UTF8); void getHelloString(string inputText) { outputfile << inputText close(outputfile) setDxlServiceResult "Done" }
The API output returns
Is there any way to create a .txt file on the desktop using OSLC services in Doors DXL? I appreciate any insights or suggestions on how to resolve this issue. Thank you! |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Feb 14, 5:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I don't have the slightest idea of how DXL works and what is syntax is. However, I think, if you set the service result to done without checking if your DXL operation actually worked, you should not expect anything other than what you see.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.