Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

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

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

    • wildmight2017's avatar
      wildmight2017
      Advocate II

      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!