Oracle WebCenter Content (MOSC)

MOSC Banner

Capture lock or unlock meta fields

edited Sep 14, 2016 10:23AM in Oracle WebCenter Content (MOSC) 3 commentsAnswered

Hi,

I've a requirement to lock or unlock  the fields based on some condition.say if field1 value exits then lock all remaining fields else unlock

for this I implemented the logic in function Document Selected

if(FieldrID !=null && Field !=" ")

   {

    print("inside IF");

    fieldDefs.findByName(fieldsToCopy[fieldIdx]).locked = true;

   

    print("After inside IF");

   }

   else  {

    print("else Starting---->");

   

    fieldDefs.findByName(fieldsToCopy[fieldIdx]).locked = false;

    print("after else***---->");

   }

Using the above code base, this is not changing the locked value from true to false, Once true then it is keeping lock for all

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center