How do make a data class item display only?

This issue has been solved. See solution.
dnott's picture

We have a user define data class called LCCC_ID. This is for our Audio Visual Equipment to have an auto generated number assigned to the Asset.  When the user brings up the one asset with all the details, the auto generate number yellow star appears next to the id number.  I want this number to be display only so it cannot be changed by anyone.

Do I maybe copy this number to a different data class and make that read only?  Will that work. We are currently using version 6.5 console.

Thanks!
Diane Nott
Lorain County Community College
Elyria, Ohio

EMercado's picture

If you use security roles,

If you use security roles, don't give your users write rights to that data class and they won't be able to edit the field.

dnott's picture

security roles

I changed the security roles to read only status for that group for that one data class. The yellow star still shows up.  It is circled.

Diane

lcccidasset.JPG

------------------------------

Diane Nott

Lorain County Community College

Elyria, Ohio

MagicGuru's picture

How about mark it readonly?

How about mark this data class ReadOnly? Change its item attributes and add ReadOnly to it?

You could use a trigger in data base to populate this autogenarated field as the ReadOnly item attribute will block it from being modified from UI.

dnott's picture

read only

How would I do that? I go in the properties of that data class. I see no checkmark to make it read only.

------------------------------

Diane Nott

Lorain County Community College

Elyria, Ohio

jfang's picture

Write Resource Data permission

Solution

If you go to the Security ROle manager on the dataclasses, you would see a "Write Resource Data" permission, this will make the dataclass not editable on the edit page.

furthermore, the "Read Resource Data" permssion will prevent the role from seeing the dataclass on the edit page. Unchecking the Read Resource Data will imply no write permission as well.

Make sure you uncheck any inherited permission from the containing foler in order for the change to be effective.

dnott's picture

It worked. Thank you.

It worked. Thank you.

------------------------------

Diane Nott

Lorain County Community College

Elyria, Ohio