Expand my Community achievements bar.

Latest Community Ideas Review is Out: Discover What’s New and What to Expect!
SOLVED

View/read only format a column based on a custom field

Avatar

Level 3

Is it possible to format a column results in project report so that its view/read only?

 

I have an extensive report containing both custom data and calculated columns. Id like to restrict all users to change the custom data on this report.

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi @LukaszMatyszewski 

 

yes, two approaches:

  1. If you use valueexpression instead of valuefield that column just prints out the value and is no longer connected to the field. 
    • valuefield=SomeField       >     valueexpression={DE:SomeField}
    • Note that if you have fields where the label/value are different valueexpression will print out both label and value

  2. you can add makeFieldEditable=false in text mode to leave it as is (ie. showing exactly what it does out of box) and you disable inline editing. 

In your case I'd start with #2 on the columns you want to make non-editable.

View solution in original post

5 Replies

Avatar

Correct answer by
Level 6

Hi @LukaszMatyszewski 

 

yes, two approaches:

  1. If you use valueexpression instead of valuefield that column just prints out the value and is no longer connected to the field. 
    • valuefield=SomeField       >     valueexpression={DE:SomeField}
    • Note that if you have fields where the label/value are different valueexpression will print out both label and value

  2. you can add makeFieldEditable=false in text mode to leave it as is (ie. showing exactly what it does out of box) and you disable inline editing. 

In your case I'd start with #2 on the columns you want to make non-editable.

Avatar

Community Advisor

 

Hi @LukaszMatyszewski,

 

Another option is to create a dedicated Read Only user account, ensure it has only view access to all of the information of interest, then update any such report to "Run As" that Read Only user.

 

Regards,

Doug

Avatar

Level 3

That said, I do have a trouble to make it work. Im not sure yet what is the problem.