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
/*---- 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);
}
browser button
document.getElementById(_COM_Green.getId()).style.background='green';
document.getElementById(_COM_Group.getId()).style.height='60px';
document.getElementById('Group-inputEl').style.fontSize='20px';
Link Open Form
<a href='javascript:OPENLINK(window.location.origin + window.location.pathname + "?code=Form.Name&mode=open&doc_id="+primary_key, true, "Caption Form")'>Link Caption</a>
Custom Text Input
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
/*---- 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);
}
browser button
document.getElementById(_COM_Green.getId()).style.background='green';
document.getElementById(_COM_Group.getId()).style.height='60px';
document.getElementById('Group-inputEl').style.fontSize='20px';
Link Open Form
<a href='javascript:OPENLINK(window.location.origin + window.location.pathname + "?code=Form.Name&mode=open&doc_id="+primary_key, true, "Caption Form")'>Link Caption</a>
Custom Text Input
document.getElementById('doc_no-inputEl').style.background='Fuchsia';color ref: https://www.rapidtables.com/web/color/html-color-codes.html
It's truly very complicated in this busy life to listen news on Television, therefore I
BalasHapusonly use world wide web for that purpose, and get the hottest information.