AddSDIAttribute
Description:
Creates and associates attributes with one or more SDIs.
Input Properties
sdcid
Description:
Identifier of the SDC for the SDI to which you are adding the Attachment.
Required:
Yes
keyid1
Description:
Identifiers of the SDIs.
Required:
Yes
keyid2
Description:
Identifiers of the SDIs.
Required:
Only for multi-key SDCs.
keyid3
Description:
Identifiers of the SDIs.
Required:
Only for multi-key SDCs.
datatype
Description:
Determines the datatype of attribute being added.
Required:
No
type
Description:
Determines the type of attribute being added.
S / SDC / Primary = (meaning "SDC Type") Will add an attribute from the master list to the sdi.
L / Link / LinkDef / FK / Foreign Key = (meaning "LinkDef Type") Will add an attribute from the master list to the sdi that is linked to another sdi.
A / Adhoc / default = (meaning "Adhoc type") Will add an attribute from the master list to the sdi.
Required:
No
attributeid
Description:
Attribute id being added.
If type SDC or Link with then this is not required as the attribute list is looked up from the master list.
Required:
Yes/No
attributesdcid
Description:
SDC attribute is being added for.
If type link then expect this to be provided. If the different to sdcid then this is a copy down attribute, but if same then is an instance of a linked attribute.
Required:
Yes/No
value
Description:
Value for attribute.
If type adhoc then this is expected then expect this to be provided. For sdc type this is not required as defaults are used and for linked attributes if not provided then defaults are used otherwise the values are used as defaults.
Required:
Yes/No
mandatory
Description:
MandatoryFlag for attribute.
If type link then this is allowed to be passed. It will either Y or N. Will default to N.
Required:
No
updatable
Description:
UpdatableFlag for attribute.
If type link then this is allowed to be passed. It will either Y or N. Will default to N.
Required:
No
hidden
Description:
HiddenFlag for attribute.
If type link then this is allowed to be passed. It will either Y or N. Will default to N.
Required:
No
editorstyle
Description:
EditorStyleId for attribute.
If type link then this is allowed to be passed. It will either Y or N. Will default to Master List Editor Style.
Required:
No
editsdcid
Description:
Edit SDC Id for attribute.
If type link then this is allowed to be passed. It will either Y or N.
Required:
No
editreftypeid
Description:
Edit Ref Type Id for attribute.
If type link then this is allowed to be passed. It will either Y or N.
Required:
No
instructionflag
Description
Required:
No
instructiontext
Description
Required:
No
copydowncontext
Description
Required:
No
worksheetcontext
Description
Required:
No
skippedduplicateattributes
Deprecated
skippedattributes
Deprecated
requiredcomplete
Deprecated
Output Properties
skippedduplicateattributes
Description:
Attribute ids for attributes not added.
Returns a list of attributes that were not added because of duplicates not being allowed.
skippedattributes
Description:
Attribute ids for attributes not added.
Returns a list of attributes that were not added because or errors (i.e. not in master list).
requiredcomplete
Description:
Y if all required attributes are complete at end of action.
Returns string Y or N depending on if all required attributes for SDI are complete.
Additional Information
Additional information concerning this Action:
This Action inserts a new record in the SDIAttribute table. It handles creation of sdc type, link type and adhoc type attributes for the primary sdc. It does not handle creation of template attributes (copied from template) or copy down attributes (copied from sdiattribute to link) as these are handled by the add and edit sdi actions. For SDC type attributes an attributeid or value is not expected as they are looked up from the master list. For link type if a value is provided then it will be used as the default value rather than the default value from the master list. For adhoc type a value is required.
Copyright © 1999-2016 LABVANTAGE Solutions, Inc.