Monday, August 17, 2015

Idoc Script for WebCenter Profile Security

Some Idoc Script for webcenter security implementation.

For Document CheckIn:-

<$if userHasRole("ChairmanAdmin")$>
<$isLinkActive=1$>
<$elseif userHasRole("ChairmanSubAdmin")$>
<$isLinkActive=1$>
<$elseif userHasRole("ChairmanContributor")$>
<$isLinkActive=1$>
<$endif$>

For Document Search:-

<$if userHasRole("ChairmanAdmin")$>
<$isLinkActive=1$>
<$elseif userHasRole("ChairmanSubAdmin")$>
<$isLinkActive=1$>
<$elseif userHasRole("ChairmanContributor")$>
<$isLinkActive=1$>
<$elseif userHasRole("ChairmanViewer")$>
<$isLinkActive=1$>
<$endif$>

Default Title Value:-

<$if #active.dDocType like "FinanceSupplierInvoice"$>
<$dprDefaultValue="Supplier Invoice"$>
<$endif$>

Default Drive Title :-
<$dprDerivedValue="Sales - "&#active.xOrderNumber$>
<$dprDerivedValue=#active.xSalesClassification&"  - "&#active.xOrderNumber$>


No comments:

AWS EC2 - SSH locked with UFW

Need to update the instance's user data: 1. Stop the instance 2. Right click (windows) or ctrl + click (Mac) on the instance to open a c...