Monday, March 19, 2012

Using UCM Global Profile Rules with RIDC

The question came up on another forum:
  • Can I use profiles to validate my data input when I'm using RIDC?
Profiles can indeed be used in such a case, for example, to halt a RIDC checkin if a given metadata field is empty. 

There are a couple of prerequisite steps to follow:
  • In the Content Server general configuration, enable the following setting:
  • In the RIDC code, do not use CHECKIN_UNIVERSAL as the service call, but use CHECKIN_NEW instead.  (CHECKIN_UNIVERSAL doesn't load the profile engine.) 

Now build the rule solution.  The following bare-bones example makes the "Comments" field "required" to be a non-blank value for a new checkin.
  • In Configuration Manager. create a new global profile rule.  Set the activation conditions to "on submit" and "checkin new".
  • Add the "Comments" field to the rule.  In the "Use Derived Value" section, add the following code in the custom section:

    <$if strEquals(strTrimWs(#active.xComments),"")$>
     <$abortToErrorPage("Cannot submit item without any comments provided.")$>
  • Save the rule and exit Configuration Manager.
  • To test the solution, execute your RIDC code without providing any comments.  If you didn't provide any comments, the error message thrown is "Cannot submit item without any comments provided."


  1. How about you check out this info. Its almost all about writing argumentative essay but I think that you will like it.

  2. The information you share is very useful. It is closely related to my work and has helped me grow. Thank you!
    ludo game

  3. If you couldn't know about windows shortcut keys. Then visit on this website. This website helps you to know about windows shortcut keys.

  4. The team of furniture transport company in Jazan is trained at the highest level and by the largest foreign experts from the United States of America, China and Australia and specialists in the field of moving furniture without any risk and following the correct and correct methods. The company also offers its team intensive training courses and courses in ways Moving the furniture in a proper and correct manner that satisfies the customer in an unexpected way.
    شركة نقل عفش
    شركة نقل اثاث من الرياض الى جدة

    شركة نقل عفش من الرياض الى جدة
    شركة نقل عفش بمكة