Skip to Content

How to show dimension value in Text Component?

highest-performances.jpg

Hello,

I want to show the Dimension value in Text component directly from the data source, not from any crosstab or dropdown.

There is only 1 dimension value that I need to show in a Text component (refer attached screenshot).

e.g. Product name in Text component

Is it possible in Design Studio?

Is there any workaround for this scenario?

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 25, 2017 at 10:33 AM

    Hi,

    To get dimension value from Data source to Text Box,

    Please try this,

    TEXT_1.setText("Product Name: " + DS_1.getMembers("Select Your Dimension Column", 1).pop().text);

    Regards,

    Vidhya.C

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 25, 2017 at 11:19 AM

    var array = DS_1.getMembers("Dimension", 1);

    array.forEach(function(element, index) {

    TEXT_1.setText(element.text);

    });

    Add comment
    10|10000 characters needed characters exceeded