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 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 Required Not available Select the type of the field.
By default, the field type in the specified form is set.
  • [string]
  • [datetime]
  • [double]
  • [richtext]
  • Fields of which the field type is "Rich text" are set as [string].
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 the field design formula.
  • [Checked]:
    Executes the field design formula("Input translation formula" or "input validation formula") set in the database.
  • [Not Checked]: (default)
    Do not execute the field design formula("Input translation formula" or "input validation formula") set in the database.
  • "Default formula" of field design formula is not supported.
Delimiter Required Available Enter the delimiter of multiple values.
  • Delimiters of multiple values can be specified freely.
  • The default value is ",".
  • Multiple values can only be retrieved when the type of the field is "text".
Property Action
Item name Description Remarks
Reset forms and fields Resets the form list of [Form name] and [Field definition].
  • If any form or field is added or modified by Domino Designer, the change can be reflected by using this property action.
    The change of form or field is only reflected in this operation.
Write settings
Item name Required/Optional Use of Variables Description Remarks
Update in initial value when input value is empty. Optional Not available Selects the action when the input data is null or empty character.
  • [Checked]: (default)
    Updates the field with initial value.
  • [Not Checked]:
    Do not update the field.
  • Enabled when [Insert/Update] is selected in [Update mode].
  • The initial value varies depending on the type of the field.The initial value of each type are as follows.
    • Text:null
    • Date/Time: null
    • Number:0
    • Rich-text:null
Key settings
Item name Required/Optional Use of Variables Description Remarks
Key Optional - Specify the key.
Reads data matching the specified key.

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 a column.
  • For the details about specifying the key, please refer to "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.

For key settings

Input data [Insert/Update] Action [Delete] Action
"Universal ID" exists Searches using "Universal ID" as key, updates the matching Notes documents. Error occurs if no match exists."Note ID" or key value specified in [Key] is ignored. Searches using "Universal ID" as key, deletes the matching Notes documents. Error occurs if no match exists."Note ID" or key value specified in [Key] is ignored.
"Universal ID" does not exist, "NoteID" exists Searches using "Note ID" as key, updates the matching Notes documents. Error occurs if no match exists. Key value specified in [Key] is ignored. Searches using "Note ID" as key, deletes the matching Notes documents. Error occurs if no match exists. Key value specified in [Key] is ignored.
Neither "Universal ID" nor "Note ID" exist Searches using field specified in [Key] as key, updates the matching Notes documents. Inserts input data if no match exists. Error occurs if an non-exist key is specified. Searches using field specified in [Key] as key, deletes the matching Notes documents. Do not delete when no match existsError occurs if an non-exist key is specified.
Neither "Universal ID" nor "Note ID" exist, and [Key] is not set Searches using "field data" as key, deletes the matching Notes documents. Inserts input data if no match exists. Searches using "field data" as key, deletes the matching Notes documents. Inserts input data if no match exists.

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] is not found. Check the global resource specified in [Destination].
InputDataNotFoundException [Input data] is not specified. Specify [Input data] or draw a data flow.
InvalidPropertyConfigurationException
Property "<property name>" value "" is incorrect.
[<Property name>] is not specified. Specify the [<Property name>].
InvalidPropertyConfigurationException
Given <property name> "<value of the property>" not found.
[<Property Name>] not found in the specified property value. [<Property Name>] Please check the value of the property specified.
LotusDominoException
4091: Invalid universal id
No document matching the "Universal ID" in the input data during operation [Insert/Update] or [Delete]. Please check [Input data].

Notes