Author |
Message |
Gmartin3
Joined: Oct 19, 2021 Posts: 67
|
Posted: May 9, 2022 6:07 PM Post subject: File path issue in windows 11 |
|
Jarek
Some time ago I modified your old snippet for saving data from a session. It has worked without issue on Win 10 On computers that came with Win 11-and those that auto updated it seems not to work properly
Here is the the path in the expression evaluator
"design/Sessions/" + (In2 == null ? In1 : In2) + "/session.xls"
In Win 11 the files are stored in the Sessions folder rather than in the client?s named folder.
I am wondering if you might know what the issue might be.
Some clinicians work with multiple clients so this is an important issue |
|
|
jarek
Joined: Oct 22, 2007 Posts: 1037
|
Posted: May 9, 2022 6:43 PM Post subject: |
|
I would need a snippet to understand what is happening. I can't see anything obvious in your description.
If you have one, I can try it on Windows 11. |
|
|
Gmartin3
Joined: Oct 19, 2021 Posts: 67
|
Posted: May 9, 2022 7:31 PM Post subject: |
|
Ok I will send one. |
|
|
jarek
Joined: Oct 22, 2007 Posts: 1037
|
Posted: May 9, 2022 10:30 PM Post subject: |
|
I tried it on Win 11 and I don't see a difference in the behavior.
When I load the design it creates 'design/Session' folder and another folder inside it with a 'sesssion.xml' file.
When I click OK, I see 'session.xml' created in the design/Session/ folder.
I see the same behavior on both Win 10 and Win 11.
Is there something else I should be comparing? |
|
|
Gmartin3
Joined: Oct 19, 2021 Posts: 67
|
Posted: May 9, 2022 10:36 PM Post subject: |
|
When I type in a name in the text input or select one from the drop down list the named folder should show up In the sessions folder with a file for session data in it. The folder gets created but the data file in there is blank. A data file with good data goes into the sessions folder not the client named folder |
|
|
jarek
Joined: Oct 22, 2007 Posts: 1037
|
Posted: May 10, 2022 1:36 AM Post subject: |
|
Try to remove PreProcessor from this design. I don't see a reason it should be there. In general it should not be used unless necessary (when some elements do need to process before start).
With this change I see 'session.xml' appearing in the user folder created in the text field (I only tested text field, not drop down). |
|