Skip to main content
Solved

Disable the approval of a document without a file


Forum|alt.badge.img+4

We’re using IFS Apps 10. Some of our users are forgetting to attach a file to the document before releasing or approving the document. My question is twofold:

First, is there a way to block the Release or Approval of a document without a file being associated with the document revision record?

Secondly, for those that were released or approved as essentially “empty” records, what is the best way to add a file to those records?

Thanks

Eric

 

Best answer by Amila Samarasinghe

Hi @emiller3061 

 

You can write a custom event action for event DOCUMENT_APPROVED. This event is fired when a document revision record is approved and you can write custom SQL to check the existence of the file and raise an error in the event action. 

As for the already released and approved doc, I do not think it is possible to attach a file now. May be try creating new revisions and obsoleting the original revision?

Thanks

View original
Did this topic help you find an answer to your question?

5 replies

Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+14

Hi @emiller3061 

 

You can write a custom event action for event DOCUMENT_APPROVED. This event is fired when a document revision record is approved and you can write custom SQL to check the existence of the file and raise an error in the event action. 

As for the already released and approved doc, I do not think it is possible to attach a file now. May be try creating new revisions and obsoleting the original revision?

Thanks


EqeRobertK
Superhero (Partner)
Forum|alt.badge.img+15
  • Superhero (Partner)
  • 231 replies
  • June 28, 2022

Hi @emiller3061,

There is a default value in the basic data which mentions that the user gets a warning when there is no file attached. This is CHECK_FILE_EMPTY:

 

So this will not block the user to do so, but at least the user gets a warning. If you really want to block this, then the event proposed by @Amila Samarasinghe will do the trick.

 

For the second question, you should be able to create a new revision as @Amila Samarasinghe  is mentioning. That will be created in the Preliminary state, then you can attach a file.

 

Good luck,


Robert


Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+14

Hi @EqeRobertK 

I checked CHECK_FILE_EMPTY and it only works if the file is empty and it doesn't work if there is no file at all.

 


EqeRobertK
Superhero (Partner)
Forum|alt.badge.img+15
  • Superhero (Partner)
  • 231 replies
  • June 28, 2022

Thanks @Amila Samarasinghe 

I see that I used the wrong value, it should have been VIEW_FILE_REQ:

If the value on the Document Class is set to ‘Y’, then it will really block you to approve the document:

 

@emiller3061, is this what you are looking for? So this can be set in the basic data and per document class you can overrule this.


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 9 replies
  • June 28, 2022

Thank you, everyone!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings