Skip to Content
avatar image
Former Member

Can i use RAPIDPROTOTYPE for generate button automatically? There are alternatives?

I would like create 4 buttons basing on a BW query with hierarchy like that:

  • 1) element_1
  • 2) element_2
  • 3)_element Other
  • 3a) El_o_1
  • 3b) El_o_2
  • 4) Element_3
  • 5) Not assigned

I tried to use the followind code:

var buttonhtml = "<button type='button'>Click Me!</button> ";

var html ="";

var dim = BRAND.getDimensions();

var rows = DATAITERATOR_1.getRows(0,10); 

rows.forEach(function(element, index) {  

var dimText = element.getDimensionValueText(element.key);  

html= html + buttonhtml;});


inspired by:

IWhen i run the app nothing appears.

Maybe i have to configure the RAPIDPROTOTYPE in a particulal way?

It si the right workaorund for generating buttons dinamically?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 30, 2016 at 05:19 AM


    It is very straight forward. When you try to run, did you checked the developer tool console to make sure that there are no error in console.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 30, 2016 at 09:11 AM

    Hi this is the dashboard, no error log.

    but in "script problems":

    I have only error related to others app

    This is what i see when i run it:

    And the script in GLOBAL script area:


    Add comment
    10|10000 characters needed characters exceeded