Environment variable

Hi,

I have run into an issue with environment variables. In a current Notes db there is a formula that sets a reference number according to the user creating the document. This formula looks to the users environment variable in their ini file.

Recently there has been some new automation with this process and some of the documents are generated automatically, therefore looking at the variable in the ini file on the server. There will always be a combination of automation and manually creating these documents. Is there a way to force the @environment formula to always look at the server ini file?

If not, is there a better solution so duplicate numbers do not occur?

Thanks in advance!

Subject: Environment variable

There’s a lot of stuff on document numbering in these forums. I think you’ll need to use script to generate them reliably.

Basically, you have to maintain your numbering on a single server, and refuse to assign any number until that server makes one available.

In my company, our administration server holds a Counters database, which can issue numbers for any other database or form. It’s a bit complicated, but has been working reliably for several years. If you’d like a sample of the code, let me know.