# Usertask Library
# Method: FillAttachmentList(System.String, System.String)
To Add attachment link
Parameters:
| Fields | |
|---|---|
| Link | string- Hyperlink of the attachment |
| Name | string- A valid name for the attachment which has to be displayed |
# Method: CreateAttachmentUserTask(System.String, System.String)
To add an attachment
Parameters:
| Fields | |
|---|---|
| Key | string- Attachment key |
| label | string- Label which should be displayed on screen |
# Method: ClearAttachmentFiles()
To clear attachment files
# Method: ClearAttachmentTaskItem()
To clear attachment task items
# Method: ClearAttachmentTaskList()
To clear attachment task list
# Method: FillHeaderMetricList(System.String, System.Double,System.String)
For filling metric list in user task
Parameters:
| Fields | |
|---|---|
| caption | string- Name |
| value | string- Value which has to be shown |
| unit | string- unit value(if any) |
# Method: FillHeaderDimensionList(System.String, Sytem.String)
To fill dimension list in user task
Parameters:
| Fields | |
|---|---|
| caption | string- Name |
| value | string- Value which has to be shown |
# Method: CreateHeaderUserTask(System.String)
To create header user task
Parameters:
| Fields | |
|---|---|
| caption | string- Name |
| value | string- Value which has to be shown |
# Method: clearHeaderDimesionList()
To clear header dimension list
# Method: clearHeaderMetricList()
To clear header metric list
# Method: ClearHeaderTaskItem()
To clear header task item
# Method: ClearHeaderTaskList()
To clear header task list
# Method: AddTaskVariable(System.String, System.Object, System.String, System.Boolean)
To add task variables
# Method: FillTaskAttribute(System.Boolean, System.String, System.String)
To fill task attributes
Parameters:
| Fields | |
|---|---|
| half | string- controls the dimension of the text box |
| caption | string- Name |
| value | string- Value which has to be shown |
# Method: ClearAttributes()
To clear attributes
# Method: clearTaskVariables()
To clear task variables
# Method: ClearTaskItem()
To clear task item
# Method: ClearTaskList()
To clear task List
# Method: AddTaskItem(System.String, System.String, System.String, System.String, System.String, System.String, System.String, List(T))
To add task item
Parameters:
| Fields | |
|---|---|
| name | string- name which has to be displayed |
| desc | string- description value |
| metric1 | string- metric1 value |
| met1caption | string- heading which has to be given for metric1 |
| metric2 | string- metric2 value |
| met2caption | string- heading which has to be given for metric2 |
| longdesc | string- heading which has to be given for desc |
| attr | string- attribute values |
# Method: AddTaskItem(System.String, System.String, System.String, System.String, System.String, System.String, System.String, List(T), Dictionary(Tkey, TValue))
To add task item
Parameters:
| Fields | |
|---|---|
| name | string- name which has to be displayed |
| desc | string- description value |
| metric1 | string- metric1 value |
| met1caption | string- heading which has to be given for metric1 |
| metric2 | string- metric2 value |
| met2caption | string- heading which has to be given for metric2 |
| longdesc | string- heading which has to be given for desc |
| attr | string- attribute values |
| taskvars | string- task variable should be in the form of string,taskvariablemodel and it occurs in additional info |
# Method: ClearProposals()
To clear proposal which already exists
# Method: AddInputProposal(System.String, System.String, System.String, System.Int32, System.Boolean, System.String, System.String)
To add input proposals
Parameters:
| Fields | |
|---|---|
| key | string- attachment key |
| type | string- data type |
| label | string- name which should be displayed on screen |
| length | string |
| required | string |
| description | string |
| defaultvalue | string |
# Method: CreateUserTask(System.String)
To create user task
| Fields | |
|---|---|
| key | string- formkey name |