API CreateArticle: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledá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…“)
 
Řádka 16: Řádka 16:
 
!Relation
 
!Relation
 
|-
 
|-
|@WorkshopID
+
|@Title
 +
|nvarchar(50)
 +
|
 +
|Title
 +
|
 +
|-
 +
|@HtmlText
 +
|ntext
 +
|
 +
|Html text
 +
|
 +
|-
 +
|@Language
 
|int
 
|int
 
|
 
|
|ID of workshop from workshop list (see relation)
+
|Language.
|API_GetWorkshops.ID
+
cs=0; pl=1; en=2; de=3; sk=4; hu=5; ar=11; bg=17
 +
|
 
|}
 
|}
  
 
==== Example ====
 
==== Example ====
 
<syntaxhighlight lang="sql">
 
<syntaxhighlight lang="sql">
EXEC [API_CreateArticle] @WorkshopID = 1 ,@Name = 'Name' ,@Street = 'Street' ,@City = 'City' ,@ZIPCode = 'ZIPCode' ,@Country = 'Country' ,@Region = 'Region' ,@State ='Česká republika' ,@StateID = 15797 ,@Phone = '+420 556 621 300' ,@Fax = '+420 596 790 789' ,@MobilePhone = '+420 556 621 301' ,@Email = 'info@nextis.cz' ,@Web = 'www.nextis.cz'
+
EXEC [API_CreateArticle] @Title= 'Title' ,@HtmlText= '<span style="color: red;"> Text </span>' ,@Language= 0
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
==== Notices ====
 
==== Notices ====
 
None.
 
None.

Verze z 31. 7. 2017, 12:50

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 ntext Html text
@Language int Language.

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

Example

EXEC [API_CreateArticle] @Title= 'Title' ,@HtmlText= '<span style="color: red;"> Text </span>' ,@Language= 0

Notices

None.