Adding a required attribute while having CIs of this type for VCM version earlier than 7.6


VCM does not allow CTD to be changed significantly while having CI of this CTD in system

We have few options in hand:

  1. If you are using VCM 7.6, you can use Content Type Evolution feature of VCM 7.6 2. If you are using VCM 6.5 or earlier, this feature is not there. Then, you have two options:
    1. Export all instances of the content type with vgnexport.
    2. Delete all instances.
  2. Make the necessary changes to the content type.
  3. Unpack the exported package and remove the CTD nodes from packageBody.xml. Once this is complete, re-package and import. Skipping this step will cause the old CTDs to be re-imported.
  4. Import the instances back into the system with vgnimport.

But, import/export is also not very easy to do specially, if you have huge amount of data in system. In this case, you can use:

  1. Alter the CTD table to add an extra attribute.
  2. Add this extra attribute to your CTD using AppConsole.
  3. Try to make it require, it will give you exception.
  4. Run the query given below against your VCM system database:update vgnasattrdef set required='T' where name='Attribute-Name';where, Attribute-Name is xml name of the attribute which we added and want to make that require.
  5. Make sure the 1 row updated with last query.
  6. Restart the vgnvcmserver.

Go to AppConsole and confirm that your attribute is required now.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值