how exclude object from set [message #486629] |
Fri, 18 September 2009 13:11 |
Omran Messages: 21 Registered: July 2009 |
Junior Member |
|
|
Dear All,
I have small problem, I want to execlude some objects from a
set(mv.columns) and then iterate on the result set, I tried to use the
code below but there are some errors that I could not solve
Any help is highly appreciated
Regards,
Omran
[let ss:Set(ViewColumn)= Set{}] ///error here Invalid Type:Set(ViewColumn)
[for (vec : ViewExpColumn
|mv.columns->select(oclIsTypeOf(ViewExpColumn)))]//error here The 'no
null' constraint is violated
[if not (vec.expression.trim().toUpper().startsWith('SUM(') or
vec.expression.trim().toUpper().startsWith('AVG(') or
vec.expression.trim().toUpper().startsWith('MIN(')or
vec.expression.trim().toUpper().startsWith('MAX(') or
vec.expression.trim().toUpper().startsWith('COUNT('))]
[ss->excludes(vec.oclAsType(ViewColumn))/]/// error here Cannot find
operation (excludes(ViewColumn)) for the type (Set())
[/if]
[/for]
[for (vc: ViewColumn|ss) separator(',')]/// error The 'no null' constraint
is violated
[vc.name/]
[/for]
[/let]
|
|
|
Powered by
FUDForum. Page generated in 0.03575 seconds