Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everybody,
I want to be able to display the name of the current bookmark selected in a text object. How do I code for this ?
Thanks in anticipation
Mo
See this discussion: How can I get the name of the active bookmark?
See this discussion: How can I get the name of the active bookmark?
Hi Ashfaq,
I'm unable to download external files at my workplace. Do you have browser-displayed instructions I can follow to create whatever it is you've created in Bookmark Name.qvw ?
thanks
MV
Hi,
Script
Directory;
Directory;
// Start of [test.txt] LOAD statements
Bookmark:
LOAD Id,
Name,
UtcModifyTime,
UtcRecallTime,
RecallCount,
ApplyAdditive,
ApplyLayoutState,
ShowPopupInfo,
ApplyInputFieldValues,
IncludeSelectionState,
IncludeScrollPosition,
[Show/Always] as Always
FROM test.txt (XmlSimple, Table is [QVBookmarks/Bookmark]);
// End of [test.txt] LOAD statements
Macro:
Sub bm
ActiveDocument.ExportBookmarks "test.txt"
End Sub
Sub reload
ActiveDocument.Reload
End Sub
Frontend image
Have a look at image.
Regards
ASHFAQ
As Gysbert hinted before, I advise you to check this thread:
How can I get the name of the active bookmark?
Check the last comment (by Rob Wunderlich) and the link in it.
I think it may help you and there's no need to download any file. Hope that help you.
Best regards
Hi
This blog posting may help:
HTH
Jonathan
Hi
I have added a link that may help. It is waiting for moderator approval.
Jonathan
Thanks for that but you'll have to excuse my ignorance here.
Do I have to create a test.txt file and enter my bookmark names ?
How do I create a QVBookmarks/Bookmark table ?
How do I create a macro ? (I've never done this before !)
Do I have to link the macro to an object ?
Help !!
MV
Maureen Vickers wrote:
Do I have to create a test.txt file and enter my bookmark names ?
It will be created automatically when you create call macro.,
Q) How do I create a QVBookmarks/Bookmark table ?
A) After you call macro test file will be created and your application will be reloaded.
Then you need to create table box with ID and name.
Q) How do I create a macro ? (I've never done this before !)
A) have a look at attached image.
Q) Do I have to link the macro to an object ?
A) yes, you need to link it to a button. have a look at attached image