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

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 45,713
» Latest member: KashaNoble
» 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: 686
Inbuilt Capability of VC...
Forum: BDB - Platform
Last Post: shivani.jaipuria
12-27-2022, 05:23 AM
» Replies: 0
» Views: 471
Can dataset/cube refresh...
Forum: BDB - Platform
Last Post: shivani.jaipuria
12-27-2022, 05:08 AM
» Replies: 0
» Views: 431
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: 585
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: 605
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: 556
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: 532
Data Preparation operati...
Forum: BDB-Data Prep & ETL
Last Post: shivani.jaipuria
12-26-2022, 10:09 AM
» Replies: 0
» Views: 449
Plugability Feature of B...
Forum: BDB Platform Q & A
Last Post: shivani.jaipuria
12-26-2022, 08:32 AM
» Replies: 0
» Views: 442
How to use environment va...
Forum: BDB Platform Q & A
Last Post: archana
12-26-2022, 05:57 AM
» Replies: 0
» Views: 448

 
  What is API client Registration?
Posted by: sariga.vr@bdb.ai - 12-26-2022, 05:06 AM - Forum: BDB Platform Q & A - No Replies

This is a process which is performed when we have to use data as an API or Model as an API.
This option is available in Admin module. 

Here we have two types
                   Internal : Where we can use it within our platform.
                                   Where authentication is provided within the platform. 
                                   Client id , secret key is provided by the platform 
                  External : When some external client requires to use it according his requirement where he will be having his own native connectors through which he will be able use it.
                                     Where authentication is done by the user’s side.

Print this item

  Multiple components export in png using script
Posted by: archana - 12-26-2022, 05:05 AM - Forum: BDB Designer Q & A - No Replies

sdk.getWidget( 'compname').setCustomExport(['column1','label5']);

sdk.getWidget( 'img2').setCustomExport(['column1','label5']);

Print this item

  Exporting whole data grids in pdf as a table format
Posted by: jeevitha - 12-26-2022, 05:04 AM - Forum: BDB Designer Q & A - No Replies

var comp = sdk.getWidget( 'datagrid5' );
comp.m_exporttopdfgrid.exportastable = true; 
comp.m_exporttopdfgrid.theme = "striped"; 
comp.m_exporttopdfgrid.orientation = "l"; 

Print this item

  Script to get previous month start and end date
Posted by: abhishek_acharya - 12-26-2022, 04:54 AM - Forum: BDB Designer Q & A - No Replies

We will get date in yyyy-mm-dd format 
Indexing starts from zero for month

var date = new Date();
var curr_month  = date.getMonth();
var currentYear = date.getFullYear();

function padTo2Digits(num) {return num.toString().padStart(2, '0');}
function cur_month(date) {
  return [
    date.getFullYear(),
    padTo2Digits(date.getMonth() + 1),
    padTo2Digits(date.getDate()),
  ].join('-');
}

if (curr_month==0)
{var pre_month1 = 11;
var currentYear1 = currentYear-1;}
else {var pre_month1 =curr_month-1 ;
var currentYear1 = currentYear;}

var premonth_start = cur_month(new Date(currentYear1, pre_month1, 1)) );
var premonth_end = cur_month(new Date(currentYear1, pre_month1 + 1, 0))  );

Print this item

  How to do padding in title or description using script
Posted by: jeevitha - 12-26-2022, 04:51 AM - Forum: BDB Designer Q & A - No Replies

<span style = "color:#5adf14;font-size:15px;"> Title</span>
var a = sdk.getWidget( 'timeline4' );
a.m_enablehtmlformate.subtitle = true;
a.m_enablehtmlformate.title = true;
a.m_enablehtmlformate.xaxis = true;
a.m_enablehtmlformate.yaxis = true;
a.m_enablehtmlformate.secondaryaxis = true;

Print this item

  Script to get current month start and end date
Posted by: abhishek_acharya - 12-26-2022, 04:47 AM - Forum: BDB Designer Q & A - No Replies

We will get date in yyyy-mm-dd format

var date = new Date();
var curr_month  = date.getMonth();
var currentYear = date.getFullYear();

function padTo2Digits(num) {return num.toString().padStart(2, '0');}
function cur_month(date) {
  return [
    date.getFullYear(),
    padTo2Digits(date.getMonth() + 1),
    padTo2Digits(date.getDate()),
  ].join('-');
}
var curmonth_start = cur_month(new Date(currentYear, curr_month, 1)) );
var curmonth_end = cur_month(new Date(currentYear, curr_month + 1, 0))  );

Print this item

  How to Pass one chart category to other chart title
Posted by: jeevitha - 12-26-2022, 04:46 AM - Forum: BDB Designer Q & A - No Replies

first chart - connection
sdk.updateGlobalVariable('label10',{'Value':changedItem.attributes.data[0].metric },false);

first chart - component
sdk.updateGlobalVariable('label10',{'Value':changedItem.attributes.drillComponent.m_repeaterfieldvalue },false);

Print this item

  How to create a text box with some placeholder which disappears on click?
Posted by: sariga.vr@bdb.ai - 12-26-2022, 04:46 AM - Forum: BDB Designer Q & A - No Replies

 <style>input:focus {outline:none;}::placeholder {color: #6a6b70;}</style><input id="Target_filter_search01" autocomplete="off" placeholder="Enter the text that should be printed as placeholder here....." style = "width: 100%; height : 100%; padding :0px 0px 0px 10px; color : #6a6b70; border : 0px; border-radius: 4px; background : #f2f0f0;"/> <style> input:focus { outline:none; } </style> <script> //debugger; var inp = document.getElementById("Target_filter_search01"); inp.addEventListener("keyup", function(event) { if (event.keyCode === 13) { //alert('l'); var a = $('#Target_filter_search01').val(); </script>

          Using this code we can create a textbox with placeholder. 

Print this item

  How to get current week start and end date from dashboard
Posted by: abhishek_acharya - 12-26-2022, 04:44 AM - Forum: BDB Designer Q & A - No Replies

var date = new Date();
var currentWeekDay = date.getDay();
var lessDays = currentWeekDay == 0 ? 6 : currentWeekDay-1;

var weekkStart = new Date(new Date(date).setDate(date.getDate()- lessDays));
var weekkEnd = new Date(new Date(wkStart).setDate(wkStart.getDate()+6));

Print this item

  How to use auto update gv and notify gv using scripts?
Posted by: sariga.vr@bdb.ai - 12-26-2022, 04:42 AM - Forum: BDB Designer Q & A - No Replies

This can be done using


sdk.updateGlobalVariable( 'ComponentID',
{'Key': 'Values'},Notify_true_OR_false );

          Here {'Key': 'Values'}àThis part performs the function of update GV
                   Notify_true_OR_false )àThis performs the function of notify GV

Here if we give true then it executes the script written in that particular component(notify true should be enabled only in components)

Note : We cannot use this code in connection of any component with notify as true.

Print this item