QPR Knowledge Base 2017.1

Naming Convention of the Action Template Files

Naming Convention of the Action Template Files

Previous topic Next topic No directory for this topic  

Naming Convention of the Action Template Files

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

The value of the templates tag parameter of associationcustomattributes tag is used as a template for the actual filename of the template. The filename template includes a $ character that is for shown every attribute being displayed, substituted by the following values (in the following order):

1. <action type name><attribute name>

2. <attribute name>

3. <attribute type name>

When the first value for which a corresponding template file exists is found, it is used for creating the HTML code for that action attribute.

 

Common attributes for all action types:

Attribute

<attribute name>

<attribute type name>

Parent actions

parentassociations

parentobjects

External parent objects

externalparentobjects

externalobject

Child actions

childassociations

noncyclicobjects

Category

category

optionstring / string

Last modified by

lastmodifiedby

lastmodifieduser

Visible for users

visibleforusers

users

 

Valid attributes for Action plan actions: (<association type name> = initiative):

Attribute

<attribute name>

<attribute type name>

Owner

owner

user

Status

status

optionstring / string

Assigned To

assignedto

user

Approved By

approvedby

user

Start Date

startdate

date

Deadline

deadline

date

Completion

completion

percentage

 

Valid attributes for Document actions:

Attribute

<attribute name>

<attribute type name>

Owner

owner

user

Status

status

optionstring / string

Version

version

string

Approved By

approvedby

user

Approved Date

approveddate

user

 

Valid attributes for Risk actions:

Attribute

<attribute name>

<attribute type name>

Owner

owner

user

Status

status

optionstring / string

Severity

severity

optionstring / string

Identified By

identifiedby

user

Identified

identified

date

Probability

probability

string

Impact Minimization

impactminimization

string

Mitigation

mitigation

string

 

Valid attributes for Strategy actions:

Attribute

<attribute name>

<attribute type name>

Owner

owner

user

Status

status

optionstring / string

Valid From

validfrom

date

Valid To

validto

date

 

 

Note:

optionstring type of attributes are automatically changed to string type of attributes if option values are not defined in the ini files.

 

Examples:

Template used in the details view for all Category attributes of all action types:

associationcategoryattributedetails.tpl

 

Template used in the editor view for Category attributes of Risk actions:

associationriskcategoryattributeeditor.tpl

 

Template used for showing all string type of attributes in the details view:

associationstringattributedetails.tpl

 

Template used in the details view for all owner attributes of any action type that has the owner attribute:

associationownerattributedetails.tpl

 

Template used in the editor view for owner attributes of Action plan actions.

associationinitiativeapprovedbyattributeeditor.tpl