Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good day everyone,
Using the .NET SDK I was able to return from an App its Bookmarks with the following properties:
However, I'm looking for a way to get the Set expression as illustrated in the screen shot below:
Any help you this will be very appreciated.
Thank you,
Mark Costa
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
There's a method called "GetSetAnalysis" which is called on the app. You'll find it's documentation at this page (though you'll have to scroll quite far down to get to it, so a search is a good idea...):
The signature of the method looks like this:
public string GetSetAnalysis([QixName("qStateName")] string stateName = null, [QixName("qBookmarkId")] string bookmarkId = null)
There's a method called "GetSetAnalysis" which is called on the app. You'll find it's documentation at this page (though you'll have to scroll quite far down to get to it, so a search is a good idea...):
The signature of the method looks like this:
public string GetSetAnalysis([QixName("qStateName")] string stateName = null, [QixName("qBookmarkId")] string bookmarkId = null)
You rock again Yko. Thank you very much. It worked.
For the ones facing the same challenge, here is part of my test code to capture the Bookmark Set Analysis:
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
I'm glad it worked out for you! I was at first rather surprised to see that that method was an App method and not a member of the class GenericBookmark, but the reason is that you can call the method without a bookmark ID in which case you get the set analysis for the current selection. Learning something every day!
Is there any way to set the Set expression of a bookmark?
I am trying to create a bookmark with the expression obtained from GetSetAnalysis, but I have been able yet.
This is not possible I'm afraid. Bookmarks doesn't work that way. There are other threads here on the topic as well:
https://community.qlik.com/t5/QlikView-App-Dev/Edit-and-modify-bookmark-selection/td-p/1285635
Hello,
How to create a new bookmark with the Set expression? Is that possible with the .NET SDK?
NB. I think the above thread is about setExpression to an an exiting bookmark?