API UpdateUniversalPartsCategory: Porovnání verzí

Z Podpora.nextis.cz
Skočit na navigaci Skočit na vyhledávání
Založena nová stránka s textem „==== Description ==== Method allows You to update branch in system. ==== Exact name ==== <code>API_UpdateBranch</code> ==== Type ==== Standard executable…“
 
Bez shrnutí editace
 
(Není zobrazena jedna mezilehlá verze od stejného uživatele.)
Řádek 1: Řádek 1:
==== Description ====
==== Description ====
Method allows You to update branch in system.
Method allows You to update universal parts category in system.


==== Exact name ====
==== Exact name ====
<code>API_UpdateBranch</code>
<code>API_UpdateUniversalPartsCategory</code>


==== Type ====
==== Type ====
Řádek 59: Řádek 59:
|}
|}


==== Return ====
0 : OK
100 : Item could not be updated


==== Example ====
==== Example ====
<syntaxhighlight lang="sql">
<syntaxhighlight lang="sql">
DECLARE @return_value int
  DECLARE @ID int
  DECLARE @ID int
  DECLARE @ParentID int
  DECLARE @ParentID int
Řádek 80: Řádek 84:
  WHERE  id = 3
  WHERE  id = 3
   
   
  EXECUTE [API_UpdateUniversalPartsCategory]  
  EXECUTE @return_value = [API_UpdateUniversalPartsCategory]  
   @ID,  
   @ID,  
   @ParentID,
   @ParentID,

Aktuální verze z 22. 9. 2017, 08:17

Description

Method allows You to update universal parts category in system.

Exact name

API_UpdateUniversalPartsCategory

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ID int Internal system id
@ParentID int Parent category ID
@Name nvarchar(250) Name
@Description nvarchar(800) Description
@SortIndex int Sort index
@IsRoot bit Is root
@IsTop bit Is top

Return

0 : OK
100 : Item could not be updated

Example

 DECLARE @return_value int
 DECLARE @ID int
 DECLARE @ParentID int
 DECLARE @Name nvarchar(250)
 DECLARE @Description nvarchar(800)
 DECLARE @SortIndex int
 DECLARE @IsRoot bit
 DECLARE @IsTop bit
 
 SELECT @ID = [ID], 
        @ParentID = [ParentID],
        @Name = 'Name 2',
        @Description = [Description],
        @SortIndex = [SortIndex],
        @IsRoot = [IsRoot],
        @IsTop = [IsTop]
 FROM   [API_GetUniversalPartsCategories] 
 WHERE  id = 3
 
 EXECUTE @return_value = [API_UpdateUniversalPartsCategory] 
  @ID, 
  @ParentID,
  @Name,
  @Description,
  @SortIndex,
  @IsRoot,
  @IsTop

Notices

None.