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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.