Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 56,081
» Latest member: WhitneyFea
» Forum threads: 389
» Forum posts: 395

Full Statistics

Latest Threads
What is the maximum numbe...
Forum: BDB Designer Q & A
Last Post: sariga.vr@bdb.ai
12-28-2022, 07:59 AM
» Replies: 0
» Views: 787
Inbuilt Capability of VC...
Forum: BDB - Platform
Last Post: shivani.jaipuria
12-27-2022, 05:23 AM
» Replies: 0
» Views: 562
Can dataset/cube refresh...
Forum: BDB - Platform
Last Post: shivani.jaipuria
12-27-2022, 05:08 AM
» Replies: 0
» Views: 528
How to load business stor...
Forum: BDB Designer Q & A
Last Post: sariga.vr@bdb.ai
12-26-2022, 04:47 PM
» Replies: 0
» Views: 686
How to load business stor...
Forum: BDB Designer Q & A
Last Post: sariga.vr@bdb.ai
12-26-2022, 04:46 PM
» Replies: 0
» Views: 696
How to load business stor...
Forum: BDB Designer Q & A
Last Post: sariga.vr@bdb.ai
12-26-2022, 04:45 PM
» Replies: 0
» Views: 651
How to load business stor...
Forum: BDB Designer Q & A
Last Post: sariga.vr@bdb.ai
12-26-2022, 04:44 PM
» Replies: 0
» Views: 633
Data Preparation operati...
Forum: BDB-Data Prep & ETL
Last Post: shivani.jaipuria
12-26-2022, 10:09 AM
» Replies: 0
» Views: 544
Plugability Feature of B...
Forum: BDB Platform Q & A
Last Post: shivani.jaipuria
12-26-2022, 08:32 AM
» Replies: 0
» Views: 535
How to use environment va...
Forum: BDB Platform Q & A
Last Post: archana
12-26-2022, 05:57 AM
» Replies: 0
» Views: 552

 
  Script to control markers in the axis
Posted by: Sruthi P - 12-22-2022, 06:07 AM - Forum: BDB Designer Q & A - No Replies

write the script in respective chart connection


var a=sdk.getWidget('timeline1'); 
a.m_noofmarkers = 6;

Print this item

  Data label script
Posted by: neeraja.pattathil@bdb.ai - 12-22-2022, 05:57 AM - Forum: BDB Designer Q & A - No Replies

What script can be used to show the data label when the "apply Auto Manipulator" script is used?


// in dashboard


//---------json for CS by Nmsc
DataSet.prototype.updateAutoJson = function (json) {
if( this.m_id ==  'ComponentID1'){
switch(json.Name){
case "MM5":
json.Color='#673AB7';
json.ChartType = "line";
json.PlotType = "point";
json.PlotRadius = "4";

break;
default:
json.ChartType = "column";
json.PlotType = "point";
json.PlotRadius = "4";
json.DataLabelCustomProperties = {



"useFieldColor" : "false",
"showDataLabel": "true",
"dataLabelTextAlign" : "center",
"dataLabelFontColor" : "#c2c2d9",
"dataLabelRotation" : "0",
"dataLabelFontSize" : "10",
"datalabelFontStyle" : "normal",
"datalabelFontWeight" : "normal",
"datalabelFontFamily" : "'Raleway', sans-serif",
"datalabelField" : json.Name,
"datalabelPosition" : "Top",
"dataLabelUseComponentFormater": true,
"datalabelFormaterUnit":"none",
"datalabelFormaterPrecision":"default",
"datalabelFormaterCurrency":"none",
"datalabelFormaterPosition":"suffix"
};
}
}
return json;
};

Print this item

  Datalabel script for applyAutoManipulator
Posted by: neeraja.pattathil@bdb.ai - 12-22-2022, 05:56 AM - Forum: BDB Designer Q & A - No Replies

What script can be used to show the data label when the applyAutoManipulator script is used?

Print this item

  What is Report Burst in dashboard properties?
Posted by: abhishek_acharya - 12-22-2022, 05:55 AM - Forum: BDB Designer Q & A - No Replies

Report Burst 

The Report Burst operation allows the user to share the open document link of a Dashboard to another
user(s). The feature appears under the Properties option provided for a story created or shared under
the ‘Public Documents’ space.
This feature helps to notify the selected users or user groups with the open link and PDF report of the
selected dashboard.

  • Open the Dashboard Properties for a selected dashboard.
  • The Report Burst option comes enabled by default. 

Print this item

  Script to give border for any Label
Posted by: abhishek_acharya - 12-22-2022, 05:51 AM - Forum: BDB Designer Q & A - No Replies

This can be given in connection or in any component...

var e = sdk.getDivIdFromComponetId( 'label name');                                                                              
sdk.applyStyle('#'+e,'border','3px solid #000000');


If u want to give border only right side then use this script

