This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
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)
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |