Langsung ke konten utama

Call Back Ext JS (hide,show)

Cara hide,show,set value ExtJs Call Back

Get ID Componen Callback and hide

[java]

if(docflow_seq==5) {
Ext.getCmp('button-1031').hide();
}

Ext.getCmp('buttonsavedetailsform').hide();
try{
_COM_btnprint.setDisabled(false);
}catch(e){}

[/java]



Get ID Componen Callback and hide (graylite)

[java]

_COM_flowhistory.show().setDisabled(false);

if(doc_term==0) {
_COM_doc_cashpaid.setValue(1);
}else{
_COM_doc_cashpaid.setValue(0);
}

if (docflow_seq==10) {
_COM_btncop.show().setDisabled(false);

} else {
_COM_btncop.show().setDisabled(false);

if (docflow_seq<10) { _COM_rejournal.show().setDisabled(true); }

}

if(!window.openlink){
window.openlink = function(promoid){
OPENLINK('http://'+window.location.host+'/web/application/index.php/details/index?code=Form.Sales.Promotion&mode=open&doc_id='+promoid,1,'Sales Promotion')
}
}
[/java]

inline if in JavaScript
condition==1 ? true : false

[java]
/*---- One Condition ----*/
trans_pack==1? item_sellprice : item_sellpack

/*---- Multi Condition ----*/
(trans_pack>0)?trans_pack*item_subqty:trans_qty2*1 || trans_qty

trans_bonus==1?0:(trans_price!=0 && trans_price2==0)?trans_price:((trans_qty==0)?0:(trans_price2 >0)? trans_price2:(trans_pack==0)?item_sellprice: item_sellpack)

/*---- in Grid ----*/
if(_ROWS.get('trans_qty2')!=trans_qty){
_ROWS.set('trans_qty2', trans_qty);
}


[/java]

Komentar

  1. It's truly very complicated in this busy life to listen news on Television, therefore I
    only use world wide web for that purpose, and get the hottest information.

    BalasHapus

Posting Komentar

Postingan populer dari blog ini

sys.processes Status sp_who2 SQL Server

Taken from the books online reference for sys.processes  and the status column. dormant = SQL Server is resetting the session. running = The session is running one or more batches. When Multiple Active Result Sets (MARS) is enabled, a session can run multiple batches. For more information, see Using Multiple Active Result Sets (MARS). background = The session is running a background task, such as deadlock detection. rollback = The session has a transaction rollback in process. pending = The session is waiting for a worker thread to become available. runnable = The task in the session is in the runnable queue of a scheduler while waiting to get a time quantum. spinloop = The task in the session is waiting for a spinlock to become free. suspended = The session is waiting for an event, such as I/O, to complete.