cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Download: Add Currency
Introduction
In this post we will show how to add new currency symbols using our plugin system.
The new currencies will be available for all the dashboards, new and old ones.
Example
Steps

STEP 1 - DOWNLOAD AND EXTRACT THE FOLDER IN THE PLUGINS FOLDER:

C:\Program Files\Sisense\PrismWeb\plugins\AddCurrency,  if the "plugins" folder is not there, please create it. If you are using version 7.2 and higher unzip the contents into your C:\Program Files\Sisense\app\plugins\ folder. 
 

STEP 2 - CLEAR THE CACHE AND REFRESH SISENSE ENVIRONMENT .

 
Code:
main.directive('uxCmbxItems', function($scope){

        var currencySymbols = ["A","B","C"]; // list of new currency symbols to be added
        
        return{
            
            restrict: 'C',
            scope:{

            },
            
            link: function (scope, element, attrs) {
            
                for(var i=0; i < currencySymbols.length; i++) {
                    if(scope.$parent.items.indexOf(currencySymbols[i]) == -1){
                        scope.$parent.items.push(currencySymbols[i]);
                    }
                }        
            }
        }
    
 
The "currencySymbols" is the array that contains the new currency symbols, just fill it up with your desired currency symbols as strings (you can also use the unicode standard codes):
["x","y","\u20AA","₹","♥" ]
and make sure to save the .js file in Unicode format.
Rate this article:
Version history
Last update:
‎03-02-2023 09:16 AM
Updated by:
Contributors