on ‎2018 Jun 27 5:59 PM
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.
Request clarification before answering.
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); };
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.