hello,can a container in a datacapture be viewable only to specific roles, any suggestion on how to perform this will be apreciated. I want this continer to be view only by master role when creating a new or editing datacapture.thank you
I can think of following ways to implement what you described, You could choose something along these lines depending on your implementation and setup and how much time you want to invest in it being creative about the whole deal A] 1. onFormInit do the getRole(); to find user role and use2. IWDatacapture.getItem( "/PATH/TO/YOUR/CONTAINER").setVisible(false);B] 1. use a CGI callout to display the role-based fields 2. use the iw_role environment variable to display the required container field itemsC]1. use the getRole() formapi function and set your container to 'isCollapsed' state 'onFormInit' for unauthorized roles, 2. Then use the 'onCollapseOrExpand' event to watch this container and set it to 'isCollapsed' for an unauthorized roleD] 1.Use an inline callout script to populate your container 2. In the script get the user role by using something like this: $role = $ENV{IW_ROLE};3. Then populate the container by returning it within tags or return empty tagsHTH