Set the properties of a bookmark
Set the properties of a bookmark by using the SetProperties method.
Example
1. Get the properties of the bookmark.
The client sends:
{
"jsonrpc": "2.0",
"id": 11,
"method": "GetProperties",
"handle": 4,
"params": []
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 11,
"result": {
"qProp": {
"qInfo": {
"qId": "BM01",
"qType": "Bookmark"
},
"qMetaDef": {}
}
}
}
The properties of the bookmark are displayed.
2. Set a title to the bookmark.
The client sends:
{
"jsonrpc": "2.0",
"id": 12,
"method": "SetProperties",
"handle": 4,
"params": [
{
"qInfo": {
"qId": "BM01",
"qType": "Bookmark"
},
"qBookmarkListDef": {
"qType": "Bookmark"
},
"title": "Title of the bookmark BM01"
}
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 12,
"result": {},
"change": [
4
]
}
The title is added to the properties of the bookmark.
3. Get the properties of the bookmark.
The client sends:
{
"jsonrpc": "2.0",
"id": 13,
"method": "GetProperties",
"handle": 4,
"params": []
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 13,
"result": {
"qProp": {
"qInfo": {
"qId": "BM01",
"qType": "Bookmark"
},
"qMetaDef": {},
"qBookmarkListDef": {
"qType": "Bookmark",
"qData": {}
},
"title": "Title of the bookmark BM01"
}
}
}
The title has been added to the bookmark's properties.