Jump to content


Photo
- - - - -

Client Side File Folder Browser


7 replies to this topic

#1 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 233 posts
  • Gender:Male
  • Location:Manzanillo, Colima, Mexico

Posted 29 August 2018 - 01:37 PM

Hi there,

 

We need a solution whereby a user launches a window from ProIV (ProIV Client, not Open Client) that allows the user to browse folders on the Client side. We only want the user to be able to drill into folders they have permission for. We want them to be able to select a file and have that file copied to a folder on the ProIV server side. We are running the latest version of ProIV in a Windows environment.

 

If anyone can shed some light on available solutions I would greatly appreciate it.

 

Regards

Ross Bevin



#2 Wim Soutendijk

Wim Soutendijk

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 213 posts
  • Gender:Male
  • Location:Netherlands

Posted 31 August 2018 - 05:58 AM

Hi Ross,

 

This is how I do it:

Add an active x component CommonDialog to the statics of your screen function:

 

In cycle default logic:

CommonDialog.Visible = False
 
then define a button "Open file" in your screen with an event that calls this logic:

 

   CommonDialog.ShowOpen()
   $$FILENAME = CommonDialog.FileName
   $ServerFile = 'c:/temp/download' + @TERM
   #E = Client.Put($ServerFile,$$FILENAME)
Now the file is on your server, and you can call a cycle to open the file and process it.
 
regards,
wim 
 


#3 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 233 posts
  • Gender:Male
  • Location:Manzanillo, Colima, Mexico

Posted 31 August 2018 - 10:45 AM

Hi Wim,

 

Thanks for the reply. I'm actually looking for a solution where ProIV launches a "Windows Explorer" type of window. The user would browse folders that they have permissions on, select a file and copy it back to the server side.

 

Regards

Ross



#4 Wim Soutendijk

Wim Soutendijk

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 213 posts
  • Gender:Male
  • Location:Netherlands

Posted 31 August 2018 - 12:22 PM

just try it, that's exactly what this code will do.



#5 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 233 posts
  • Gender:Male
  • Location:Manzanillo, Colima, Mexico

Posted 31 August 2018 - 03:43 PM

OK! Will do Wim.



#6 chuckl

chuckl

    Member

  • Members
  • PipPip
  • 29 posts
  • Gender:Male
  • Location:Coppell, Texas

Posted 28 September 2018 - 04:55 PM

I am trying to use CommonDialog.ShowSave() and can't get it to work. the active x component CommonDialog is there, it won't invoke the window. Any ideas?

 

$FontName = "MS Sans Serif"
#ColorR = 128
#ColorG = 153
#ColorB = 234
$FontBold = 'Y'
$DialogTitle = 'Soloman Refund Export Location'
$FileName = $SOLOMAN_LOCATION
$InitDir = $SOLOMAN_LOCATION
$FileTitle = 'RefundsOut.txt'
$DefaultExt = 'Text File (*.txt)'
CommonDialog.DialogTitle = $DialogTitle
CommonDialog.FileName = $FileName
CommonDialog.Filter = $DefaultExt
CommonDialog.InitDir = $SOLOMAN_LOCATION
CommonDialog.FileTitle = $FileTitle
CommonDialog.ShowSave()
$FileTitle = CommonDialog.FileTitle
$FileName = CommonDialog.FileName
$FILE_NAME = $FileName
$SOLOMAN_LOCATION = $FILE_NAME
solomanlocation.Refresh()


#7 chuckl

chuckl

    Member

  • Members
  • PipPip
  • 29 posts
  • Gender:Male
  • Location:Coppell, Texas

Posted 28 September 2018 - 07:48 PM

Cancel that. I had invalid characters in Filename, it works now.



#8 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 233 posts
  • Gender:Male
  • Location:Manzanillo, Colima, Mexico

Posted 30 September 2018 - 07:03 AM

Hi everyone,

 

I forgot to follow up on this posting after Wim gave us the example coding. We did what he suggested and it indeed works. It does exactly what we wanted; thanks again Wim.

 

Regards

Ross





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users