Skip to main content

"Modeled" Entity - still getting used to 10.4

  • November 5, 2024
  • 3 replies
  • 0 views

Joanne DeTurk
Forum|alt.badge.img

We have certain entities that we use like templates - all the code we need is in the entity.

In the past, I could remove unused procs in the entity, once it was painted on the form.

I did that in 10.4.2 and ACK - I actually removed it from the ENTITY.  Not what I wanted to do.

What is the recommended approach for using entites that have code that you may wish to override?



------------------------------
Joanne DeTurk
Software Manager
Mirion Technologies (Canberra), Inc.
------------------------------

3 replies

Ingo Stiller
Forum|alt.badge.img+3
  • Participating Frequently
  • 317 replies
  • November 7, 2024

We have certain entities that we use like templates - all the code we need is in the entity.

In the past, I could remove unused procs in the entity, once it was painted on the form.

I did that in 10.4.2 and ACK - I actually removed it from the ENTITY.  Not what I wanted to do.

What is the recommended approach for using entites that have code that you may wish to override?



------------------------------
Joanne DeTurk
Software Manager
Mirion Technologies (Canberra), Inc.
------------------------------

Hi Joanne

Try this 

undeclare trigger aName


------------------------------
Ingo Stiller
Aareon Deutschland GmbH
------------------------------

Osman Shariff002
Forum|alt.badge.img
  • Participating Frequently
  • 117 replies
  • November 10, 2024

We have certain entities that we use like templates - all the code we need is in the entity.

In the past, I could remove unused procs in the entity, once it was painted on the form.

I did that in 10.4.2 and ACK - I actually removed it from the ENTITY.  Not what I wanted to do.

What is the recommended approach for using entites that have code that you may wish to override?



------------------------------
Joanne DeTurk
Software Manager
Mirion Technologies (Canberra), Inc.
------------------------------

I would say v10 works the same as the older versions in your case.  But the ide is a bit different.

What you may have done wrong is to double click on the trigger modules on the right hand side of the ide and modified it.   This will open the entity model and will allow you to change the model!

In v10, you do not see the model triggers in the component scripts.

The easy way to do what you want is to...

double click on  the model trigger you want different.

This will open the entity model tab

Copy it with ctrl-c

Close the model tab 

Go back to your component and paste the trigger code in the component entity.

Make your changes and all will be okay.



------------------------------
Osman Shariff
------------------------------

Joanne DeTurk
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • 12 replies
  • November 26, 2024

Hi Joanne

Try this 

undeclare trigger aName


------------------------------
Ingo Stiller
Aareon Deutschland GmbH
------------------------------

Thanks!  The undeclare is new to me.  I'll try that next time.



------------------------------
Joanne DeTurk
Software Manager
Mirion Technologies (Canberra), Inc.
------------------------------