Skip to main content
Roger Wallin
Participating Frequently
Apr 22, 2026 1:48 PM UTC
Question

Migrating overwritten entity read-trigger

Hi
Now I’m on thin ice.
I have a Uniface9 service (self-contained) that has changed an entity's read trigger, i.e. what is in the data model's read trigger is overwritten in the form.
When exporting and importing to Uniface 10.04.3_038, that what is in the entity's read trigger is still used. Is this correct?

Does it have something to do with this?
; Migration Logical: Specify whether precompiler directives are generated to prevent 
; triggers and entries from being inherited in selected cases. 
    ; 0 = do not generate 
    ; 1 = generate precompiler directives (default)
MIGRATION_SCRIPT_V9_INHERITANCE = 1

Regards RogerW

14 replies

OsmanShariff
Participating Frequently
Apr 27, 2026 7:52 AM UTC

In v10, the component editor does not show what is in the entity trigger.  You need to double click to open up the entity model.

I seem to remember in v9, you see the component code and if it is empty you see the entity model code (with a different icon)

If the component does not have any code it will be blank.  The run time will still use the code in the model at entity level.

Roger Wallin
Participating Frequently
Apr 27, 2026 8:52 AM UTC

So, now as the export-importworked ok, the above upper exemple is like this:
 

 

Someone has changed the read-trigger to get rid of the default behavior. Notice that no Delete or Write-trigger is there. Delete and Write are probably executde as in the Default entity triggers.

Here another example where the Read, Write and Delete-triggers have been modified in the component:
 

 

OsmanShariff
Participating Frequently
Apr 27, 2026 10:53 AM UTC

At this point I would check uxgroup in version 9 uniface for any trigger code in the component in question.

And do the same in v10, to check what is in the field ucomment

 

You can do this either using sql, or just do an xml export of the component.

 

 

Roger Wallin
Participating Frequently
Apr 27, 2026 11:44 AM UTC

Ok, but I used the last correct export to import into the same source-database. It’s ok now. I could of course investigate the export files, but what do I get from that. I don’t think I get some compensation from Rocket, although I can prove a deficient export 😉.