Discussion

How to make all sections within a flow as readonly

There is a screen flow. All sections and attributes in that screen flow have to be made readonly for a particular user, and editable for another user. Is there any way to do this at the flow level or even flow action level, without creating duplicate Section rules? If not what are the other available alternatives.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

January 29, 2009 - 8:18pm

I am not sure whether it can be done at the flow-level. You can achive through custom java script. On load of the screen you can fire java script code which will iterate all html elements and change html control attribute to read-only.

Other solution could be writing hand coded section which can include out of box section with read-only flag.

Thanks
Suri

January 30, 2009 - 12:41am

quote:


Originally posted by GUPTAS06

There is a screen flow. All sections and attributes in that screen flow have to be made readonly for a particular user, and editable for another user. Is there any way to do this at the flow level or even flow action level, without creating duplicate Section rules? If not what are the other available alternatives.

There are multiple ways in which you can achieve this.

A Screen flow is created using flow actions if you use sections in the flow actions then you can create the view privilege and update privilege to determine which user can view or update the contents of the screen flow.
Hope this Helps

Regards
K..R..I..S..H

February 3, 2009 - 8:30am

Hi Krish,

your solution looks more elegant but I am curious to know by implementing previliges, whether user can see the editable section but with read-only action buttons or complete read-only section.

Thanks
Suri.

February 4, 2009 - 12:19am

quote:


Originally posted by YANNAMS2

Hi Krish,

your solution looks more elegant but I am curious to know by implementing previliges, whether user can see the editable section but with read-only action buttons or complete read-only section.

Thanks
Suri.


The question has a very broad context to it, as it all depends on how we want to handle the access control.
It can be done by using privileges on the whole application
or by using privileges at the rule level (including the control level such as buttons, textboxes etc)

The previous solution i have mentioned can be used at the section level and it displays the entire section as read only or in read-write mode as the requirement for GUPTA was such (That is what i understood it as)

However if you want the action buttons to be read only and the rest of the section editable then you can achieve it by placing a read only with a condition so that for a particular user it display the editable section but read only actions buttons and for another user both action buttons and section contents are editable. Here we are not using any privileges.

To answer you question yes it would be possible to provide the form of access control you have mentioned by using precollege but i still recommend the above mentioned approach of using read only with condition for the context of your questions

July 30, 2014 - 11:59am

Hi ,

I done this readonly section in a different way.

Create a previliage as "ReadOnly". Don't give this previliges to any user.

But whenever you want to have readonly section, just set "Update Previliage" as "ReadOnly" ( rest of the editable step, don't set this setting)

So system will check whether this user have this previliage, it won't. So it will be readonly.

Hope this will helps :)

 

April 8, 2016 - 5:22am
Response to SelvarajShanmugam

Hi,

Can you please provide more details on this.

I have the same requirement but I am not able to use this update previliage.

Thanks,

Bikash

Pega
April 11, 2016 - 3:15pm

Information about privileges:

https://pdn.pega.com/sites/pdn.pega.com/files/help_v72/procomhelpmain.htm#zstandardrules/rule-access-privilege.htm#kanchor3882

Information about sections:

https://pdn.pega.com/sites/pdn.pega.com/files/help_v72/procomhelpmain.htm#rule-/rule-html-/common/commonlayoutsection.htm

Thank you,

Bill Rathert