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.