Skip to Content

Show image on the dasboard based on record selection in crosstab

Dear Experts,

I have a requirement to show the customer logo in the dashboard, based on the customer name selection in the crosstab.

What I am currently doing is add two image icons, 1 with the customer logo and the second is blank.

I have written an if-else condition for record selection but not sure how to show/hide the customer logo based on the if-else condition.

I couldn't find any function/script to proceed further.

Any suggestions.

Regards

Sumit Dubey

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 01, 2017 at 11:37 AM

    You may have to go the extension/SDK route

    See this thread for discussion: https://archive.sap.com/discussions/thread/3617612

    Unfortunately Karol's document was not migrated - if his extension is still available you can go to https://github.com/org-scn-design-studio-community

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 02, 2017 at 05:13 AM

    Hi Sumit,

    If you have large amount of images, it will create few problem. But if you are ok with it, you can rename the images with the row selection text you get and using that you can change the image url without using if/else condition.

    Thanks,

    Nithyanandam

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02, 2017 at 06:36 AM

    Hi Sumit,

    It is bit complex to handle it in design studio, but you can have it your data source.

    You can have the image URLs as an attribute to the object and use the below code to get it in crosstab selection.

    Var logo = CROSSTAB_1.getSelectedMember("Dimension").getAttributeMember("URL");

    Image_Logo.setImage(logo);

    This way you can get it easily in your dashboard using image component.

    Thanks,

    Poovarasan

    Add comment
    10|10000 characters needed characters exceeded