PxPlus User Forum

Twitter Twitter Twitter

Author Topic: GET_FILE_BOX  (Read 2049 times)

Mike Hatfield

  • Gold Member
  • ****
  • Posts: 70
    • View Profile
GET_FILE_BOX
« on: December 14, 2018, 03:33:12 AM »
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

  • Member
  • **
  • Posts: 10
    • View Profile
Re: GET_FILE_BOX
« Reply #1 on: December 14, 2018, 08:12:32 AM »
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

  • Administrator
  • Gold Member
  • *****
  • Posts: 94
    • View Profile
Re: GET_FILE_BOX
« Reply #2 on: December 14, 2018, 08:52:08 AM »
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

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Re: GET_FILE_BOX
« Reply #3 on: December 14, 2018, 10:17:07 AM »
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

  • Gold Member
  • ****
  • Posts: 70
    • View Profile
Re: GET_FILE_BOX
« Reply #4 on: December 14, 2018, 04:02:29 PM »
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

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Re: GET_FILE_BOX
« Reply #5 on: December 14, 2018, 04:29:46 PM »
PxPlus 2019 hasn't been released yet.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services