Normal Topic Server Managed Lookup Files (Read 499 times)
MP
Full Member
***
Offline



Posts: 104
Joined: Sep 3rd, 2007
Server Managed Lookup Files
Dec 19th, 2007 at 1:24am
Print Post Print Post  
In a Client/Server environment, files which contain lookup data (such as the state tax rate file in Appendix 2 of the Sesame Programming Guide) should optimally be stored on the Server.  This is for both security reasons (because you don't want end users to be able to edit the file) and deployment reasons (because you don't want to modify every client desktop when the tax rates change).  Sesame definitely has the ability to open Server side files, but @ServerFileDialog requires user intervention.  I would like the ability, using a command such as FileOpen, to open a file in the working directory of the Sesame server.  Can I do this?  If not, my workaround idea is to store a delimited dataset in a Global Value, which is a less elegant and less secure solution.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Server Managed Lookup Files
Reply #1 - Dec 19th, 2007 at 1:28am
Print Post Print Post  
UNC paths or a mapped drive should do it for you.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
MP
Full Member
***
Offline



Posts: 104
Joined: Sep 3rd, 2007
Re: Server Managed Lookup Files
Reply #2 - Dec 19th, 2007 at 1:41am
Print Post Print Post  
Hammer wrote on Dec 19th, 2007 at 1:28am:
UNC paths or a mapped hard drive should do it for you.

That imposes two burdens:

1) One has to hard-code the path/drive.  Since a lookup/config file can exist in a fixed location (preferably the working directory of the Server instance), one shouldn't be required to hard-code path/drive information into the application.

2) One then needs to manage the file system access rights of the lookup/config file such that only authorized users are able to write to it.  This headache would be avoided by hiding the file behind the wall erected by the Sesame server.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Server Managed Lookup Files
Reply #3 - Dec 19th, 2007 at 1:51am
Print Post Print Post  
MP wrote on Dec 19th, 2007 at 1:41am:
1) One has to hard-code the path/drive.  Since a lookup/config file can exist in a fixed location (preferably the working directory of the Server instance), one shouldn't be required to hard-code path/drive information into the application.

You can reduce this burden by placing the root path to be appended in a GlobalValue. Then file paths can be relative to that path.

Quote:
2) One then needs to manage the file system access rights of the lookup/config file such that only authorized users are able to write to it.

Yes, you do need to manage your file system access rights, if you are worried about someone editing your lookup file.


  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged