Tags:
create new tag
view all tags

.UTIL FIELD SET

This subroutine is called to set a value into a specified field name.


Usage:

      PASS         <App_Id>                   FIELD            SHARE? N
      PASS         <Field_Name>               FIELD            SHARE? N
      PASS         <Occ_no>                   FIELD            SHARE? N
      PASS         <value>                    FIELD            SHARE? N
      GOSUB    --- .UTIL FIELD SET
      *        Check for errors
      IF       --- .UTIL FIELD SET            NE

Description:

This subroutine is called to set a value into a specified field name. All parameters are required. If any required parameters are missing, the subroutine will CANCEL.

<App_Id> is the Application Id of the field you want to set (Required). The version will be taken from the currently running version.

<Field_Name> is the field you want to set (Required). This must be a valid field in the specified application and be referenced in the subprocess family or in a file that is referenced in the subprocess family. Group fields are not supported.

<Occ_no> is the occurrence number (Required). If blank or zero, it will default to 1.

<value> is the string of data you want to set into the specified field (Required).

<value> must be appropriate for the type of field. For example, if the target field is an unsigned integer, then you cannot set real or negative numbers into it. If the value is too large, too small or has too many decimal places for the target field, it will not be set. If the target field is a token, you must pass a valid token value (case sensitive). Date/time fields must be a string in the format CCYYMMDDhhmmsstt. If any leading parts are not supplied, they must be replaced with a dash character, ie, '--120228' or '--------2241'. Trailing dashes are optional. If the data cannot be moved into the target field, the previous contents of the target field will remain unchanged.

See also .UTIL FIELD GET.

Comments:

Read what other users have said about this page or add your own comments.


-- JeanNeron - 2012-02-22

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2022-10-13 - BrianRyan
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback