SelfServicing: Navigate through the subtypes

Posts   
 
    
PierreCB
User
Posts: 13
Joined: 24-Jul-2020
# Posted on: 02-Oct-2020 15:22:04   

Hi,

How do i navigate through the subtypes ?

I have an entity : Subitem and i want to acces to SubItem_NotesEntity (Sub-types of SubItem)

Thank you :-)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 03-Oct-2020 08:59:41   

PierreCB wrote:

Hi,

How do i navigate through the subtypes ?

I have an entity : Subitem and i want to acces to SubItem_NotesEntity (Sub-types of SubItem)

Thank you :-)

This is a 'sub' type or a related entity? Like customer.Orders[index] or a subtype? You really have to provide more information.

Frans Bouma | Lead developer LLBLGen Pro
PierreCB
User
Posts: 13
Joined: 24-Jul-2020
# Posted on: 05-Oct-2020 14:16:00   

Otis wrote:

PierreCB wrote:

Hi,

How do i navigate through the subtypes ?

I have an entity : Subitem and i want to acces to SubItem_NotesEntity (Sub-types of SubItem)

Thank you :-)

This is a 'sub' type or a related entity? Like customer.Orders[index] or a subtype? You really have to provide more information.

It is really a subtype as described in my Genpro project. (see image below.) it is an entity whose primary key is a foreign key

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 06-Oct-2020 00:06:28   

PierreCB wrote:

How do i navigate through the subtypes ? I have an entity : Subitem and i want to acces to SubItem_NotesEntity (Sub-types of SubItem)

The above phrase was confusing, because usually navigation happen from an entity to its related entities. Not from a SuperType to a SubType. That's because you either have a SuperType entity, or a SubType entity, not one associated with the other.

But since a SubType entity has some info in the SuperType table, maybe you mean, you have the PK value, then all you need to do is to fetch the SubTypeEntity with that PK.

PierreCB
User
Posts: 13
Joined: 24-Jul-2020
# Posted on: 06-Oct-2020 13:54:44   

Walaa wrote:

PierreCB wrote:

How do i navigate through the subtypes ? I have an entity : Subitem and i want to acces to SubItem_NotesEntity (Sub-types of SubItem)

The above phrase was confusing, because usually navigation happen from an entity to its related entities. Not from a SuperType to a SubType. That's because you either have a SuperType entity, or a SubType entity, not one associated with the other.

But since a SubType entity has some info in the SuperType table, maybe you mean, you have the PK value, then all you need to do is to fetch the SubTypeEntity with that PK.

OK thank you :-)