Skip to main content

ATW-script. What would be the value of NTF-ATW-EVENT

  • December 13, 2021
  • 6 replies
  • 0 views

Riaan Pretorius

New atw-script control for use with AcuToWeb
ECN-4662 New atw-script control for use with AcuToWeb (microfocus.com)

	EVALUATE EVENT-TYPE
           WHEN NTF-ATW-EVENT
             EVALUATE event-data-1
               WHEN 1
                     modify js1 CALL("googleMaps")

NTF-ATW-EVENT is obviously a level 88 variable. What is its value?

#NTF-ATW-EVENT

6 replies

Claudio Contardi
Forum|alt.badge.img+2

New atw-script control for use with AcuToWeb
ECN-4662 New atw-script control for use with AcuToWeb (microfocus.com)

	EVALUATE EVENT-TYPE
           WHEN NTF-ATW-EVENT
             EVALUATE event-data-1
               WHEN 1
                     modify js1 CALL("googleMaps")

NTF-ATW-EVENT is obviously a level 88 variable. What is its value?

#NTF-ATW-EVENT

Good afternoon, Riaan Pretorius

NTF-ATW-EVENT is defined in the 10.4.x new version of acugui.def, as the following:

78  NTF-ATW-EVENT                       VALUE 4110.


Riaan Pretorius
  • Author
  • New Participant
  • December 13, 2021

New atw-script control for use with AcuToWeb
ECN-4662 New atw-script control for use with AcuToWeb (microfocus.com)

	EVALUATE EVENT-TYPE
           WHEN NTF-ATW-EVENT
             EVALUATE event-data-1
               WHEN 1
                     modify js1 CALL("googleMaps")

NTF-ATW-EVENT is obviously a level 88 variable. What is its value?

#NTF-ATW-EVENT

thank you. but now next question. where should that evaluate statement be? After Accept screen? Last action was an ATW script for uploading files. At the moment it is after the accept statement, but the value for EVENT-TYPE is 4. 


Claudio Contardi
Forum|alt.badge.img+2

thank you. but now next question. where should that evaluate statement be? After Accept screen? Last action was an ATW script for uploading files. At the moment it is after the accept statement, but the value for EVENT-TYPE is 4. 

The sample that I have uses this code:

      * Screen1
       Acu-Screen1-Evaluate-Func.
           EVALUATE TRUE
              WHEN Exit-Pushed
                 PERFORM Acu-Screen1-Exit
              WHEN Event-Occurred
                 IF Event-Type = Cmd-Close
                    PERFORM Acu-Screen1-Exit
                 END-IF
                 IF Event-Type = NTF-ATW-EVENT
                    PERFORM atwScript-event
                 END-IF
              WHEN Key-Status = ....
              ...
           END-EVALUATE


Riaan Pretorius
  • Author
  • New Participant
  • December 13, 2021

The sample that I have uses this code:

      * Screen1
       Acu-Screen1-Evaluate-Func.
           EVALUATE TRUE
              WHEN Exit-Pushed
                 PERFORM Acu-Screen1-Exit
              WHEN Event-Occurred
                 IF Event-Type = Cmd-Close
                    PERFORM Acu-Screen1-Exit
                 END-IF
                 IF Event-Type = NTF-ATW-EVENT
                    PERFORM atwScript-event
                 END-IF
              WHEN Key-Status = ....
              ...
           END-EVALUATE

Thank you
Would it be possible to forward the complete sample? Or the compiled listing for the sample. 


Claudio Contardi
Forum|alt.badge.img+2

Thank you
Would it be possible to forward the complete sample? Or the compiled listing for the sample. 

Please, find the listing here.

If you still have troubles, of further questions, I suggest you to create a new Case on the Support portal.


Riaan Pretorius
  • Author
  • New Participant
  • December 14, 2021

Please, find the listing here.

If you still have troubles, of further questions, I suggest you to create a new Case on the Support portal.

Would it be possible to supply the source code as well?