Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2023, a live, in-person thrill ride. April 17 - 20, 2023, in Las Vegas! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
jagannalla
Partner - Specialist III
Partner - Specialist III

Is it possible to hold bookmark name in variable?

Hi,

Is it possible to store bookmark name in variable?

- The think is i had a BookMarkObject by using bookmark object i can able to select book mark names. When i select any bookmark name i want to store in one variable.

Is it really possible to do it? Just i need answer otherwise if it is possible how can i overcome this.

16 Replies
IAMDV
Luminary Alumni
Luminary Alumni

Hi,

Yes, you can hold the bookmark name in the variable. You can use the Apply Bookmark event and call the variable to apply the bookmark. For example, here my variable name is vBookMark. And you can call the contents of the variable by using  "=vBookMark" in Apply Bookmark event.

Hope this helps!

Cheers - DV

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Dv,

I tried what you said but it is not working for me. Let explain me what i did in my qvw file.

- I created one variable vBM and in triggers -> Variable Event Triggers -> vBM.

- OnInput Action i taken ApplyBookMark and given BookmarkID= BM02.

BM02 is objectID of BookMark Object.

- I don't know where i went wrong if i understood what you said to me.

Can you help me some more to get the solution.

IAMDV
Luminary Alumni
Luminary Alumni

Hi Again,

Sorry, I guess I haven't understood fully. Let me make sure on what you wanted... In your example you have already created a bookmark with ID = BM02. And whenever the user makes the selection by using the BM02 Bookmark you wanted to store "BM02" text in the variable (vBM) in our case. Is this right?

Also please can you post your example and I can try with your QV document?

Many thanks - DV

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Dv,

I'm attaching my qvw file. But i don't have full version if you attach updated qvw file.

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

D V,

Can you please respond to my post.

Not applicable

Hello Jaq,

try this in your textbox:

='$(vBookVar)' & ' and ' & '$(vBookMarkName)'

&' Here i want to see bookmark name when '

RR

IAMDV
Luminary Alumni
Luminary Alumni

Hi Jaq,

Caught with solving my client's issue. I'll get back to you ASAP. Thanks for sharing the QV document.

Cheers - DV

IAMDV
Luminary Alumni
Luminary Alumni

Hello Jacq,

Please see the attachment and let me know if this helps...

This is not the straightforward approach but I can't find much help on bookmarks class from the API guide.

Good luck!

Cheers - DV

IAMDV
Luminary Alumni
Luminary Alumni

Hello Jacq,

Have you got chance to look at this solution?

Cheers - DV