4 Replies Latest reply: Apr 14, 2016 6:12 AM by Jeremy Gauchel RSS

    QlikSense change properties of published application

      Hello Qlik-Team,

       

      I need to know if it is possible to change the properties of a published application. The requirement is to persist an additional ID to an application - published or not!

       

      With the Engine API it is possible to update or add proberties with "SetAppProperties". This is working for unpublished apps. For published apps the behavior of the Engine API feels a bit strange:

       

      If send the following request:

       

      {

        "handle": 1,

        "method": "SetAppProperties",

        "params": {

        "qProp": {

        "description": "1337"

        }

        },

        "id": 12,

        "jsonrpc": "2.0"

      }

       

      i get this response:

       

      {

        "jsonrpc": "2.0",

        "id": 12,

        "result": {},

        "change": [

        1

        ]

      }

       

      But if i take a look with GetAppLayout, nothing changed...

       

      Request:

       

      {

        "handle": 1,

        "method": "GetAppLayout",

        "params": {},

        "id": 14,

        "jsonrpc": "2.0"

      }

       

      Response:

       

      {

        "jsonrpc": "2.0",

        "id": 6,

        "result": {

        "qLayout": {

        "qTitle": "trueChart",

        "qFileName": "559fca71-3c81-4e93-a187-3e7fbc12af97",

        "qLastReloadTime": "2016-03-21T13:07:46.026Z",

        "qStateNames": [],

        "qMeta": {},

        "qLocaleInfo": {

        "qDecimalSep": ",",

        "qThousandSep": ".",

        "qListSep": ";",

        "qMoneyDecimalSep": ",",

        "qMoneyThousandSep": ".",

        "qCurrentYear": 2016,

        "qMoneyFmt": "#.##0,00 €;-#.##0,00 €",

        "qTimeFmt": "hh:mm:ss",

        "qDateFmt": "DD.MM.YYYY",

        "qTimestampFmt": "DD.MM.YYYY hh:mm:ss[.fff]",

        "qCalendarStrings": {

        "qDayNames": [

        "Mo",

        "Di",

        "Mi",

        "Do",

        "Fr",

        "Sa",

        "So"

        ],

        "qMonthNames": [

        "Jan",

        "Feb",

        "Mrz",

        "Apr",

        "Mai",

        "Jun",

        "Jul",

        "Aug",

        "Sep",

        "Okt",

        "Nov",

        "Dez"

        ],

        "qLongDayNames": [

        "Montag",

        "Dienstag",

        "Mittwoch",

        "Donnerstag",

        "Freitag",

        "Samstag",

        "Sonntag"

        ],

        "qLongMonthNames": [

        "Januar",

        "Februar",

        "März",

        "April",

        "Mai",

        "Juni",

        "Juli",

        "August",

        "September",

        "Oktober",

        "November",

        "Dezember"

        ]

        },

        "qFirstWeekDay": 0,

        "qReferenceDay": 4,

        "qFirstMonthOfYear": 1,

        "qCollation": "de-DE"

        },

        "qHasData": true,

        "qThumbnail": {},

        "modifiedDate": "2016-04-12T15:46:46.953Z",

        "published": true,

        "publishTime": "2016-04-12T15:46:46.837Z",

        "privileges": [

        "read",

        "exportdata"

        ],

        "description": "",

        "qFileSize": 27385536,

        "dynamicColor": "",

        "create": [

        {

        "resource": "sheet",

        "canCreate": true

        },

        {

        "resource": "bookmark",

        "canCreate": true

        },

        {

        "resource": "story",

        "canCreate": true

        },

        {

        "resource": "dimension",

        "canCreate": false

        },

        {

        "resource": "measure",

        "canCreate": false

        },

        {

        "resource": "masterobject",

        "canCreate": false

        },

        {

        "resource": "folderconnection",

        "canCreate": true

        },

        {

        "resource": "oledbconnection",

        "canCreate": true

        },

        {

        "resource": "odbcconnection",

        "canCreate": true

        },

        {

        "resource": "internetconnection",

        "canCreate": true

        },

        {

        "resource": "customconnection",

        "canCreate": true

        }

        ],

        "stream": {

        "id": "aaec8d41-5201-43ab-809f-3063750dfafd",

        "name": "Everyone"

        },

        "canCreateDataConnections": true

        }

        }

      }

       

      If i try to change the qMeta property with:

       

      {

        "handle": 1,

        "method": "SetAppProperties",

        "params": {

        "qProp": {

        "qMeta" : { "guid" : "1337" }

        }

        }

      }

       

      i get the same response

       

      {

        "jsonrpc": "2.0",

        "id": 12,

        "result": {},

        "change": [

        1

        ]

      }


      and the AppLayout has changed:


      Request:

       

      {

        "handle": 1,

        "method": "GetAppLayout",

        "params": {},

        "id": 14,

        "jsonrpc": "2.0"

      }

       

      Response:

       

      {

        "jsonrpc": "2.0",

        "id": 6,

        "result": {

        "qLayout": {

        "qTitle": "trueChart",

        "qFileName": "559fca71-3c81-4e93-a187-3e7fbc12af97",

        "qLastReloadTime": "2016-03-21T13:07:46.026Z",

        "qStateNames": [],

        "qMeta": { "guid" : "1337" },

        "qLocaleInfo": {

        "qDecimalSep": ",",

        "qThousandSep": ".",

        "qListSep": ";",

        "qMoneyDecimalSep": ",",

        "qMoneyThousandSep": ".",

        "qCurrentYear": 2016,

        "qMoneyFmt": "#.##0,00 €;-#.##0,00 €",

        "qTimeFmt": "hh:mm:ss",

        "qDateFmt": "DD.MM.YYYY",

        "qTimestampFmt": "DD.MM.YYYY hh:mm:ss[.fff]",

        "qCalendarStrings": {

        "qDayNames": [

        "Mo",

        "Di",

        "Mi",

        "Do",

        "Fr",

        "Sa",

        "So"

        ],

        "qMonthNames": [

        "Jan",

        "Feb",

        "Mrz",

        "Apr",

        "Mai",

        "Jun",

        "Jul",

        "Aug",

        "Sep",

        "Okt",

        "Nov",

        "Dez"

        ],

        "qLongDayNames": [

        "Montag",

        "Dienstag",

        "Mittwoch",

        "Donnerstag",

        "Freitag",

        "Samstag",

        "Sonntag"

        ],

        "qLongMonthNames": [

        "Januar",

        "Februar",

        "März",

        "April",

        "Mai",

        "Juni",

        "Juli",

        "August",

        "September",

        "Oktober",

        "November",

        "Dezember"

        ]

        },

        "qFirstWeekDay": 0,

        "qReferenceDay": 4,

        "qFirstMonthOfYear": 1,

        "qCollation": "de-DE"

        },

        "qHasData": true,

        "qThumbnail": {},

        "modifiedDate": "2016-04-12T15:46:46.953Z",

        "published": true,

        "publishTime": "2016-04-12T15:46:46.837Z",

        "privileges": [

        "read",

        "exportdata"

        ],

        "description": "",

        "qFileSize": 27385536,

        "dynamicColor": "",

        "create": [

        {

        "resource": "sheet",

        "canCreate": true

        },

        {

        "resource": "bookmark",

        "canCreate": true

        },

        {

        "resource": "story",

        "canCreate": true

        },

        {

        "resource": "dimension",

        "canCreate": false

        },

        {

        "resource": "measure",

        "canCreate": false

        },

        {

        "resource": "masterobject",

        "canCreate": false

        },

        {

        "resource": "folderconnection",

        "canCreate": true

        },

        {

        "resource": "oledbconnection",

        "canCreate": true

        },

        {

        "resource": "odbcconnection",

        "canCreate": true

        },

        {

        "resource": "internetconnection",

        "canCreate": true

        },

        {

        "resource": "customconnection",

        "canCreate": true

        }

        ],

        "stream": {

        "id": "aaec8d41-5201-43ab-809f-3063750dfafd",

        "name": "Everyone"

        },

        "canCreateDataConnections": true

        }

        }

      }

       

      But it is not possible to save this information in qMeta. A DoSave-Request is forbidden of course and after a refresh the qMeta informations are lost.

       

      Thank you very much for you help!

       

      Regards

      Jeremy