\wfgen\wfapps\webforms
directory (e.g.\wfgen\wfapps\webforms\MyWebForm
).MyWebForm
because of those changes, you should duplicate MyWebForm
beforehand, then create another IIS application. Otherwise, the two versions of the process will use the same modified MyWebForm
.\wfgen\wfapps\webforms\MyWebForm
.
web.config
file in your web project if you are using C# as your development language in the Microsoft Visual Studio IDE. In order to see complete error messages when you want to debug, you must have a web.config
file. To add a default web.config
file to your project, do the following:web.config
file:"true"
:mode="Off"
:WorkflowGen.My.dll
in your web project and then add this instruction to the beginning of your web form:WorfklowGen.My.Web.UI.WebForms
namespace:SubmitButton
SubmitButton
.SubmitButton
in your entire web form. If you want more than one submit button (e.g. for a draft submit button), then you can use the SubmitToWorkflow()
method in the Click
event of your additional buttons.Button
, LinkButton
, or ImageButton
.TextBox
Label
RadioButton
RadioButtonList
CheckBox
CheckBoxList
DropDownList
ListBox
(single or multiple selection mode)FileUpload
HtmlInputFile
GridView
FieldDataType
extended attribute as Date
. To do this, go to the source of your web form by clicking Source (next to Design) at the bottom of the web form.Date
value:Date
DateTime
Time
Numeric
Currency
Text
(default value)Date
, DateTime
, Time
, Numeric
, and Currency
values will be automatically formatted using the user's current culture.FieldDataType="Text"
for string values.FieldFormat
for FieldDataType="DateTime"
DateTime
field data type on any textbox or label, you can also specify the FieldFormat
attribute. This attribute is used to tell WorkflowPage how to format the date time for the current culture. For example, if you want to show the date in the format December 10, 2019 10:11:29 PM
, you would declare the textbox as follows:DateTime
format strings:{0:d}
{0:D}
{0:t}
{0:T}
{0:f}
{0:F}
{0:g}
{0:G}
{0:M}
{0:r}
{0:s}
{0:u}
{0:U}
{0:Y}
TimeZoneConversion
for FieldDataType="DateTime"
DateTime
field data type on any textbox or label, you can also specify the TimeZoneConversion
attribute. This Boolean attribute is used to tell WorkflowPage to disable the user’s time zone conversion on the current web control.True
if this attribute is not declared in the web control’s definition. If this attribute is set to False
, then the DateTime
value is treated as a GMT/UTC DateTime
value (without any conversions).FieldDataBind
for asp:Label
controlTrue
if this attribute is not declared in the Label
control’s definition. If this attribute is set to False
then the Label
control will not data bind to the associated form data field.FileUpload
or an HtmlInputFile
control to your web form, the file will automatically be saved and the WorkflowGen process data that is associated with this control ID will automatically be updated with the reference to the uploaded file upon form submission.BoundFields
, CheckBoxFields
, CommandFields
, and TemplateFields
are supported.
DataSource
will be used.
BoundFields
and CheckBoxFields
as needed. The important property to set for each of these fields is DataField
, for which you can specify anything you want, as long as there are no special characters or spaces within this name.
HtmEncode
attribute to "False"
and the DataFormatString
attribute to the following possible values only:en-US
culture{0:d}
{0:D}
{0:g}
{0:g}
{0:t}
{0:T}
{0:f}
{0:M}
{0:s}
{0:u}
{0:U}
{0:Y}
en-US
culture{0:C}
{0:N}
or {0:F}
{0:P}
{0:R}
ApplyFormatInEditMode
to "true"
if you use any of these formats in your fields. This property applies the desired formatting to the data even when the end-user is editing the data.You have entered an invalid date in the {0} column
, where {0}
represents the column header text. You can specify your own message by overriding the InvalidDateGridViewErrorMessage
property value in your web form's Page_Load
method.You have entered an invalid number in the {0} column
, where {0}
represents the column header text. You can specify your own message by overriding the InvalidNumberGridViewErrorMessage
property value in your web form's Page_Load
method.CommandField
to your GridView.
CausesValidation
property to "False"
; otherwise, the Update button will trigger validation of all the fields in the page.
ShowEditButton
property to "True"
if you want to enable insertion and editing.
"ShowDeleteButton"
property to "True"
if you want to enable deletion in the GridView.DataTable
node will automatically be added by WorkflowPage in your FORM_DATA
DataSet. The name of this table will be the ID of your GridView and each BoundField
and CheckBoxField
will have its DataColumn
automatically created in this table with the DataField
as the column name. The DataType
of the DataColumn
will be determined by the DataFormatString
used.FORM_FIELDS_READONLY
and FORM_FIELDS_REQUIRED
parameters of your WorkflowGen actions.The {0} list needs to have at least one filled row
will be displayed to the user, where {0}
will contain the GridView's tooltip, or its ID if no tooltip has been specified. You can change this message by modifying the WorkflowPage RequiredGridViewsErrorMessage
property in the Page_Load
of your web form.CommandField
columns and an empty row is not automatically inserted in the GridView.FORM_FIELDS_REQUIRED
parameter to set BoundFields
or TemplateFields
to required in your GridView with the following syntax:GRIDVIEW_ID.DATAFIELDNAME
*
(asterisk) or ^
(caret) characters for these particular fields; instead, you must specify the GridView ID and the data field name for each field you want set to required.FieldsColorization
property value when you are in edit mode.The {0} column is required
. This message can be modified by changing the RequiredColumnsInGridViewsErrorMessage
property.TemplateFields
in your GridViewTemplateFields
in your GridViews. The IDs of the web controls you use in your template fields will be used as the field names in your form data. Be sure to have the same IDs in your ItemTemplate
and in your EditItemTemplate
, or else the data won’t be consistent when you switch between edit and listing modes.Bind
expression according to the example below.FieldDataType
attribute on your web controls inserted in your template fields, but make sure to set the same FieldDataType
in the ItemTemplate
and the EditItemTemplate
, or else the data won’t be formatted as you would expect it to be.RangeValidator
, RequiredFieldValidator
, RegularExpressionValidator
, CustomValidator
, etc.), the only constraint being that you must set the EnableClientScript
property to "False"
in all of the validators you use in the template fields.TemplateField
that uses a DropDownList
and a RequiredFieldValidator
:FillFormData(FormData)
method.
SaveFormData(FormData)
method.
PeopleList
with some first names and last names of a SQL DataSource:FormData
dataset in your Page_Load
method.Page_Load
method:approval zone
or advanced upload control
. Visual Studio allows the user to insert this kind of control by a simple drag-and-drop from the toolbar..vsi
extension)..vsi
file to proceed to the custom control installation assistant. During the installation, you will be asked to trust the component; answer YES.\bin
directory of your application from the common Visual Studio settings storage path.