mindspank / serializeapp

MIT License
48 stars 19 forks source link

Create bookmarks not functional #8

Open fredrik-oskarsson opened 5 years ago

fredrik-oskarsson commented 5 years ago

Hey,

First off, thanks for an awesome tool!

There seems to be an error when generating the json for bookmarks. The code below the resulting bookmarks.json I get when serializing an app with a single simple bookmark in it (ALL values in field Store Code have been selected). Not how the title and selectionfields are correct, but no data about which selections that has actually been made are appended.

{ "bookmarks": [ { "qInfo": { "qId": "8f6db25e-e450-4061-a840-8e26fcb09875", "qType": "bookmark" }, "qMetaDef": { "title": "Dashboard - all StoreCodes", "description": "" }, "creationDate": "2018-11-21T12:40:49.160Z", "sheetId": "72d08945-a8c2-4acf-a622-dad7d59856e9", "selectionFields": "Store Code", "qData": { "qBookMark": { "qStateData": [ { "qStateName": "$", "qFieldItems": [ { "qDef": { "qName": "Store Code", "qType": "PRESENT" }, "qSelectInfo": { "qRangeLo": "NaN", "qRangeHi": "NaN", "qNumberFormat": { "qType": "U", "qnDec": 10, "qUseThou": 0 }, "qRangeInfo": [], "qContinuousRangeInfo": [] }, "qValues": [], "qExcludedValues": [] } ] } ], "qUtcModifyTime": 43425.57001157408, "qVariableItems": [] } } } ] }

Using the Engine API explorer I am able to generate bookmarks by manually filling in: "qValues": ["ALL"], "qExcludedValues": [0]

Shouldn't this code be generated when bookmarks are exported? I have no idea how to generate it though, so any help would be appreciated.