I'm in the process of converting my scripted launches to standard behavior launches using events and listeners.... One of the reasons I used scripted launches was to disable the ability for the user to close an app via the tab before they completed the work on the screen..... Is it possible to get that functionality in the behavior Launch option?
thx
D
Valence.util.App.launch({
app : getAppVar('commentsAppID'),
params : 'ParmAccount=' + rec.get('F1_OMACCOUNT') +
'&ParmOrder=' + getAppVar('aOrder')+
'&ParmSeq=' + rec.get('F1_OMSEQ') +
'&ParmLine=001&ParmFrom=Order Maintenance' +
'&ParmScreenMessage=Order Maintenance Exit',
closable : false
});
// this will wait for an event (commentsClosed) to be fired
//
Valence.util.Helper.addEventListener('comments_Clo sed',function(){
Valence.util.App.close(getAppVar('OrderAppID'));
});
success();
thx
D
Valence.util.App.launch({
app : getAppVar('commentsAppID'),
params : 'ParmAccount=' + rec.get('F1_OMACCOUNT') +
'&ParmOrder=' + getAppVar('aOrder')+
'&ParmSeq=' + rec.get('F1_OMSEQ') +
'&ParmLine=001&ParmFrom=Order Maintenance' +
'&ParmScreenMessage=Order Maintenance Exit',
closable : false
});
// this will wait for an event (commentsClosed) to be fired
//
Valence.util.Helper.addEventListener('comments_Clo sed',function(){
Valence.util.App.close(getAppVar('OrderAppID'));
});
success();
Comment