Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Bookmark activation in macro

How to activate bookmark in macro.

7 Replies
Not applicable
Author

hi,

first create a bookmark

and then use apply bookmark macro and use bookmark id as 'document\BM01'

thanks

justinasp
Creator
Creator

Try this:

ActiveDocument.RecallUserBookmark "MyBookmark"


More help you can find on API Guide in ..Program Files\QlikView\Documentation

Take care,

Justinas

Not applicable
Author

Its works..Thanks for immediate reply..

Not applicable
Author

hi,

first create a bookmark

and then use apply bookmark macro and use bookmark id as Document\BM01

where BM01 is the objectid of bookmark created.

thanks



Not applicable
Author

thanks for the post. It answered my question as well.

qlikslave
Contributor
Contributor

First create your bookmark named 'default' and then try to apply bookmark in POWERSHELL SCRIPT as example

$sModelName   = "qvp://00337/Анализ котировок .qvw"
$ChartID = "CH29" # ='Статистика Расчет/Договор'

$qv = New-Object -comobject QlikTech.QlikView -strict

$Doc = $qv.OpenDoc($sModelName)


$Doc.ClearAll($True)
$Doc.RecallDocBookmark("default")

$Doc.Fields("%Измерение3").select("ЦФО")


$chart = $Doc.GetSheetObject($ChartID)
$vDestination = $Doc.Variables("vDashBoardDir").GetContent().String
$fileName = $vDestination + "\Экспорт для DB из Анализ котировок КАСКО по ЦФО.qvd"
$chart.ExportEx($fileName,4)


$Doc.CloseDoc()
$qv.Quit()

dmohanty
Partner - Specialist
Partner - Specialist

qlikslave

If possible, can you please convert the above in English?