SaveSpecChanges Method
- Last UpdatedNov 06, 2025
- 2 minute read
The SaveSpecChanges method saves the changes made to the specification values. The caller must catch exception if the call fails.
'Declaration
Public Sub SaveSpecChanges( _
ByVal UserId As String, _
ByVal SpecId As String, _
ByVal UpdateTemplateSpecs As Integer, _
ByVal CheckPrivs As Integer, _
ByVal BomPos As Object, _
ByVal BomVerId As Object, _
ByVal NewSpecValue As Object, _
ByVal NewMinValue As Object, _
ByVal NewMaxValue As Object, _
ByVal Comments As Object _
)
public void SaveSpecChanges(
string UserId,
string SpecId,
int UpdateTemplateSpecs,
int CheckPrivs,
object BomPos,
object BomVerId,
object NewSpecValue,
object NewMinValue,
object NewMaxValue,
object Comments
)
Parameters
- UserId
- Required. Holds the ID of the user who updates the specification.
- SpecId
- Required. Holds the ID of the specification that is being updated.
- UpdateTemplateSpecs
- Required. Holds a flag that, if set to true, specifies that whether or not the operation specification should also be updated.
- CheckPrivs
- Required. Holds a flag that, if set to true, specifies that whether or not the middleware should check the privileges of the user updating the specification.
- BomPos
- Optional. Holds the BOM position of the of the item to which the specification is attached.
- BomVerId
- Optional. Holds the version of the BOM to which the specificaiton is attached.
- NewSpecValue
- Optional. Holds the new value for the specification. May be null if the value is not being changed.
- NewMinValue
- Optional. Holds the new minimum value for the specification. May be null if the value is not being changed.
- NewMaxValue
- Optional. Holds the new maximum value for the specification. May be null if the value is not being changed.
- Comments
- Optional. Holds the comment about why the change is being made. Made be null if no comment is needed.