cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tamir Member
Member

How to use custom visual "swDataTextBox"

Hi,

 

There is a new visual called "swDataTextBox".

 

I can use it to present formatted text, table etc. 

I find it very useful.

 

However, I need help to figure out how to combine the text with measures and system fields like logged user etc.

 

Regards,

Tamir

5 REPLIES 5
wildmight2017 Regular Visitor
Regular Visitor

Re: How to use custom visual "swDataTextBox"

Trying to figure out how to use the data tab to display updated numbers as well..

wildmight2017 Regular Visitor
Regular Visitor

Re: How to use custom visual "swDataTextBox"

I figured this out-  you need to stringify it to JASON - here's my working example:

 

In Data tab, I have filtered the following string:

 

var data =  [{"OrgLevel":"Corp"}];

 

Editer code:

var json = JSON.parse(JSON.stringify(data));
//var json = JSON.stringify(data);

params = {
org: json[0].OrgLevel 
};

 

It's making OrgLevel an object and displaying its value....

 

You can build on top of that! 

wildmight2017 Regular Visitor
Regular Visitor

Re: How to use custom visual "swDataTextBox"

Now if someone told me how to disable the watermark.

Tamir Member
Member

Re: How to use custom visual "swDataTextBox"

Did not understand the answer...

 

Which are the measure? columns/table reference?

 

 

Highlighted
wildmight2017 Regular Visitor
Regular Visitor

Re: How to use custom visual "swDataTextBox"

Not sure what's not clear - 

 

1st - you can drop a measure/column that you want to be able to reference dynamically in the visual

2nd step - change the code that they have pre-populated with your own (basically, you need to call your data variable in parameter) - I've given an example There's no table reference - only column that you drop into the visual.

 

Let me know which info you need. Thanks! 

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 360 members 3,380 guests
Please welcome our newest community members: