Skip to contents

This function will insert data rows into a code list stored in EBX5 through R.

Usage

InsertEBXCodeList(data, sdmx_codelist_name)

Arguments

data

a data.frame containing all columns to be be inserted

sdmx_codelist_name

code list name, in SDMX style. Available code lists are shown by function GetEBXCodeLists in the field "Acronym". The actual codelist location in EBX5 (branch, instance, code-list-name) are resolved using the metadata structure.

Value

boolean

Details

The data columns provided must follow the code-list which is being updated. All keys of the code-list must be given, as well as any fields which are mandatory. Using the SOAP-API the column name is not the label visible in EBX, but the field name. Requires that the EBX5 connection was configured using SetupEBXConnection.

Author

Thomas Berger, thomas.berger@fao.org

Examples


if (FALSE) {
cl_new <- data.frame(Identifier = c(999, 888), Name_En=c('Test1','Test2'))
InsertEBXCodeList(data = cl_new, sdmx_codelist_name = 'CL_FI_COUNTRY_ITEM')
}