• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Scripting/Listeners

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scripting/Listeners

    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();

  • #2
    This happens to be on the list for the next update...should be available soon.

    Screen Shot 2021-09-30 at 4.23.56 PM.png

    Comment


    • #3
      kewl.... thanx

      Comment

      Working...
      X