cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Design Studio - Problem with Mock Up Rendering -

0 Likes
511

first of all, sorry my English, im from Chile.

i need to change the colour of data on a Crosstab based on their value... for example, if number < 0 then red, if number > 0 then green.

I have instaled the "Rapid MockUP" from the "Scn Community Basics" Extension and with java scrip develop the "right" script.

When starting the Aplication, the Console of Google Chrome show a red mesage like this:

[web.do] Render must not be called within Before or After Rendering Phase. Call ignored. - [object Object]

and the table load normal, without color... but when scrolling down, after the 50 row, the render seems to load to get new data, and the Table get coloured.

i need to get to colour the table from the start without scrolling 50 rows after works.

Attached you will find the Rapid Mock Up Java script.

Thanks a lot.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

sorry, can't attach a .txt file 😞

but its something like this:

var funcion_xtab_restoreFocusOnCell = sap.zen.crosstab.Crosstab.prototype.restoreFocusOnCell; sap.zen.crosstab.Crosstab.prototype.restoreFocusOnCell = function(){ $('#'+this.getId()+' .sapzencrosstab-DataCellContentDiv:contains("-")').addClass('numNegativo'); var cols = $('#'+this.getId()+'_table [id$=_textContentDiv]'); for(var i=0; i <cols.length; i++ ){ cols.eq(i).prop('title', cols.eq(i).html().replace(new RegExp(' ', 'g'), ' ')); } var cols = $('#'+this.getId()+'_table [id$=_contentDiv]'); for(var i=0; i <cols.length; i++ ){ cols.eq(i).prop('title', cols.eq(i).html().replace(new RegExp(' ', 'g'), ' ')); } if(this.getId() == 'CROSSTAB_CODIRED') { coloreaRefMax(); } if(this.getId() == 'CROSSTAB_CLASIFICACION') { pintaEvoClasif(); } //console.log(this); };