Documentum: I have to make attribute A of a document, only if attribute B gets one particular value

100 views Asked by At

Documentum: I have to make attribute A of a document, only if attribute B gets one particular value (if attribB="bang" then "make attribA reuired/NOT_NULL").

a) How can I do this with Oracle triggers (PL/SQL)?
b) How can I do this with Java?
c) or maybe even JS client-side validation? (IMHO, last, emergency case)

2

There are 2 answers

2
Krishnendu Dey On

You can do it via java script validation. In java script you can check if attribute Ba has a value 'BANG' then only proced otherwise pop-up alart message.

0
Miki On

Although your question is not precise, based on what you did ask you have these options:

  • BOF (Business object framework), i.e. TBO logic (Type Based Object) - write your custom Java code for various object events - doSave for example
  • depending on client you are using (WDK application, xCP 2.x based on extJS) you can use client validation - use this as last option

P.S. And btw, although it is possible, don't mess with the DB under Documentum for these kind of things.