Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I Have a Purchase model that contains a lot of Purchase orders, i want every user to have on the dashboard a list of their favorite Purchase documents.
I created a trigger that's creates Server User bookmark with a specific name so that i will be able to refer it in an expression and create a table with and expression like this - Sum({$*bookmark_name} money).
But after the first time the user creates the bookmark i need to change the trigger to replace bookmark because if i'll create a multiple bookmarks with the same name the expression will refer to the first one created.
The problem is that the input on Replace bookmark trigger is the bookmark id, and the bookmark id is something i didn't manage to control when created on "open in server".
Maybe you need a few adjustments to your logic then you could set, change and remove bookmarks by ID - the following examples are from the APIGuide.qvw which you could find in your install-folder.
ActiveDocument.RemoveBookmarkById "BM01"
ActiveDocument.SetDocBookmarkId "BM01","MyBookmarkId"
Class | MemberType | Member | ParameterNo | Parameter | Type | Direction | Comment |
---|---|---|---|---|---|---|---|
Document | Method | CreateDocBookmark | return value | - | No return value | ||
1 | Additive | Boolean | in | true if bookmark to be applied on top of current selections | |||
2 | Name | String | in | Name of bookmark | |||
3 | Id | String | in, optional | Bookmark ID | |||
4 | Type | short | in, optional | 0 = Normal 1 = Shared 2 = Temporary | |||
5 | ExcludeSelections | Boolean | in, optional | ||||
6 | LayoutState | Boolean | in, optional | ||||
7 | Hide | Boolean | in, optional | ||||
8 | ShowPopupInfo | Boolean | in, optional | ||||
9 | InfoMsg | String | in, optional | ||||
10 | InputFieldValuesFlag | Boolean | in, optional |
- Marcus