The <EmployeePropertyGrid> tag can be used in XML forms. This tag allows you to manipulate employee properties in a form using a grid.
Not all properties are suitable for this grid. The properties should logically share effective dates.
To set up the employee property grid:
- Go to HR Admin > Employee Properties.
- Create employee properties and click Save.
- In Workflow Administration > Form Builder, click Add to create the employee form.
- Set up your employee properties form:
- In the Properties tab, fill out the fields.
- In the XML tab, add the form’s XML.
- Click Save. The XML looks as follows:
- Copy
<WF_DynamicForm>
<DataClass>Employee</DataClass>
<FormHeader>
<Style>header</Style>
<Title />
</FormHeader>
<EmployeeHeaderPanel>
<Style />
</EmployeeHeaderPanel>
<FormBody>
<Style>IVFormBody</Style>
<Block>
<NumberOfColumns>1</NumberOfColumns>
</Block>
<EmployeePropertyGrid>
<Style />
<Block>1</Block>
<Row>1</Row>
<Column>0</Column>
<RowSpan>8</RowSpan>
<AuthorizationKey>ALL</AuthorizationKey>
<GroupProperties>true</GroupProperties>
<ValidationTitle>Car Info</ValidationTitle>
<EPGridColumn>
<BindingProperty>Value</BindingProperty>
<XRefCode>EmployeePropertyXrefCode18</XRefCode>
<DefaultValue>BMW</DefaultValue>
</EPGridColumn>
<EPGridColumn>
<BindingProperty>Value</BindingProperty>
<XRefCode>EmployeePropertyXrefCode19</XRefCode>
<IsRequired>True</IsRequired>
<HeaderCaption>Year of purchase</HeaderCaption>
</EPGridColumn>
<EPGridColumn>
<BindingProperty>Value</BindingProperty>
<XRefCode>EmployeePropertyXrefCode20</XRefCode>
<IsRequired>True</IsRequired>
<DefaultValue>100</DefaultValue>
</EPGridColumn>
</EmployeePropertyGrid>
</FormBody>
</WF_DynamicForm>
- In Workflow Administration > Role Privileges, assign the form to the feature and the role with direct save workflow:
- Click Add.
- Complete the Parent Feature, Form, and Workflow fields.
- Click in the Role field and select the roles.
- Click Save.
When the employee with the assigned role logs in and navigates to the assigned feature, the form name is available in the list of forms.