API UpdateSelectedCategory: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
 
(Není zobrazena jedna mezilehlá verze od stejného uživatele.)
Řádka 29: Řádka 29:
 
|-
 
|-
 
|@URL
 
|@URL
|text
+
|nvarchar(max)
 
|
 
|
 
|URL
 
|URL
Řádka 35: Řádka 35:
 
|-
 
|-
 
|@Image
 
|@Image
|Image
+
|varbinary(max)
 
|
 
|
 
|Image
 
|Image
Řádka 60: Řádka 60:
 
|}
 
|}
  
 +
==== 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 @Name nvarchar(255)
 
  DECLARE @Name nvarchar(255)
  DECLARE @URL text
+
  DECLARE @URL nvarchar(max)
  DECLARE @Image image
+
  DECLARE @Image varbinary(max)
 
  DECLARE @ImageExt nvarchar(5)
 
  DECLARE @ImageExt nvarchar(5)
 
  DECLARE @Language int
 
  DECLARE @Language int
Řádka 81: Řádka 85:
 
  WHERE  id = 3
 
  WHERE  id = 3
 
   
 
   
  EXECUTE [API_UpdateSelectedCategory]  
+
  EXECUTE @return_value = [API_UpdateSelectedCategory]  
 
   @ID,  
 
   @ID,  
 
   @Name,
 
   @Name,

Aktuální verze z 9. 11. 2018, 14:51

Description

Method allows You to update selected category in system.

Exact name

API_UpdateSelectedCategory

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ID int Internal system id
@Name nvarchar(255) Name
@URL nvarchar(max) URL
@Image varbinary(max) Image
@ImageExt nvarchar(5) Image ext
@Language int Language

cs=0; pl=1; en=2; de=3; sk=4; hu=5; ar=11; bg=17

@OrderNumber int Order number

Return

0 : OK
100 : Item could not be updated

Example

 DECLARE @return_value int
 DECLARE @ID int
 DECLARE @Name nvarchar(255)
 DECLARE @URL nvarchar(max)
 DECLARE @Image varbinary(max)
 DECLARE @ImageExt nvarchar(5)
 DECLARE @Language int
 DECLARE @OrderNumber int
 
 SELECT @ID = [ID], 
       @Name = 'Name 2',
       @URL = [URL],
       @Image = [Image],
       @ImageExt = [ImageExt],
       @Language = [Language],
       @OrderNumber = [OrderNumber]
 FROM   [API_GetSelectedCategories] 
 WHERE  id = 3
 
 EXECUTE @return_value = [API_UpdateSelectedCategory] 
  @ID, 
  @Name,
  @URL,
  @Image,
  @ImageExt,
  @Language,
  @OrderNumber

Notices

None.