Write Form

Operation Name

Write Form

Function overview

Writes input data to the database.

Data Model

Data model of this type of component is table model type.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required/Optional Use of Variables Description Remarks
Name Required Not available Enter the name on the script canvas.  
Input data Required Not available Select the component on the script canvas.  
Required settings
Item name Required/Optional Use of Variables Description Remarks
Destination Required Not available Select Global Resources.
Refer to "Global Resource Properties" for global resource settings .
  • [Add]:
    Adds new global resource.
  • [Edit list]:
    Global resource settings can be managed from "Edit Resource list".
 
Form name Required Available Select or enter a form name.
  • If a script variable is specified, [Field definition] is left unconfigured.
Field definition Required - Display the field definition of the form which is specified in [Form name].  
Field definition / Field name Required Available Enter the field name of form.
By default, the field name in the specified form is set.
 
Field definition / Type name Required Not available Select the type of the field.
By default, the field type in the specified form is set.
  • [string]
  • [datetime]
  • [double]
Update mode Required Not available Select how to update data.
  • [Insert]: (Default)
    [Input data] is used to create new data.
  • [Insert/Update]:
    [Input data] is used to update data.
  • [Delete]:
    [Input data] is used to delete data.
 
Validity verification Optional Not available Select whether to use an expression computed field formula and field design.
  • [Checked]:
    Field design formulas or computed field formula that is set in the database ("default expression" or "input-translation formula") is executed.
  • [Not Checked]: (default)
    Field design formulas or computed field formula that is set in the database ("default expression" or "input-translation formula") does not run.
  • The design equation field "input validation formula" is not supported.
Delimiter Optional Available Enter the delimiter of multiple values.
  • Delimiters of multiple values can be specified freely.
  • The default value is ",", "," is set if omitted.
  • Multiple values can only be retrieved when the type of the field is "text".
Use update key Required Not available Select whether [Key] is used as an update key when specifying [Insert/Update] or [Delete] in [Update method].
  • [Use]: (default)
  • [Do not use]:
Write settings
Item name Required/Optional Use of Variables Description Remarks
Update with null when null value is input Optional Not available Select the data input is null if the operation contains the value.
  • [Checked]:
    Updates the field with initial value.
  • [Not Checked]: (default)
    Do not update the field.
  • Enabled when [Insert/Update] is selected in [Update mode].
Key settings
Item name Required/Optional Use of Variables Description Remarks
Key Optional - Specify the key.
If the field data specified as a key matches to data within the document, update or delete the document.

Each column can be operated with the following buttons.
  • [Add]:
    Add a column.
  • [Up]:
    Move the order of the selected column upwards by one.
  • [Down]:
    Move the order of the selected column downwards by one.
  • [Delete]:
    Delete the column.
  • During the following settings enabled.
    • Select [Insert/Update] or [Delete] for [Update method]
    • How to [Use update key] in [Use] Select
  • For more details, refer to "For key settings".
Key / Key name Required Available Enter the name of the field.  
Comment
Item name Required/Optional Use of Variables Description Remarks
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Schema

Input Schema

<?xml version="1.0" encoding="UTF-8" ?>
&lt;table&gt;
  &lt;row&gt;
    <column>UniversalID</column>
    <column>NoteID</column>
    <column>field data</column>
    :
  &lt;/row&gt;
  &lt;row&gt;
    :
  &lt;/row&gt;
</table>

Output Schema

None.

Loading schema in Mapper

Schema is loaded automatically.
See "Edit Schema"for any details .

Transaction

Transaction is not supported.

PSP Usage

PSP is not supported.

Available Component variables

Component variable name Description Remarks
count Returns the total number of documents written data.
  • The value defaults to null.
  • The total number of documents inserted, updated and deleted.
insert_count Returns the number of documents inserted.
  • The value defaults to null.
update_count Returns the number of documents updated.
  • The value defaults to null.
delete_count Returns the number of documents updated.
  • The value defaults to null.
message_category Stroes the category to which corresponding message code belongs to, when an error occurs.
  • The value defaults to null.
message_code Stores its corresponding message code of occured error.
  • The value defaults to null.
message_level Stores the severity of the corresponding message code of the occured error.
  • The value defaults to null.
error_type Stores the type of the occured error.
  • The value defaults to null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The message may vary depending on DataSpider Servista version.
error_message Stores the error message for the occured error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version.
error_trace Stores stack trace of the occurred error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version or the client application used.

Operation of Type Conversion

Operations of type conversion when specifying [Type name] in [Field definition] are as follows.

[Type} Operation Remarks
[string] Writes the input data is converted to type String.
  • Is converted to an empty or null.
[datetime] Writes the input data is converted to type Date.
  • If the data input data can not be converted to type Date, not written.
  • Is converted to an empty or null.
[double] Writes the input data is converted to type Double.
  • If the data input data can not be converted to type Double can not write
  • Is converted to an empty or null.

For key settings

Specification Limits

Main exceptions

Exception name Cause Solution
ResourceNotFoundException
Resource definition could not be found.Name: []
[Destination] is not specified. Specify [Destination].
ResourceNotFoundException
Resource definition could not be found.Name: [<name of Global Resources>]
Resource definition specified in [Destination] does not exist. Check the global resource specified in [Destination]
InputDataNotFoundException [Input data] is not specified. Specify [Input data] or draw a data flow.
InvalidPropertyConfigurationException
[<Property name>] is not specified.
[<Property name>] is not specified. Specify the [<Property name>].
LotusNotesException
The UniversalID "(<Universal ID>)" is invalid.
No document matching the "Universal ID" in the input data during operation [Insert/Update] or [Delete]. Please check input data.
LotusNotesException
no document in the database file "<Note ID>".
No document matching the "Notes ID" in the input data during operation [Insert/Update] or [Delete]. Please check input data.
LotusNotesException
The column "<key name>" in input data is not found.
[Insert/Update] or [Delete] during processing, [Key name] field does not exist in the specified. Please confirm [Key name].
LotusNotesException
Cannot use the empty column "<field name>" as update key.
[Insert/Update] or [Delete] during processing, has been used as a key <field name> contains data from the null. Please check input data.