Welcome, Guest |
You have to register before you can post on our site.
|
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: 8,000
|
Inbuilt Capability of VC...
Forum: BDB - Platform
Last Post: shivani.jaipuria
12-27-2022, 05:23 AM
» Replies: 0
» Views: 1,173
|
Can dataset/cube refresh...
Forum: BDB - Platform
Last Post: shivani.jaipuria
12-27-2022, 05:08 AM
» Replies: 0
» Views: 1,210
|
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: 3,158
|
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: 3,214
|
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: 2,238
|
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: 2,216
|
Data Preparation operati...
Forum: BDB-Data Prep & ETL
Last Post: shivani.jaipuria
12-26-2022, 10:09 AM
» Replies: 0
» Views: 1,195
|
Plugability Feature of B...
Forum: BDB Platform Q & A
Last Post: shivani.jaipuria
12-26-2022, 08:32 AM
» Replies: 0
» Views: 1,074
|
How to use environment va...
Forum: BDB Platform Q & A
Last Post: archana
12-26-2022, 05:57 AM
» Replies: 0
» Views: 1,075
|
|
|
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.
|
|
|
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)) );
|
|
|
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;
|
|
|
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)) );
|
|
|
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);
|
|
|
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.
|
|
|
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.
|
|
|
|