Set the properties of an app
Set some properties to an app by using the SetAppProperties method.
Full dynamic properties are not prefixed by q. For more information, see Properties that can be set.
Example
1. Add a title, a thumbnail and a description to the application. The description is a dynamic property. The handle of the application is 1.
The client sends:
{
"jsonrpc": "2.0",
"id": 2,
"method": "SetAppProperties",
"handle": 1,
"params": [
{
"qTitle": "New app title",
"qThumbnail": "/content/default/Qlik_default_feathers.png",
"description": "New app description"
}
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 2,
"result": {}
}
2. Get the properties of the application.
The client sends:
{
"jsonrpc": "2.0",
"id": 3,
"method": "GetAppProperties",
"handle": 1,
"params": []
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"qProp": {
"qTitle": "New app title",
"qThumbnail": {
"qUrl": "/content/default/Qlik_default_feathers.png"
},
"description": "New app description"
}
}
}
The new application properties are returned.
3. Get the layout of the application.
The client sends:
{
"jsonrpc": "2.0",
"id": 4,
"method": "GetAppLayout",
"handle": 1,
"params": []
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 4,
"result": {
"qLayout": {
"qTitle": "New app title",
"qFileName": "C:\\Users\\smu\\Documents\\Qlik\\Sense\\Apps\\Golf Quest.qvf",
"qLastReloadTime": "2013-10-09T14:11:34Z",
"qModified": true,
"qHasScript": true,
"qStateNames": [],
"qMeta": {},
"qLocaleInfo": {
"qDecimalSep": ".",
"qThousandSep": ",",
"qListSep": ";",
"qMoneyDecimalSep": ".",
"qMoneyThousandSep": ",",
"qCurrentYear": 2011,
"qMoneyFmt": "$#,##0.00;($#,##0.00)",
"qTimeFmt": "h:mm:ss TT",
"qDateFmt": "M/D/YYYY",
"qTimestampFmt": "M/D/YYYY h:mm:ss[.fff] TT",
"qCalendarStrings": {
"qDayNames": [
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun"
],
"qMonthNames": [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
],
"qLongDayNames": [
"lunes",
"martes",
"miércoles",
"jueves",
"viernes",
"sábado",
"domingo"
],
"qLongMonthNames": [
"enero",
"febrero",
"marzo",
"abril",
"mayo",
"junio",
"julio",
"agosto",
"septiembre",
"octubre",
"noviembre",
"diciembre"
]
},
"qFirstWeekDay": 0,
"qReferenceDay": 0,
"qFirstMonthOfYear": 0
},
"qHasData": true,
"qThumbnail": {
"qUrl": "/content/default/Qlik_default_feathers.png"
},
"description": "New app description"
}
}
}
The application properties have been updated.