Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Not applicable

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

Tags (2)
1 Solution

Accepted Solutions
Employee
Employee

Re: QlikSense change properties of published application

Unfortunately we do not support dynamic properties for apps in Qlik Sense server (it works fine in Desktop though). There is another thread on this topic with more details:

SetAppProperties and full dynamic properties

4 Replies
Employee
Employee

Re: QlikSense change properties of published application

Unfortunately we do not support dynamic properties for apps in Qlik Sense server (it works fine in Desktop though). There is another thread on this topic with more details:

SetAppProperties and full dynamic properties

Not applicable

Re: QlikSense change properties of published application

Thank you very much for your response.

We also solved this by adding a new object and storing the properties inside of the object.

Verily it is a pity that Qlik Sense does not support dynamic app properties. For me our solutions feels like a workaround. But the really annoying fact is that nothing is documented about this and unfortunately i was not able to found your written thread. But Sense is still young and may be you are able to support this in a future Qlik Sense version or perhaps you could update your documentation.

Employee
Employee

Re: QlikSense change properties of published application

The documentation actually describes this, though I guess you have to know where to look. It's described as part of the documentation for the data structure used for the app properties:

http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/EngineAPI/Content/Structs/NxAppProperties....

Not applicable

Re: QlikSense change properties of published application

I have missed this part of documentation, although I searched a lot. So nice to see that this was my fault and that this case is documented! Thank you very much!

Community Browser