Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nageshbadigermca
Contributor II
Contributor II

Get bookmark expressions and create using bookmark expression using enigma.js

"I am able to create bookmarks using createBookmark but am not able to include expressions in the bookmark object. Please help implement bookmarks with expressions using Enigma.js."

nageshbadigermca_0-1736339920637.png

I am able to create bookmarks using createBookmark not able to pass expression:

   let bookmarkObj={
        "qInfo": {
          "qType": "bookmark",
        },
        "qMetaDef": {
          "title": "MyBookmark_jan_8_2025_1_2_1",
          // You can add more meta properties as needed
        },
        "qData": {        
          "title": "Install Systemization Failure Rate",
          "description": ""}
         
      }
      const newBookmark = await app.createBookmark(bookmarkObj); please help to implement the bookmarks using enigma.s
Labels (4)
1 Solution

Accepted Solutions
alex_colombo
Employee
Employee

Hey @nageshbadigermca you cannot directly set the expression, because it is automatically evaluated based on current selections. So before use createBookmark method, you have to apply your selections and then create the bookmark. In this way you will see the set expression based on your selection criteria applied before bookmark creation.

View solution in original post

3 Replies
nageshbadigermca
Contributor II
Contributor II
Author

Hi David. thank you for quick response, 

I am trying to create existing bookmark via enigma.js methods. 

alex_colombo
Employee
Employee

Hey @nageshbadigermca you cannot directly set the expression, because it is automatically evaluated based on current selections. So before use createBookmark method, you have to apply your selections and then create the bookmark. In this way you will see the set expression based on your selection criteria applied before bookmark creation.