Monday, June 4, 2018

How to check obj value null or empty

Hi viewers,

How to check object key value is null or empty in javascript

function checkProperties(obj) {
    for (var key in obj) {
        if (obj[key] !== null && obj[key] != "") {
        alert("not Empty");
            return false;
    return true;

var obj = {
    x: "",
    y: "",
    z: 1

checkProperties(obj) //returns true


Tuesday, December 19, 2017

How to copy from local VM to remote path

scp filename username@hostname:remotepath

scp -r folderName username@serverAddress:~/

~/ -- Home directory path

How to remove the record for local cassandra value

Hi Viewers,

How to remove the cassandra  table record  for your local VM.

1) Go to Mpbaxteam ide
2) ssh username@VMIpaddress
3) vm Pwd
4) Go to virtuoranc/ cassandra /bin
5) ./cqlsh localhost -u cassandra -p virtuora
6) desc tables; [ desc --> description]
6) use virtuoranc;
7) select * from userpreferences;
8) select * from userpreferences where preferencekey = 'alarmNotification' and username = 'admin' and usertype = 'LOCAL';
9) delete from userpreferences where preferencekey = 'alarmNotification' and username = 'admin' and usertype = 'LOCAL';

Wednesday, June 22, 2016

ExtJS: How to convert long date value to mm/dd/yyyy H:i:s format


Please write the following code in your model file


    name: 'DateTme',
    type: 'date',
      return Ext.Date.format(new Date(v), 'm-d-Y H:i:s');

View File.js


Sunday, June 19, 2016

ExtJS: Grid filter the column value


User want to filter particular value in store

var store ='Your Store ID Name');
store.filter('age', 15);