Thursday 22 December 2011

HOW TO HIDE AND UN HIDE FILES IN UBUNTU ?

 You can hide un hide any  Files or folders  using    "."  in ubuntu .
           Example:
                   File or Folder named like ' test '. You rename test as .test  and the file or folder
                   automatically  hide.
 If you want see the hidden files and folder means use 'ctrl+H'.It shows all Invisible files. 

 You need show the hidden files permanently  just remove "." infront of file or folder.



           
   

Sunday 18 December 2011

Delete All .txt files in all subdirectories in ubuntu?

To use of Following command line You can delete all files named like .txt

    find /folder -type f -name "*.txt" -delete 




         Use of this command line you can  delete all file in sub directories named like ".txt". You can delete any  files by just by replacing file extension and put that your extension into your command line.
         "folder -type f" is the path where the folder is located




Wednesday 14 December 2011

HOW CAN YOU GET LABEL FIELD OF ITEMSELECTOR BOX IN EXTJS?

Use of text() method you can get that exact label value in itemselector

    "  $('#id of that field').text() "



HOW CAN YOU GET LABEL FIELD OF COMBO BOX IN EXTJS?

Use of getRawValue() method you can get label field of  combo box in ExtJs.

Example :
    You have one combo field like
    var otStore = new Ext.data.ArrayStore({
             data : [[' 1','OT1'],[' 2','OT 2'],['3','MINOR OT'],['4','OPTHAL OT']],
fields: ['id','displayValue'],
sortInfo: {
field: 'displayValue',
direction: 'ASC'
}
    });

     otStore is one static Store loaded into combo field      

               items : [{
                       xtype : 'combo',
id:'ot',
store: otStore,
valueField:'value',
displayField:'label',
mode: 'local',
triggerAction : 'all',      
selectOnFocus:  true,
editable      : true,
forceSelection: true,
fieldLabel : 'Parent Menu',              
                 
}]
}]

Now you can get label field("OT,MINOR OT") by use of

      "  $('$ot').getRawValue(); "

now youu can get all values like OT,MINOR OT and etc.

Monday 5 December 2011

Running FireFox inside of FireFox

 To Put Below comment in address bar of Firefox you will get inherited firebox


                "chrome://browser/content/browser.xul"


  you will get firefox window like that ....

Sunday 4 December 2011

Query Of Multiple columns in Ext-js store


You can Query Multiple Columns instant of using one column

store.queryBy(function(record,id){
     return (record.get('oneField') == someValue && record.get('secondField') == otherValue);
});

and also you can add number of variables using '&&' or '||' conditions

Example:
eventStore.queryBy(function(record,id){
          return (record.get('StartDate') >= (new Date()).clearTime().add(Date.HOUR,3) && record.get('EndDate') <= (new Date()).clearTime().add(Date.HOUR,10));
});