|
|
|
|
Re: OCLInvalid Error [message #658764 is a reply to message #658762] |
Wed, 09 March 2011 17:35 |
Hussam Messages: 19 Registered: January 2011 |
Junior Member |
|
|
Hello All,
Thanks for the reply ,
but I still have the same problem, whenever I use number >9 it gives me the same invalid .
Association.allInstances()-> select(asso:Association|(asso.name.substring(1,9)='DR!{Hamad ') )
Results:
<<evlvAddDomainAssociation, evlvRenamedAssociation>> <Association> DR!{Hamada, Ramada}HO!{Hima, barhoom}
the second one:
Association.allInstances()-> select(asso:Association|(asso.name.substring(1,10)='DR!{Hama da, Ramada}HO!{Hima') )
Results:
OclInvalid
So what is the problem now,? do not care about the blank , it occurs just here in this text ,
Thanx for your help,
Regards
|
|
|
Re: OCLInvalid Error [message #658768 is a reply to message #658764] |
Wed, 09 March 2011 17:50 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
Note that the substring selection is within a select, so if ANY
Association has less than 9/10 charcters you will get invalid.
Regards
Ed Willink
On 09/03/2011 17:35, Hussam wrote:
> Hello All,
> Thanks for the reply ,
>
>
> but I still have the same problem, whenever I use number >9 it gives
> me the same invalid .
>
> Association.allInstances()->
> select(asso:Association|(asso.name.substring(1,9)='DR!{Hamad ') )
>
>
> Results:
> <<evlvAddDomainAssociation, evlvRenamedAssociation>> <Association>
> DR!{Hamada, Ramada}HO!{Hima, barhoom}
>
>
> the second one:
>
> Association.allInstances()->
> select(asso:Association|(asso.name.substring(1,10)='DR!{Hama da,
> Ramada}HO!{Hima') )
>
>
> Results:
> OclInvalid
>
>
> So what is the problem now,? do not care about the blank , it occurs
> just here in this text ,
> Thanx for your help,
>
> Regards
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03716 seconds