cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ERQL - How to Select "Participant Application" ?

BenAvdicevic
Honored Contributor

Hi,
When writing ERQL queries - sometimes I see a "duplicate" metaclass and I have trouble knowing which object to pick.

For example, consider writing "SELECT [Participant Application]" statement.

There are two options with the same name.   Only one of them is the one I want?   How do I know which to select ?

BenAvdicevic_0-1754666397175.png

Is there a trick to this?  

@PBessodes As always, I'd appreciate any suggestions.

4 Replies

PBessodes
MEGA
MEGA

Hi,
We agree we have something to improve here. To make it short: metamodel structure requires that "leg name" of MetaAssociation must all be different from the linked MetaClass perspective. Hence the use of GuiName. But display and handling of those objects requires some UI adaptation and some are missing.
I will ask concerned POs to see what can be done.

BenAvdicevic
Honored Contributor

At least one part of the confusion seems to be that 2 different Metaclasses have the Same GUI_Name defined.

BenAvdicevic_2-1754668270766.png

So - that explains why I would "see"  two of the same Metaclasses when using the CTRL-Space to build my query.

However - that still doesn't explain why my query "reverts"  from using Participant Application (App Syst Scenario) to Participant Application

is this just a defect in the Query builder or is there some trick to get it to use specific metaclass I want ?

 

BenAvdicevic
Honored Contributor

One more update.

So, as I just discovered.  when I use the Syntax Helper  (CTRL-Space) to select one of the "Participant Application" metaclases I can get the query to return the actual object type that I want (the App Syst. Scenario participant)

But - After I Save and Logout and log back in. 
The exact same query - starts returning the "other"  "Application Participant" object type.  

BenAvdicevic
Honored Contributor

To add to this confusion.   

Sometimes, and only sometimes,  the ERQL code window displays a different name for one of those "Participant Application" metaclasses.  For example,

Sometimes I see this:

BenAvdicevic_0-1754666664821.png

But, then - if I run the query few times  the name simply changes to "Participant Application" : the (App Syst Scenario) part is gone.