Windows 10 vs Windows 7 file explorer component different behavior?

I’ve been getting complaints from some clients of our program that our email screen which normally assists you in selecting attachments doesn’t work for some people. The common thread we’ve found is that they are all Windows 10 users, while all our Windows 7 users it works fine.

On the email window I have a “attach invoice” button that has a custom property that finds the folder path that should be selected. Pressing the attach invoice button runs this script

import app.email

event.source.parent.getComponent('Container_files').visible = 1
event.source.parent.getComponent('Container_files').in_type = "Email.Service"
explorer = event.source.parent.getComponent('Container_files').getComponent('File Explorer')
path = event.source.directoryLower
event.source.parent.getComponent('Container_files').getComponent('Text Field_filePath').text = path
app.email.scrollToPath(explorer, 15)		

where app.email.scrollToPath is this script

def scrollToPath(explorer, shift = 0):
#	explorer.setSelectedPath(path)
	view = explorer.getViewport().getView()
	path = view.getSelectionPath()
	row = view.getRowForPath(path)
	if (row+shift) <= view.getRowCount():
		row = row + shift
	view.scrollRowToVisible(row)

Is this something anyone else has noticed, or is a known issue? I can’t figure out why this is happening, the only thing that seems to determine it is Windows 10 vs 7.

A picture of it working on a windows 7 machine

And then for the same exact window/paramters, on a windows 10 machine

These were also done with the same user credentials.

These two lines would be my suspicion - are they mounted to the same drive letter in both cases? Is the root folder of the file explorer set up the same?

You could also try simplifying your scrollToPath method; there's a public method on the file explorer component:
public void expandSelectedPath(File selectedPathFile)

You just need to:

from java.io import File
filePath = File("someString")
2 Likes

This was a low priority ticket but finally got around to it. My script still does not work with windows 10

def scrollToPath(explorer, shift = 0, path="R:\\"):
	#	explorer.setSelectedPath(path)
	from java.io import File
	filePath = File(path)
	explorer.expandSelectedPath(filePath)
	view = explorer.getViewport().getView()
	path = view.getSelectionPath()
	row = view.getRowForPath(path)
	if (row+shift) <= view.getRowCount():
		row = row + shift
	view.scrollRowToVisible(row)

Any other things I can try with this?

Have you tried using an absolute path to the share instead of the mapped drive letter?

With the IP address you mean? Yes I did.