i developed an custom filter for iso calender weeks for my company in PowerBI.
It works very well, but i am not able to save the current filter to the localstorage. It works on the web when its published but not in the desktop version.
import ILocalVisualStorageService = powerbi.extensibility.ILocalVisualStorageService;
constructor(options: VisualConstructorOptions){
this.storage = options.host.storageService;
}
in my first update cycle i check for the localstorage and set if necessary.
//to get data in async function
let cache = await this.storage.get("filter");
//to set data in async function
await this.storage.set("filter", "xyz");
Is it possible to use the localstorage in Desktop?
Kind Regards
Tobias