These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

Dynamic folder setup

I have read some of the KB articles and found them helpful. However I'm still having 2 problems.

I'm passing the variable "default.asp?jobnumber=345". 

I modified this line

wexRootPath = RealizePath(wexRoot) & strJobNumber 

So when I upload files they endup in the root and not the jobnumber directory. But its in the jobnumber directory before I click upload. 

Second problem is after the upload it refreshes back to the root because the querystring is not being passed.

I'm not using the login. So I'm trying to figure out where to add the line 

<input type="hidden" name=jobnumber value="<%strJobNumber %>">

Joel 2/11/2005 2:42 PM
Hello,
I've read several of the "dynamic root folder" threads and found them helpful, but this is the solution that I used that is working well for me.

I have an ASP login page, and when the  user logs in, I assign them a credential based on what the user database says their credential is (in your case, I guess that would be a job number).  I then assign that credential to a Session variable.

On the configuration.asp page, I took out the constant declaration "Const wexRoot" and changed it to this:
Public wexRoot

Then, I assign  the credential (which for me is the name of their root folder) to the Public variable wexRoot, and that becomes their root folder.

This works for me, and it has not affected any of the other functionality (i.e. uploading, etc.) like some of the other problems posters have mentioned when they change wexRoot from a constant to a variable.

Any comments are welcome.

Matt
Matt 2/17/2005 11:23 AM