API CreateSelectedCategory: Porovnání verzí
Z Podpora.nextis.cz
(Nejsou zobrazeny 3 mezilehlé verze od stejného uživatele.) | |||
Řádka 17: | Řádka 17: | ||
|- | |- | ||
|@Name | |@Name | ||
− | | | + | |nvarchar(255) |
| | | | ||
|Name | |Name | ||
Řádka 23: | Řádka 23: | ||
|- | |- | ||
|@URL | |@URL | ||
− | | | + | |nvarchar(max) |
| | | | ||
|URL | |URL | ||
Řádka 29: | Řádka 29: | ||
|- | |- | ||
|@Image | |@Image | ||
− | | | + | |varbinary(max) |
| | | | ||
|Image | |Image | ||
Řádka 53: | Řádka 53: | ||
| | | | ||
|} | |} | ||
+ | |||
+ | ==== Return ==== | ||
+ | 0 : OK | ||
+ | 100 : Item could not be created | ||
==== Example ==== | ==== Example ==== | ||
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> | ||
+ | DECLARE @return_value int | ||
Declare @img AS VARBINARY(MAX) | Declare @img AS VARBINARY(MAX) | ||
Select @img = CAST(bulkcolumn AS VARBINARY(MAX)) | Select @img = CAST(bulkcolumn AS VARBINARY(MAX)) | ||
Řádka 63: | Řádka 68: | ||
SINGLE_BLOB ) AS x | SINGLE_BLOB ) AS x | ||
− | EXEC [API_CreateSelectedCategory] @Name= 'TestCategory3' ,@URL= 'http://nextis.cz' ,@Image= @img ,@ImageExt= '.png' ,@ | + | EXEC @return_value = [API_CreateSelectedCategory] @Name= 'TestCategory3' ,@URL= 'http://nextis.cz' ,@Image= @img ,@ImageExt= '.png' ,@Language= 0 ,@OrderNumber= 1 |
</syntaxhighlight> | </syntaxhighlight> | ||
==== Notices ==== | ==== Notices ==== | ||
None. | None. |
Aktuální verze z 9. 11. 2018, 14:49
Description
Method allows You to create new selected category in system.
Exact name
API_CreateSelectedCategory
Type
Standard executable stored procedure.
Specification
Parameter | Data type | Value range | Description | Relation |
---|---|---|---|---|
@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 created
Example
DECLARE @return_value int
Declare @img AS VARBINARY(MAX)
Select @img = CAST(bulkcolumn AS VARBINARY(MAX))
FROM OPENROWSET(
BULK
'C:\test.png',
SINGLE_BLOB ) AS x
EXEC @return_value = [API_CreateSelectedCategory] @Name= 'TestCategory3' ,@URL= 'http://nextis.cz' ,@Image= @img ,@ImageExt= '.png' ,@Language= 0 ,@OrderNumber= 1
Notices
None.