The information in this article applies to:
Product: Process Orchestrator for .NET
Version: 2.0
Issue
- The Caption property is not available for the ECL Field object.
Resolution
The following VB code snippet reproduces the issue:
Import Metastorm.ECL
Dim sCaption as String
Select Case aField
Case ECL.FormFieldType.TEXT
sCaption = getFieldCaption(aField)
End Select
Protected function getFieldCaption (fld as ECL.TextField) as String
return fld.caption
End function
Here is a workaround:
Using ADO.NET, return the MAPNAME, FORMNAME, and FIELDNAME in the form or actionResponse object or obtain them through the addition to Page.Session (if static). Then run the following query to return the caption for the selected field:
SELECT eCaption
FROM eField
WHERE eProcedureName = MAPNAME and eForm = FORMNAME and eField = FIELDNAME
This has been fixed in later releases.