Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am using ODAG and I have a Selection app and a Template app. I have defined a custom property 'ODAGTemplate' on the App resource with available values of 'true' and 'false'.
I have set the ODAGTemplate custom property value to 'true' on the Template app.
When the on-demand app gets generated from the Template app, the generated app is missing the custom property values.
Looks like the generated app is not copying the custom property values from the Template app.
I am using November 2017 (without any patches)
thanks,
Mufaddal
ltu , have you seen this issue before?
To be honest, regular duplications look to be treated differently than ODAG duplication so it looks like functionality was added to the Product.
Check these details & modify accordingly:
1)Create a custom “ODAGTemplate” property
a)In QMC, go to Start->Custom Properties
b)Click on “Create new”
c)Set “Name” to “ODAGTemplate”
d)Check the “App” resource type
e)Add Values: “true” and “false”
2)Assign ODAGTemplate = “true” on all template apps
a)In QMC, go to Start->Apps
b)Select your template app from the list
c)Click on “Edit”
d)Check “Custom Properties”
e)Under “Custom Properties”, set ODAGTemplate = “true”
3)Modify “Stream” Security Rule test for ODAGTemplate=”true”
a)In QMC, go to Start->Security Rules
b)Select the “Stream” security rule
c)Click on “Edit”
d)Under the advanced section, change the security from:
(resource.resourcetype = "App" and
resource.stream.HasPrivilege("read")) or
((resource.resourcetype = "App.Object" and resource.published
="true" and resource.objectType != "app_appscript") and
resource.objectType != "loadmodel") and
resource.app.stream.HasPrivilege("read"))
to the following (the red text is added):
(resource.resourcetype = "App" and
resource.stream.HasPrivilege("read")) or
((resource.resourcetype = "App.Object" and resource.published
="true" and
(
resource.objectType !
= "app_appscript"
or
resource.App.@ODAGTemplate = "true")
and resource.objectType !=
"loadmodel") and resource.app.stream.HasPrivilege("read”))
mborsadw: So this has been a historical issue, generally. In looking into the ODAG scenario specifically, there looks to be a change in Qlik Sense February 2018 which is copying the custom properties applied to the template app:
Thanks for your response Levi.
In November 2017, I see that custom property values are lost even while duplicating a regular (non odag) app. Is this fixed in Feb2018 patch2?
June 2018 has the same issue where custom property values are lost while duplicating a regular app.
To be honest, regular duplications look to be treated differently than ODAG duplication so it looks like functionality was added to the Product.