Saturday, July 14, 2018

Add a WorkflowState Field

Any form that uses the same table in the datasource as the query referenced in a
workflow document can be enabled for a workflow. This demonstration shows
how to enable workflow on the SalesTableListPage form.
You can specify conditions under which a workflow is eligible for submission.
One of these conditions must be that it has not already been submitted. To test
this condition, use a new field on the SalesTable table.
Perform the following steps to add a workflow state field.


1. Open the
AOT.

2. Expand
Data Dictionary.

3. Right
-click on Base Enums and select New Base Enum.

4. Rename the new enum to
SalesCreditLimitApprovalStatus

5. Add four elements to the Enum called NotSubmitted, Submitted,
Approved, Rejected.


6. Expand
Tables > SalesTable.

7. Right
-click on Fields and select New > Enum.

8. Right
-click on the newly created field and select Properties.

9. Change the
Name property to CreditLimitApprovalStatus.

10. Change the
EnumType property to SalesCreditLimitApprovalStatus.

11. Right-click on the SalesTable node and select Save.

Best Regards,
Hossein Karimi

No comments:

Post a Comment

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...