fileSelector() dialog does not list files

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
9 posts • Page 1 of 1
bhavna
Posts:37
Joined: Mon Dec 20, 2010 1:12 pm

fileSelector() dialog does not list files

Post by bhavna »

Hi,

Platform: Windows 7, Windows 2008 R2
Version: WINCCOA 3.11+SP1

I have a directory holding multiple directories which in turn have text files in them.
From a panel I try to load/open a file using fileSelector() function. The fileSelector() goes successfully to the UNC path specified, but does not list any files there. The work around then is to I have to move one directory up and come back again to the desired directory.

int rc;
string filename;
rc=fileSelector(filename, "//ACS-0/DATA/MPS_DATA/DPQPSP",0,"*.txt");

Regards,
Bhavna

bhavna
Posts:37
Joined: Mon Dec 20, 2010 1:12 pm

Re: fileSelector() dialog does not list files

Post by bhavna »

If anyone has faced similar problem, please let me know the solution to it or maybe some other method to open/load text files.

dbindernagel
Posts:161
Joined: Mon Feb 23, 2015 1:34 pm

Re: fileSelector() dialog does not list files

Post by dbindernagel »

Try this (adding a slash to the end of the path):
rc=fileSelector(filename, "//ACS-0/DATA/MPS_DATA/DPQPSP/", 0, "*.txt");

bhavna
Posts:37
Joined: Mon Dec 20, 2010 1:12 pm

Re: fileSelector() dialog does not list files

Post by bhavna »

No, it does not work. Recently I made a small change. Instead of writing "//ACS-0" I wrote "//acs-0" (i.e lower case) and it seems to work.........somehow.

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: fileSelector() dialog does not list files

Post by RudiKreiner »

I even have this problem with the GEDI's "Open Panel" file selector in V3.14. If I switch to another project and then back to the original one again then it works.
It is not a big deal if you know that, but if you don't then you get a big scare :ohmy: because you may think that all of your panels have been deleted

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: fileSelector() dialog does not list files

Post by RudiKreiner »

I think this is a bug in ETM's File Selector widget.
Do they know about it?
Can they reproduce the behavior?
Will they fix it?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: fileSelector() dialog does not list files

Post by mkoller »

The fileSelector() internally uses Qts QFileDialog. If there's a problem then probably a bug in Qt.
And no, we don't know about it.
Checking the Qt bugtracker ...
I find: https://bugreports.qt.io/browse/QTBUG-17750
Please check if that is the problem you encounter and if so, vote for this Qt bug or add a comment.

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: fileSelector() dialog does not list files

Post by RudiKreiner »

Thanks for the info. It looks like the problem really is the QT bug that you referenced.

Even though I mount as
\\\\Standard\\projects
with a big S at the beginning on my PC,
the windows explorer shows me that the directory is named
\\\\standard\\projects
with a small s at the beginning.

I voted for the Qt bug, hopefully they will fix it soon.

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: fileSelector() dialog does not list files

Post by RudiKreiner »

I'm guessing that the first time I mounted I used \\\\standard\\projects, but now I am using the proper name \\\\Standard\\projects, but somehow windows "remembers" the lower case name in the repository somewhere.

Until the QT folks fix the bug, I guess that I have to be more careful with the case sensitivity of my mount points.

9 posts • Page 1 of 1