Question

For example I only want to see the classes that got code in BOTH syp and cus layers in my project.

Was it helpful?

Solution

SQL comes to your rescue:

static void UtilElement2Layers(Args _args)
{
    UtilIdElements uc, u1, u2;
    while select uc
        where uc.recordType == UtilElementType::Class
        exists join u1
        where u1.parentId == uc.id
           && u1.utilLevel == UtilEntryLevel::cus
        exists join u2
        where u2.parentId == uc.id
           && u2.utilLevel == UtilEntryLevel::syp
        // && u2.id == u1.id
    {
        info(uc.name);
    }
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top