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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jugurtha
Frequent Visitor

Visual title PowerBi javascript API

Hi All,

 

I have a problem with visual title in javascript API when i execute this code:

 

if ( checkedVisuals[i].title != null ){............}

 

When i fill the title manually in PowerBi Desktop it's working good, but when i fill it with the fonction like in the picture bellow it's not working and the javascript return title is null.

Capture6.PNG

 

Thank you.

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @jugurtha,

I'd like to suggest you take a look at below tutorial about create a React-based custom visual if they helps for your requirement:
Tutorial: Create a React-based visual#receive-properties-from-power-bi 
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@jugurtha , In javascript , I think it should be

 

checkedVisuals[i].title != null

 

or for null

checkedVisuals[i].title == null

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors