Cancel
Showing results for 
Search instead for 
Did you mean: 

Stylesheet based on the Teamcenter organization attribute security

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi,

 

Can anyone please let me know how to show different stylesheet for users based on their logged in Group security value.

 

As we know we have Groups, Roles and Users in Teamcenter Organization and for Groups, we have an attribute called security.

 

We wanted to show different stylesheet based on the Group security value(Internal, External,...)

 

AWC 4.1

Teamcenter 11.4

 

Please let me know if you have any inputs for the same.

 

We have an object A and some attributes X,Y,Z on A. People with group security internal should be able to edit only x attribute and people with group security external should be able to edit Y and Z attributes.

 

Can anyone please let me know if there is any other way to achieve this.

 

Thanks in Advance.

 

 

6 REPLIES 6

Re: Stylesheet based on the Teamcenter organization attribute security

Valued Contributor
Valued Contributor
The relation between stylesheet and objecttype is defined with preferences. Normaly these are site prefs. You could try to define this with group prefs. If you want access rights on attributes, you should define custom forms and compound prop from the form on the IR. Now you can handle the access rights on the forms in the ruletree

Re: Stylesheet based on the Teamcenter organization attribute security

Phenom
Phenom

See my post here regarding attribute access to different users.

 

Richard Bennett
Prospect PLM

Re: Stylesheet based on the Teamcenter organization attribute security

Valued Contributor
Valued Contributor
Hi Richard,

That is exactly the solution I described. My experience is to have the attributes on the form and compound on the IR, but perhaps it can also the other way around

Re: Stylesheet based on the Teamcenter organization attribute security

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
@Menk is correct, by setting the AM Rules for the Form and compounding the property to the IR (for display on the stylesheet). Compound Properties inherit the access from the source and cannot be changed.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Stylesheet based on the Teamcenter organization attribute security

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi All,

 

Many thanks for your reply.

 

Is there any way like using angular JS or CData in AWC stylesheets or Is there any other method other than Form like ITK code.

 

I am able to get group name using angular JS in stylesheet but not group security.

 

htmlPanel>
		<![CDATA[
		<script>
		   angular.module("AwRootAppModule").controller("ObjectNavSubLocationCtrll",['$scope','logService','soa_kernel_soaService','$timeout',
					   
					    function($scope,logService,soaService,$timeout){
						                     
							 $scope.completed=function(){
							     var _appCtxSvc = angular.element(document.body).injector().get('appCtxService').ctx;
                                                                var loggedInGroup=_appCtxSvc.userSession.props.group.uiValue;
								 var loggedInRole =_appCtxSvc.userSession.props.role.uiValue;
								 $timeout(function(logService){
								      console.log("Logged in Group ====>"+loggedInGroup);
								      console.log("Logged in Role  ====>"+loggedInRole);
								 },0);
												  
							 }       
												  
					}]);
		
		</script>
		<div ng-controller="ObjectNavSubLocationCtrll" ng-init="completed()" ></>
		]]>
</htmlPanel>

 

Any ideas or views are highly appreciated.

 

Thanks & Regards,

Shruthi

 

 

 

 

Re: Stylesheet based on the Teamcenter organization attribute security

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
Until attribute level security is available in Teamcenter, forms are your best option.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4