NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
Web Server - Ask For Help / Re: Desktop File path
« Last post by Richard I on Today at 04:32:15 PM »
Thanks Sean and others,
Yes I understand the limitations as outlined.
I am using Amazon virtual servers to host and if possible I am trying to limit users access to those server's desktop.
Saving to the Servers backup is currently an option in the app with the users cutting  and paste back to their local

However I have found I can using the File Download app  bring the backup folder back as a zip file.
which suits and makes it elegant but, the question now is how to programmatically get WinZip to perform the creation  of a zip file
Stu Andrews in this thread mentioned rar backups as a possible solution - i am exploring that.
 
Cheers
Richard


2
Web Server - Ask For Help / Re: Desktop File path
« Last post by seanh on Today at 03:54:03 PM »
Hi Richard,
No I don't think it can be done the way you would like.
1.  Because the 2 locations are on different machines and not really connected as such.
2.  Because any access to the local system is through the browser, which tends to get locked out of doing that sort of thing for good security reasons.
You can certainly send the file as a download, but the browser and user will still need to interact with it, again for security and because the only connection between you and the user it via the browser.
3
Web Server - Ask For Help / Re: Date and lookup
« Last post by Johan de Klerk on Today at 04:34:44 AM »
Hi Johan,

See this thread: https://www.nettalkcentral.com/forum/index.php?topic=9310.msg38141#msg38141

p_web.SetOption(loc:options,'changeMonth','true')
p_web.SetOption(loc:options,'changeYear','true' )
p_web.SetOption(loc:options,'yearRange:','-117:+0' )

Regards

Johan de Klerk
4
Web Server - Ask For Help / Date and lookup
« Last post by JohanR on Today at 04:26:09 AM »

Hi,

Any tips on how to handle date entry for DOB's?

The popup calendar does not have a year button,
hot to make it easy to get to to your birth year?

Can I prime the lookup with a year at least if I have a separate drop field just for years?
Or is the only option to do 3 separate fields for YYYY, MM, DD?


thanks

Johan





5
Web Server - Ask For Help / Re: Desktop File path
« Last post by rjolda on Today at 12:49:25 AM »
HI RIchard,
I am still not sure what you are trying to do.  Like Stu said - everything that web server accesses should be beneath the web folder  - otherwise you compromise security on your server. 
I am not sure why users would want to work on their local folder?
I do backups but end user has no control - and they are off site and in the cloud...
The best way for users to have access to their machine and run a desktop program AND connect to a web app is to build a net Web Client into the desktop app. 
Ron
6
Web Server - Ask For Help / Re: Desktop File path
« Last post by Stu on May 29, 2024, 08:37:12 PM »
Hi Richard,

How does the webserver have access to the user's desktop to copy the files?

Generally if you want to give the user a way to "get a file to a location", you host it out of the webserver and give them a link to it - when they click they should get the browser option to save/open.

So if you have a rar/zip backup file, you would put that somewhere under the webserver "web" folder, then build a url to that location, put the url on the NetWebForm (or whatever proc you are building), and they click + download.

If you go deeper, you would build a button + progress bar interface (where the progress bar turns into a link to download).

There should be examples that do this.
7
Web Server - Ask For Help / Re: Desktop File path
« Last post by Richard I on May 29, 2024, 06:58:05 PM »
Ron,
In my post you will note I am trying to direct a folder to the users desktop
It appears that the dos filepath template available in Clarion is not applicable to Webapps

So Im creating a folder, copying tps files to it and then the intention is to copy that folder to the users desktop
(The backup routine is working and currently the user needs to navigate to the app folder,copy and paste)

Its similar intent to the  file download app but a folder does not have a suffix.

I await in eager anticipation.....
Regards,
Richard
8
Web Server - Ask For Help / Re: Desktop File path
« Last post by rjolda on May 29, 2024, 01:08:03 AM »
Hi Richard,
Yes, There is always a way.  What are you trying to get done?
Ron
9
Web Server - Ask For Help / Desktop File path
« Last post by Richard I on May 28, 2024, 09:17:52 PM »
Hello
I have a backup routine with a string field called loc:desktopfilepath
I want the user to be able to lookup  their own local desktop  path so the created folder is copied there....
Is there a way?
Thanks Richard
NT 14.22

   IF p_web.GSV('loc:Desktopfilepath') = ''
         locsite = 'VisaBackup'&'-'&FORMAT(today(),@D11)       !  loc:Alert ='Desktop filepath is empty - populate location'
      ELSE
         locsite =  p_web.GSV('loc:Desktopfilepath')&'\VisaBackup'&'-'&FORMAT(today(),@D11)
      END
   
      CreateDirectory(locsite)
      copy('User.tps',locsite)
etc
10
Web Server - Ask For Help / Re: File Upload button on MemForm
« Last post by jking on May 28, 2024, 12:05:43 PM »
Hi Bruce,

     In preparing the example app web26, I found a solution.  I simply created a local variable (string) and used this in the Field name on the field tab of the File Upload button.  It now uploads the selected file to the uploads folder.

Thanks,

Jeff
Pages: [1] 2 3 ... 10