cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular 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
Highlighted
Super User IX
Super User IX

Re: Visual title PowerBi javascript API

@jugurtha , In javascript , I think it should be

 

checkedVisuals[i].title != null

 

or for null

checkedVisuals[i].title == null



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Community Support
Community Support

Re: Visual title PowerBi javascript API

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors