Issue 31835  —   Duplicate "trigger" statements cause compilation errors after migration

Status:   Planned for resolution in 10.4.01

Solution available in patch(es):      10.3.01.002

Description:

 Summary:
 Uniface 10.3 Migration issue
 Duplicate "trigger" statements cause compilation errors after migration

  Environment:
  +Uniface Version      : 10.3.01
  +Operating System     : OS independent
  +Database             : DBMS independent

 Reproduction:
 ------------

 1) Create DSP in Uniface 9.7 with two (button) fields: BTN and BTN_JS.
    Two fields:
    A commandbutton  BTN with the following proccode in the DETAIL trigger:
     trigger
     public web
       webmessage "Button clicked"

   A commandbutton BTN_JS with the following proccode in the DETAIL trigger:
   webtrigger
     javascript
       alert('Button Detail trigger');
     endjavascript
   end

 2) Export this DSP

 3) Import this DSP to Uniface 10.3.01 by importing this export

   Result
    Commandbutton  BTN
    trigger detail

 trigger   public web     webmessage "Button clicked"

   Commandbutton BTN_JS
   trigger detail  webtrigger

 javascript

       alert('Button Detail trigger');    endjavascript
 end

 4) Compile the DSP

 Actual result
 ------------------------
 Compilation errors

 Expected result:
 -----------------------
 Compilation successful

Workaround:

 none

Notes: