API CreateUnit: Porovnání verzí
Z Podpora.nextis.cz
(Založena nová stránka s textem „==== Description ==== Method allows You to create new unit in system. ==== Exact name ==== <code>API_CreateUnit</code> ==== Type ==== Standard executable…“) |
|||
| (Není zobrazena jedna mezilehlá verze od stejného uživatele.) | |||
| Řádka 16: | Řádka 16: | ||
!Relation | !Relation | ||
|- | |- | ||
| − | |@ | + | |@Name |
|nvarchar(50) | |nvarchar(50) | ||
| | | | ||
| − | | | + | |Name |
| + | | | ||
| + | |- | ||
| + | |@ShortName | ||
| + | |nvarchar(50) | ||
| + | | | ||
| + | |Short name | ||
| | | | ||
|} | |} | ||
| + | |||
| + | ==== Return ==== | ||
| + | 0 : OK | ||
| + | 100 : Item could not be created | ||
==== Example ==== | ==== Example ==== | ||
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> | ||
| − | EXEC [API_CreateUnit] @Name= ' | + | DECLARE @return_value int |
| + | EXEC @return_value = [API_CreateUnit] @Name= 'Yard' ,@ShortName= 'yd' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Notices ==== | ==== Notices ==== | ||
None. | None. | ||
Aktuální verze z 22. 9. 2017, 09:44
Description
Method allows You to create new unit in system.
Exact name
API_CreateUnit
Type
Standard executable stored procedure.
Specification
| Parameter | Data type | Value range | Description | Relation |
|---|---|---|---|---|
| @Name | nvarchar(50) | Name | ||
| @ShortName | nvarchar(50) | Short name |
Return
0 : OK 100 : Item could not be created
Example
DECLARE @return_value int
EXEC @return_value = [API_CreateUnit] @Name= 'Yard' ,@ShortName= 'yd'
Notices
None.