GET_FILE_BOX

Started by Mike Hatfield, December 14, 2018, 03:33:12 AM

Previous topic - Next topic

Mike Hatfield

I'm selecting a file from a directory:
PDIR$=""
PROOT$="\HIT\SCANDATA\"
GET_FILE_BOX PDIR$,PROOT$,"Choose Order File","Text Files|order*.TXT,"

This is fine except I want to:
a - stop the user going back up the directory tree
b - suppress the 'new folder' button

how do I do this?
Thanks
Mike H

harryv

Mike,

The only thing that you probably can do is check id proot$ is in the pdir$ if not display a message and send it back to the GET_FILE_BOX
Regards,

Harry Valters

Len Vassos

Based on feedback we received at the last DireXions, for PxPlus 2019 we added a new option to suppress the New Folder button.   We can look at potentially doing the same for going back up the directory tree.
PVX Plus Technologies, Ltd.

James Zukowski

We had similar considerations. Our implementation included adding a global variable (%No_Up_Dir%) that we tested to enable/disable the tree navigation controls.

Since GET_FILE_BOX is actually in PxPlus code, you can modify it to your needs. Just beware any changes that are implemented in upgrades.

Location: <pxplus>/lib/_plus/winutl/get_file_box
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike Hatfield

Len,

I don't see that option in the online doco for GET_FILE_BOX (only for the DIRECTORY option)
Thanks
Mike H

James Zukowski

PxPlus 2019 hasn't been released yet.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services