API UpdateProductReplacements: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
(Založena nová stránka s textem „a“)
 
Řádka 1: Řádka 1:
a
+
==== Description ====
 +
Method allows You to update product replacements in system.
 +
 
 +
==== Exact name ====
 +
<code>API_UpdateProductReplacements</code>
 +
 
 +
==== Type ====
 +
Standard executable stored procedure.
 +
 
 +
==== Specification ====
 +
{| class="wikitable"
 +
!Parameter
 +
!Data type
 +
!Value range
 +
!Description
 +
!Relation
 +
|-
 +
|@ID
 +
|int
 +
|
 +
|Internal system id
 +
|API_GetProductReplacements.ID
 +
|-
 +
|@GroupID
 +
|int
 +
|
 +
|Group ID
 +
|API_GetProductGroups.ID
 +
|-
 +
|@ReplacementID
 +
|int
 +
|
 +
|Replacement ID
 +
|API_GetProductGroups.ID
 +
|}
 +
 
 +
==== Return ====
 +
0 : OK
 +
100 : Item could not be updated
 +
 
 +
==== Example ====
 +
<syntaxhighlight lang="sql">
 +
DECLARE @return_value int
 +
DECLARE @ID int
 +
DECLARE @GroupID int
 +
DECLARE @ReplacementID int
 +
 
 +
 +
SELECT @ID = [ID],
 +
      @GroupID = [GroupID],
 +
      @ReplacementID = 8
 +
FROM  [API_GetProductReplacements]
 +
WHERE  id = 3
 +
 +
EXECUTE @return_value = [API_UpdateProductReplacements]
 +
  @ID,
 +
  @GroupID,
 +
  @ReplacementID
 +
 
 +
</syntaxhighlight>
 +
 
 +
==== Notices ====
 +
None.

Verze z 29. 9. 2017, 09:16

Description

Method allows You to update product replacements in system.

Exact name

API_UpdateProductReplacements

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ID int Internal system id API_GetProductReplacements.ID
@GroupID int Group ID API_GetProductGroups.ID
@ReplacementID int Replacement ID API_GetProductGroups.ID

Return

0 : OK
100 : Item could not be updated

Example

 DECLARE @return_value int
 DECLARE @ID int 
 DECLARE @GroupID int
 DECLARE @ReplacementID int

 
 SELECT @ID = [ID], 
       @GroupID = [GroupID], 
       @ReplacementID = 8
 FROM   [API_GetProductReplacements] 
 WHERE  id = 3
 
 EXECUTE @return_value = [API_UpdateProductReplacements] 
  @ID, 
  @GroupID, 
  @ReplacementID

Notices

None.