Question

Is it possible to have the year in the prefix of a document name in document management module?

  • 24 February 2021
  • 3 replies
  • 76 views

Badge +2

Is it possible to put the year in the prefix of a document class in document management module?

 e.g.  Can i have the following prefix “SA-YYYY-” where YYYY represents the year and it will automatically update when the year changes ( i.e. in 2022 it will automatically know the year changed to 2022 and put 2022 in the prefix)

 

 

If possible how can it be done?


This topic has been closed for comments

3 replies

Userlevel 5
Badge +10

I’m sure this can be done via an event action or a scheduled migration job to update the Document Title with prefix derived from the “sysdate” / “created_Date”. I am unaware of any standard functionality to handle this.

Userlevel 7

Is it possible to put the year in the prefix of a document class in document management module?

 e.g.  Can i have the following prefix “SA-YYYY-” where YYYY represents the year and it will automatically update when the year changes ( i.e. in 2022 it will automatically know the year changed to 2022 and put 2022 in the prefix)

 

 

If possible how can it be done?

Do you really need it in the title? If not you could create a custom field where you concatenate the document class with the year from the created date. This way you’d be sure no one actually changed it (by mistake or deliberately) 

 

SELECT DOC_CLASS || '-' || TO_CHAR(ORIGINAL_CREATION_DATE, 'YYYY')
FROM DOC_ISSUE

 

Userlevel 7
Badge +30

Is it possible to put the year in the prefix of a document class in document management module?

 e.g.  Can i have the following prefix “SA-YYYY-” where YYYY represents the year and it will automatically update when the year changes ( i.e. in 2022 it will automatically know the year changed to 2022 and put 2022 in the prefix)

So you basically want the document class to change as the years go by. I cannot think of a good way to do that, and it would also mean you would end up with a lot of document classes in the end. Why do you need the year in the document class? There are many other dates that will let you identify the document. Possibly you can tweak the system to add the year to the document number instead, either by manually creating new number counters each year or by customizing a certain API that will be called when the document number is to be generated.

Perhaps the suggestion from @anmise is enough?