/
† description_set ()

† description_set ()

Deprecated and removed in API Version 2.8.1

description_get ( session, object, id, type, XML )

Is a function to set the descriptions or name of a library object in all languages

Input

parameters:

session: is the session id obtained in the session_init call

object: possible choices LIBRARY_PROGRAM, LIBRARY_PROTOCOL, LIBRARY_TASK, LIBRARY_TEMPLATE, ANSWER

id: is the identifier of the library object (for the ASNWER object id is FORM_ID|QUESTION_ID, ex. 123213|23)

type: could be NAME or DESCRIPTION

XML: an XML like the XML extract by the call description_get()

Output

parameters:

result: empty

ErrorMsg: any fault in the call, either in the validation of input parameters, errors in the connection to the database or any other error, this parameter returns the error message produced

Request

sample:

description_set( "LC000000.1212212", "LIBRARY_PROGRAM", 3, "NAME",

<descriptions> <description> <lang>CA</lang> <text>Alcohol (Estil de vida)</text> </description> <description> <lang>EN</lang> <text>Drinking (Lifestyle)</text> </description> <description> <lang>ES</lang> <text>Alcohol (Estilo de vida)</text> </description> <description> <lang>GR</lang> <text>Ποτό (Τρόπος ζωής)</text> </description> <description> <lang>NO</lang> <text>*Drinking (Lifestyle)</text> </description> <description> <lang>ZH</lang> <text>*Drinking (Lifestyle)</text> </description> </descriptions>

);

Response

sample:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<result></result>

<ErrorMsg></ErrorMsg>

Notes:

 

 

Related content