Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enterprise Scan - Dynamic Folder using a Context variable?

Status
Not open for further replies.

apbaman

IS-IT--Management
Mar 8, 2005
6
US
Following up on thread862-1671824

I am trying to configure Enterprise Scan to Archive to Content Server. I know how to do one of three things:
1) make "Dynamic Folder" a constant
2) set up "Dynamic Folder" using one or more of the choices available using the Insert> Button (these were referred to in thread862-1671824)
3) a combination of the above

However, what I want to do is use one of the scripts to set up a (Context) variable (say, current date as yyyy-mm-dd) without any user intervention, then use that (Context) variable as the Dynamic Folder.

I have tried setting Context["SYSTEM_DATE"] in a script, then entering <SYSTEM_DATE> as the Dynamic Folder, hoping it would reference the Context variable and get the value. I get a fatal error in Content Server.

I suspect I am missing something simple. Ideas?

Thanks!

Dave
 
First try to learn Jscript as in a tutorial.Then in many of the scan steps you can do jscript.Jscript is microsoft's scripting framework not related to javascript.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Um, thanks.

OpenText helped me find the answer:

The problem is that Context variables are only available in the context of the scripts. They are NOT availabe to the Document Export steps.

Instead of a Context variable, I had to set up a "field" using, for example:
var SYSDATE = DateTime.Now.ToString("yyyy-MM-dd")
Fields.SetString("SYSTEM_DATE",SYSDATE);

Then, I could use <SYSTEM_DATE> in the Document Export step.

Thanks to Mark at OpenText for his help!

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top