For a long time (always) a problem exists in ECTR, which may lead to inconsistent data in session which in turn can cause data loss.
The "drop" of a document outside of ECTR in a file system can have unforeseen side effects.
A document is "in work" in ECTR and modified by me. The file is RW in the session directory.
Now I drag this modified document with the mouse from ECTR-folder and drop it in an new empty windows directory (file system):
What now happens is that the file is implicit moved by operating system from the session directory into the new empty directory where the user dropped the document.
If I now try to continue changing the document in CAD system, ECTR returns this error:
Reason: The file is not in the session directory of the ECTR any more because it was moved away by explorer during DnD. For ECTR it looks like that the document is checked out for me in SAP but in work somewhere else, not on this workstation, not in this running ECTR session.
If I know the reason, I can just drag it from the new directory and drop / copy it in the session directory back. Then I can continue to work.
If I have no idea about this issue, the only chance for me is to "Cancel Edit and Discard Work" for this document.
But then I have a data loss of the changes I have done at this document since I checked it out from SAP.
Symptom when you "remove" the file with the drag & drop feature while it is open in NX:
The root cause is that main original was removed from session by explorer, the additional directory is still there. Different actions/processes in ECTR, different current status of the document or content of the .di may produce completely different error messages.
Background information about the Drag & Drop feature
The transferred data can be of various type. A
Flavor provides information about the data being transferred. Usually, we can drag and drop different things: Meta data or file objects. If we drag a document inside ECTR, we drag and drop meta data. If we drag a document in ECTR and move it to another place, we drag and drop the file.
The Drag & Drop functionality with files from the desktop window is required to drop the document onto a CAD system and insert it there into an assembly. For this use case it must be the file in the session directory.
There exists three actions for the drag & drop feature: Move, Copy and Link. For example, the default generally indicates a move action, holding the Control key indicates a copy action, and holding both Shift and Control (CTRL-SHIFT) indicates a linking action. When the user drags a document inside ECTR, we must define which actions are allowed for this document. The "Move" - Use case is used to move a document from one folder into an other folder.
The combination of the "Move" - Action and the "file" Flavor leads to this on top described issue.
No solution is possible without changing the DnD behavior:
- We can switch off the MOVE action in the desktop window. Then it is not possible to move documents from one ECTR folder to another ECTR folder, you can just copy it with drag & drop.
- We can switch off the "file" flavor, then the "add component" by DnD will not work any more for CAD Systems.
- We can do a tricky combination: Switch off the MOVE action in desktop window but use the CTRL-SHIFT key to change the action from copy not to link (default operation for CTRL-SHIFT) but to MOVE. Then all use cases are still possible but we have to clear communicate this behavior change.
Solution with 18.104.22.168, 22.214.171.124
Workaround with older versions of ECTR
Change default for drag & drop in Windows for all applications
- No labels