on wish: #includeinherited and #includedefault

Author: ulrichmerkel@web.de (ulrich-merkel)

see: uniface.communityzero.com/content/lists

Short Description

#includeinherited and #includedefault

Description

These precompiler directives allow additional coding without breaking inheritence.

#IncludeInherited
adds the inherited sourcecode (model,template) for this trigger and object (entity, field, form)

#IncludeDefault
adds the current default sourcecode for this trigger and object (entity, field, form)

To ease overwriting of entries, the compiler should IGNORE multiple entry definitions and just take the first one. 

Use case (please read what is requested here!)

#includeinherited:
I just want to extend/overwrite a modeled entry, but want to keep inheriting all other entries.

#includedefault:
Allows a FLEXIBLE reference to the defaults; and a chance to supersede replace modeled entries with the default set.

 

Importance

adding these precompiler directives makes it much easier to extend (and overwrite) inherited code.

See the lot of discussions how to guarantee inheritance when modifying a single entry.

Comment Icon Gerton  
  Jun 29, 2009 10:12 AM
  This is an interesting one. :-)

1 Comment

  1. see: uniface.communityzero.com/content/lists

    Short Description

    #includeinherited and #includedefault

    Description

    These precompiler directives allow additional coding without breaking inheritence.

    #IncludeInherited
    adds the inherited sourcecode (model,template) for this trigger and object (entity, field, form)

    #IncludeDefault
    adds the current default sourcecode for this trigger and object (entity, field, form)

    To ease overwriting of entries, the compiler should IGNORE multiple entry definitions and just take the first one. 

    Use case (please read what is requested here!)

    #includeinherited:
    I just want to extend/overwrite a modeled entry, but want to keep inheriting all other entries.

    #includedefault:
    Allows a FLEXIBLE reference to the defaults; and a chance to supersede replace modeled entries with the default set.

     

    Importance

    adding these precompiler directives makes it much easier to extend (and overwrite) inherited code.

    See the lot of discussions how to guarantee inheritance when modifying a single entry.

    Comment Icon Gerton  
      Jun 29, 2009 10:12 AM
      This is an interesting one. :-)

    Author: ulrich-merkel (ulrichmerkel@web.de)