Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello guys,
i developed an custom filter for iso calender weeks for my company.
It works very well, but iam not able to save the current filter to the localstorage. It seems to work on the web 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
Hi @Anonymous,
I personally haven't tried it in Desktop, but does your visual meet the requirements for being able to use the API? The two key ones are that it must be in AppSource and certified. If so, then it should be a case of emailing the team to request access on a per visual basis.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
User | Count |
---|---|
5 | |
4 | |
3 | |
2 | |
2 |
User | Count |
---|---|
8 | |
6 | |
4 | |
4 | |
4 |