1. Veera Venkata
  2. PowerBuilder
  3. Tuesday, 26 September 2023 10:24 AM UTC

Hi Everyone,

 

I'm struggling with this issue from last month. please help or suggest.

I got one enhancement to upload the documents using power builder web (deployed into IIS).
I'm able to upload the documents but the directory opening as server directory( that deployed IIS server path) I want to open this with user directory.

Tried with GetFileOpenName() and PBWEB functions but no luck.

please suggest how to open the user's file directory instead of IIS server directory using PB web.

Note: I tried with openfilemanager() and   UploadFiles() functions using PB WEB also. with this i can able to open the user directory but folder is saving to particular  session from the application root. unable to move that document into network drive or other local folder.

 

Regards,

Manoj

 

 

 

 

Arnd Schmidt Accepted Answer Pending Moderation
  1. Wednesday, 27 September 2023 13:14 PM UTC
  2. PowerBuilder
  3. # 1

Have you tried to move the file after the successfully upload into a directory using an UNC path?

Also check that the Application Pool User has access rights to that UNC path.

hth

Arnd

Comment
  1. Arnd Schmidt
  2. Wednesday, 27 September 2023 15:05 PM UTC
Are you really asking how to get a filename from a complete filepath, where the filename can be found after the last "\" ?
  1. Helpful
  1. Veera Venkata
  2. Thursday, 28 September 2023 10:07 AM UTC
how to move the existing document from a file directory to other folder?

or can we copy the whole folder to other folder directory instead of filename?
  1. Helpful
  1. Arnd Schmidt
  2. Thursday, 28 September 2023 11:19 AM UTC


FileCopy() /FileMove() needs filenames.

https://infocenter-archive.sybase.com/help/index.jsp?topic=/com.sybase.dc37781_1150/html/psref/CAIBIJDE.htm

You can also try to check if the file exists or get the FileLength(up_files[i]).

Remember that you are operating on a virtual file system.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 26 September 2023 23:32 PM UTC
  2. PowerBuilder
  3. # 2

Hi Manoj, Take a look at PowerServer... it basically supports all PowerBuilder features.  https://youtu.be/Li_pTEwMqw0

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 26 September 2023 12:13 PM UTC
  2. PowerBuilder
  3. # 3

Hi Manoj;

  PBWeb is a long ago & now fully deprecated feature of PB. It was removed from the PB product in version 12.5 by Sybase. Appeon PB does not include this feature. If you want to move forward with something similar, I would suggest looking at TopWiz Web from TopWiz...

https://www.topwizprogramming.com/topwizweb.html

Regards ... Chris 

Comment
  1. Veera Venkata
  2. Wednesday, 27 September 2023 09:02 AM UTC
Thanks for your response Chris,



Good Day!!



Most of the code we're using with PB only. everything working fine but I need to figure out only that how to open the user's directory in web instead of the server directorty.

is there any code snippet to get it done!

please help me on this..

Topwiz is not familiar to us.



Thanks,

Manoj

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.