API CreateArticle: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
Založena nová stránka s textem „==== Description ==== Method allows You to create new article in system. ==== Exact name ==== <code>API_CreateArticle</code> ==== Type ==== Standard exec…“ |
Bez shrnutí editace |
||
| (Nejsou zobrazeny 2 mezilehlé verze od stejného uživatele.) | |||
| Řádek 16: | Řádek 16: | ||
!Relation | !Relation | ||
|- | |- | ||
|@ | |@Title | ||
|nvarchar(50) | |||
| | |||
|Title | |||
| | |||
|- | |||
|@HtmlText | |||
|nvarchar(max) | |||
| | |||
|Html text | |||
| | |||
|- | |||
|@Language | |||
|int | |int | ||
| | | | ||
| | |Language. | ||
| | cs=0; pl=1; en=2; de=3; sk=4; hu=5; ar=11; bg=17 | ||
| | |||
|} | |} | ||
==== Return ==== | |||
0 : OK | |||
100 : Item could not be created | |||
==== Example ==== | ==== Example ==== | ||
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> | ||
EXEC [API_CreateArticle] @ | DECLARE @return_value int | ||
EXEC @return_value = [API_CreateArticle] @Title= 'Title' ,@HtmlText= '<span style="color: red;"> Text </span>' ,@Language= 0 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Notices ==== | ==== Notices ==== | ||
None. | None. | ||
Aktuální verze z 9. 11. 2018, 11:17
Description
Method allows You to create new article in system.
Exact name
API_CreateArticle
Type
Standard executable stored procedure.
Specification
| Parameter | Data type | Value range | Description | Relation |
|---|---|---|---|---|
| @Title | nvarchar(50) | Title | ||
| @HtmlText | nvarchar(max) | Html text | ||
| @Language | int | Language.
cs=0; pl=1; en=2; de=3; sk=4; hu=5; ar=11; bg=17 |
Return
0 : OK 100 : Item could not be created
Example
DECLARE @return_value int
EXEC @return_value = [API_CreateArticle] @Title= 'Title' ,@HtmlText= '<span style="color: red;"> Text </span>' ,@Language= 0
Notices
None.