set viewonly for managetype = view