Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Greetings
I am using .Net SDK and trying to copy user's bookmark. Almost fine except that expression is not available to copy at all.
Code example:
var local = Qlik.Engine.Location.FromUri(new Uri(qlikSettings.WSSUrl)); local.AsDirectConnection("XXX", "XXX", extendedSecurityEnvironment: false); var App = local.GetAppIdentifiers().Where(a => a.AppId == appId).FirstOrDefault(); IEnumerable<BookmarkObjectViewListContainer> listBookmarks; using (var doc = local.App(App)) { listBookmarks = doc.GetBookmarkList().Items; }
Is there a possibility to get saved bookmark expression?
The set expression is actually not part of the bookmark properties, but there is a method on the App class that you can access it with. It's called "App.GetSetAnalysis". The method is available in the latest nuget package, but it doesn't seem to have made its way into the reference documentation from what I can see.
The signature of the method looks like this:
string App.GetSetAnalysis(string stateName, string bookmarkId)
And if you are not using alternate states, you would typically set "stateName" to "$".
Thank you. It reads bookmark expression!
How do I set expression back using this method? Will it be set to same user? How is it possible to understand to which particular user original bookmark belongs?