Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.
I'm using Engine API Explorer both in Desktop and Server. I find out that Doc State is always Invalid, whether I use of CreateDocEx to create a new app and open it, or I open an existing app from list box "Select an app". Why that? Is it ordinary?
I ask that because I'm trying to build an app from scratch through the use of Engine API Explorer (or rather I'd like to create list boxes and associate to them an alternate state), but when I try to create an object, such as a sheet, in an app with state invalid, I go then to the hub and the app has no sheets available and nothing I can do to create a sheet in the hub itself! How can I resolve this issue?
Thanks in advance.
State 'Invalid' means that the app has been invalidated and you need to call GetAppLayout to get valid data:
I don't think this has much to do with your problems though. How do you go about to create the sheet?
thanks a lot for your reply! Ok, GetAppLayout works as expected and Doc has now Valid State.
From here, I proceed as follow:
1. the app in hab as the following overview:
2. in Engine API Explorer I use CreateObject from handle 1 and write SH01 as Id and sheet as type:
3. handle 2 comes out. So I call DoSave in handle 1 and disconnect (sheet object SH01 can be seen through getInfo method). Then I reopen the app in hub but nothing is there, not even the possibility to create a new sheet from there:
Can you suggest me something to do? What am I doing wrong?
Thank you so much.
Which issue do you refer to? The invalid app state or problems in creating a sheet programatically?