How many different values do you have for zProcesso.code? You may try to define restricted cnt factories for each of them, and use pdm_if to display different grp attribute using differen factory depending on category e.g.
in maj file:
OBJECT cnt{
FACTORY grp_processo400001 {
RESTRICT "type = 2308 AND processo = 400001" { type = 2308, processo = 400001} ;
DOMSET auto_assign "last_name" "schedule" STATIC;
DOMSET grp_list "combo_name,phone_number,contact_num,organization,location" "" DYNAMIC;
STANDARD_LISTS {
SORT_BY "combo_name,phone_number,contact_num,organization=organization.name,location=location.name";
WHERE "delete_flag = 0" ;
MLIST OFF ;
RLIST OFF ;
};
REL_ATTR id ;
COMMON_NAME combo_name ;
FUNCTION_GROUP "group" ;
} ;
};
in htmpl
<PDM_IF "$args.category.processo.code" = "PROCESSO1">
<PDM_MACRO name=dtlLookup hdr="Group" attr=group factory=grp_processo400001 evt="onBlur=\\\"detailSyncEditForms(this)\\\"">
<PDM_ELIF "$args.category.processo.code" = "PROCESSO1">
..........
It may just work, but you may have problems with auto assigment and etc. So most probably best is to wait for the patch