var c = sdk.getDivIdFromComponetId( 'label name');                                                                              
sdk.applyStyle('#'+c,'border-right','2px solid #282830');

Print this item

  Border Radius using script
Posted by: rubeena.hajira - 12-22-2022, 05:45 AM - Forum: BDB Designer Q & A - No Replies

Script to set border-radius manually for the box component:
*Below script sets border radius for top left & top right.
*This script is to be written on the component script.

sdk.setAfterRenderCallBack( 'box454',function() {
var a =  "draggableDiv" + sdk.getWidget( 'box454' ).m_objectid;
sdk.applyStyle('#'+a,{"border-top-left-radius": "20px"});
sdk.applyStyle('#'+a,{"border-bottom-left-radius": "20px"});
});

Print this item

  Script to change the subtitle and axis description of any component
Posted by: abhishek_acharya - 12-22-2022, 05:43 AM - Forum: BDB Designer Q & A - No Replies

This can be given in connection or in any component..

For Subtitle description 
sdk.getWidget( 'component name' ).m_subTitle.m_description='Subtitle..';

For axis description
sdk.getWidget( 'component name' ).m_xAxis.m_description='axis name';

Print this item

  Padding Script for component
Posted by: neeraja.pattathil@bdb.ai - 12-22-2022, 05:37 AM - Forum: BDB Designer Q & A - No Replies

How to adjust the padding for the components using the script?


//script in dashboard 

var arr = ['ComponentID1'];
for(var i=0;i<arr.length;i++){
var comp=sdk.getWidget( arr[i] );
comp.m_chartpaddings.leftBorderToDescription = 2;
comp.m_chartpaddings.leftDescriptionToMarkers = 2;
comp.m_chartpaddings.leftMarkersToLine = 2;
comp.m_chartpaddings.bottomBorderToDescription = 10;
comp.m_chartpaddings.bottomDescriptionToMarkers = 10;
comp.m_chartpaddings.bottomMarkersToLine = 5;
comp.m_chartpaddings.rightDescriptionToMarkers = 2;
comp.m_chartpaddings.rightMarkersToLine = 2;
comp.m_chartpaddings.rightBorderToLegend = 15;
comp.m_chartpaddings.topTitleToSubtitle = 10;
comp.m_chartpaddings.topSubtitleToChart = 15;
comp.m_chartpaddings.chartToBorder = 10;

}

Print this item

  Script for the Freeze Header
Posted by: rubeena.hajira - 12-22-2022, 05:29 AM - Forum: BDB Designer Q & A - No Replies

Script for the Freeze Header?

*Below Script to be written on the Dashboard script as it is:

sdk.freezeHeader = function (grpName) {    var headerArr = $(".g_" + grpName); 
   //  group-name which needs to be fixed   
   var headerArrCompOffset = {};    
   var dashOffset = $(".draggablesParentDiv").offset(); 
   var maxZIndex = sdk.dashboard.m_widgetsArray.length;
   for (var i = 0; i < headerArr.length; i++) {        var compOffset = $(headerArr[i]).position();    
   /** make the hidden elements visible, get the position and hide again **/     
if ($(headerArr[i])[0] && $(headerArr[i])[0].style.display == "none") {            $(headerArr[i])[0].style.display = "block";  
   compOffset = $(headerArr[i]).position();            $(headerArr[i])[0].style.display = "none";        }     
var leftPos = compOffset.left * 1 + dashOffset.left * 1;   
headerArrCompOffset[headerArr[i].id] = compOffset.left * 1;       
sdk.applyStyles(headerArr[i], {            "position": "fixed",            "left": leftPos + "px",            "z-index": maxZIndex        });    }
$(document).scroll( function(scroll){        var dashOffset = $(".draggablesParentDiv").offset();   
for (var i = 0; i < headerArr.length; i++) {                var leftPos = headerArrCompOffset[headerArr[i].id] + dashOffset.left * 1 - $(window).scrollLeft();  
$(headerArr[i]).css('left',  leftPos);        };    });        
   $( window ).resize(function() {        var dashOffset = $(".draggablesParentDiv").offset();    
for (var i = 0; i < headerArr.length; i++) {                var leftPos = headerArrCompOffset[headerArr[i].id] + dashOffset.left * 1 - $(window).scrollLeft();            
$(headerArr[i]).css('left',  leftPos);        };    });    
};

*This Script should be written in the script of the First loading connection in the Dashboard.
*Should create a group of components that should be frozen and then that group name should be added in a script as written below(group name:fc):

sdk.freezeHeader('fc');

Print this item

  Script to control markers in the axis
Posted by: Sruthi P - 12-21-2022, 05:22 PM - Forum: BDB - Designer - No Replies

write the script in respective chart connection


var a=sdk.getWidget('timeline1'); 
a.m_noofmarkers = 6;

Print this item