API CreateCustomMenuCategory: 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 custom menu category in system. ==== Exact name ==== <code>API_CreateCustomMenuCategory</code> ====…“)
 
 
(Nejsou zobrazeny 2 mezilehlé verze od stejného uživatele.)
Řádka 16: Řádka 16:
 
!Relation
 
!Relation
 
|-
 
|-
|@WorkshopID
+
|@ParentID
 
|int
 
|int
 
|
 
|
|ID of workshop from workshop list (see relation)
+
|Parent category ID
|API_GetWorkshops.ID
+
|
 +
|-
 +
|@PageID
 +
|int
 +
|
 +
|ID of article from articles list (see relation)
 +
|API_GetArticles.ID
 +
|-
 +
|@Title
 +
|nvarchar(250)
 +
|
 +
|Title
 +
|
 +
|-
 +
|@Tooltip
 +
|nvarchar(250)
 +
|
 +
|Tooltip
 +
|
 +
|-
 +
|@Language
 +
|int
 +
|
 +
|Language
 +
cs=0; pl=1; en=2; de=3; sk=4; hu=5; nl=6; ru=7; et=8; lv=9;
 +
 
 +
lt=10; ar=11; fr=12; it=13; pt=14; ro=15; es=16; tr=17; bg=17
 +
|
 +
|-
 +
|@URL
 +
|nvarchar(350)
 +
|
 +
|URL
 +
|
 +
|-
 +
|@OrderIndex
 +
|int
 +
|
 +
|Order index
 +
|
 +
|-
 +
|@BranchID
 +
|int
 +
|
 +
|ID of branch from branch list (see relation)
 +
|API_GetBranches.ID
 
|}
 
|}
 +
 +
==== Return ====
 +
0 : OK
 +
100 : Item could not be created
  
 
==== Example ====
 
==== Example ====
 
<syntaxhighlight lang="sql">
 
<syntaxhighlight lang="sql">
EXEC [API_CreateCustomMenuCategory] @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'
+
DECLARE @return_value int
 +
EXEC @return_value = [API_CreateCustomMenuCategory] @ParentID= -1 ,@PageID= 1 ,@Title= 'Title' ,@Tooltip= 'Tooltip' ,@Language= 0 ,@URL= 'https://nextis.cz' ,@OrderIndex= 0, @BranchID= -1
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
==== Notices ====
 
==== Notices ====
 
None.
 
None.

Aktuální verze z 20. 9. 2017, 16:13

Description

Method allows You to create new custom menu category in system.

Exact name

API_CreateCustomMenuCategory

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ParentID int Parent category ID
@PageID int ID of article from articles list (see relation) API_GetArticles.ID
@Title nvarchar(250) Title
@Tooltip nvarchar(250) Tooltip
@Language int Language

cs=0; pl=1; en=2; de=3; sk=4; hu=5; nl=6; ru=7; et=8; lv=9;

lt=10; ar=11; fr=12; it=13; pt=14; ro=15; es=16; tr=17; bg=17

@URL nvarchar(350) URL
@OrderIndex int Order index
@BranchID int ID of branch from branch list (see relation) API_GetBranches.ID

Return

0 : OK
100 : Item could not be created

Example

 DECLARE @return_value int
 EXEC @return_value = [API_CreateCustomMenuCategory] @ParentID= -1 ,@PageID= 1 ,@Title= 'Title' ,@Tooltip= 'Tooltip' ,@Language= 0 ,@URL= 'https://nextis.cz' ,@OrderIndex= 0, @BranchID= -1

Notices

None.