API UpdateRecommendedLink: Porovnání verzí

Z Podpora.nextis.cz
Skočit na navigaci Skočit na vyhledávání
Založena nová stránka s textem „==== Description ==== Method allows You to update recommended link in system. ==== Exact name ==== <code>API_UpdateRecommendedLink</code> ==== Type ====…“
 
Bez shrnutí editace
 
Řádek 53: Řádek 53:
|}
|}


==== Return ====
0 : OK
100 : Item could not be updated


==== Example ====
==== Example ====
<syntaxhighlight lang="sql">
<syntaxhighlight lang="sql">
DECLARE @return_value int
  DECLARE @ID int  
  DECLARE @ID int  
  DECLARE @Name nvarchar(35)
  DECLARE @Name nvarchar(35)
Řádek 72: Řádek 76:
  WHERE  id = 3
  WHERE  id = 3
   
   
  EXECUTE [API_UpdateRecommendedLink]  
  EXECUTE @return_value = [API_UpdateRecommendedLink]  
   @ID,  
   @ID,  
   @Name,
   @Name,

Aktuální verze z 21. 9. 2017, 10:50

Description

Method allows You to update recommended link in system.

Exact name

API_UpdateRecommendedLink

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ID int Internal system id
@Name nvarchar(35) Name
@Description nvarchar(200) Description
@Url nvarchar(500) Url
@IsTargetBlank bit Is target blank
@RegisteredOnly bit Registered only

Return

0 : OK
100 : Item could not be updated

Example

 DECLARE @return_value int
 DECLARE @ID int 
 DECLARE @Name nvarchar(35)
 DECLARE @Description nvarchar(200)
 DECLARE @Url nvarchar(500)
 DECLARE @IsTargetBlank bit
 DECLARE @RegisteredOnly bit
 
 SELECT @ID = [ID], 
       @Name = [Name],
       @Description = 'Description 2',
       @Url = [Url],
       @IsTargetBlank = [IsTargetBlank],
       @RegisteredOnly = [RegisteredOnly]
 FROM   [API_GetRecommendedLinks] 
 WHERE  id = 3
 
 EXECUTE @return_value = [API_UpdateRecommendedLink] 
  @ID, 
  @Name,
  @Description,
  @Url,
  @IsTargetBlank,
  @RegisteredOnly

Notices

None.