Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
VivekChadha
Frequent Visitor

How to retain the value of configuration in custom visual?

VivekChadha_1-1666246236407.png

 

I have implemented the custom visual with configuration called :Unique Dates Per Page, when i set some value, its taking up the value but when i save the page and open it again the value is again getting set to default value, i don't why this is happening?

 

This is settings.ts file, where i am setting the value=20, on saving and opening the report again value is getting set to 20 (showing 20) but its still taking up the previous value which i have set it (not default value).

VivekChadha_2-1666246342789.png

 How to resolve this issue?

6 REPLIES 6
VivekChadha
Frequent Visitor

Hey @VivekChadha, I'm happy to try to help with this. Are you able to provide the following?:

  • Full project code so I can dev locally (ideally a GitHub repo or similar w/package.json & package-lock.json rather than a node_modules folder)
  • Report w/sample data (ideally with a test visual already set up so I can deploy and debug)


Madison Giammaria
Proud to be a Super User 😄
LinkedIn

Do you frequently use Deneb to provide insights to your stakeholders? Have you considered sponsoring this free and open source custom visual? More info here!

Hi @giammariam , Can we connect over google meet or any mode of communication so i can share all the details with you,

In short when i set some value in the powerbi custom visual and refersh the page it doesn't show the same set value in the settings.

For Example we are having some configuration called 'Box Settings', Under Box settings if i set the box width to 163 and refersh the page it shows me the default value instead of the previous set value.

VivekChadha_0-1678862171111.png

 

Looking forward to hear from you.

VivekChadha
Frequent Visitor

When you save the report all the values in the formatting pane are saved as well. So opening it next time, you will see all the saved values that you used previously. If you hit the reset to default button, then you will see the default value. 

yeah but i am not able to see the previously set value.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors