Now i know what is going on, the error was in 3.2.1.

Lotacao or Lota��o in portuguese, in basics lines, means specific
departament in a Company.
Each departament has its own adress ( Endere�o ).

> I would say that an instance of RHEndereco is embedded in
User.RHTabLotacao.

you are right. sorry for the wrong words.

>From my first days using Cach�, i learned that if i want to use a calculated
property in a %DynamicQuery for example i have to
create the logic for it in the SQL Tag Definition ( Cach� 3.2.1 ). Does the
"LogicalToDisplay" thing has the same results?

The Error:

It is exactly the opposite that i was thinking.
If i have the situation that i described in the first e-mail you can't use
the SQL Tag Definition for a calculated property in a %SerialObject Class.
Cache 3.2.1 compiles the Serial Class normally, but if you try to use it in
a Persistent Class Property Definition the compilation failed.

What happened : My RHEndereco class has the calculated property
CEPFormatado, i didn't have code written in the SQL Tag , BUT THE CHECK
BUTTON FOR SQL CODE WAS CHECKED. Cache 3.2.1 accepted it. Cache 5.0.7
didn't.
What i did, I wrote the SQL code in 5.0.7. Now it is working.

Again, thanks for your comments, Denver.

Ribamar


"Denver Braughler" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> Ribamar wrote:
> > I found the error.
> > I have a Class RHEndereco which is %SerialObject.
> > In this class I have a property called CEPFormatado which is calculated
and
> > has a SQL code, something like Set
> > {CEPFormatado}=$e({CEP},1,5)_"-"_$e({CEP},6,8)
>
> Why not use CEPLogicalToDisplay() instead?
>
> > I have a property Endereco in the class User.RHTabLotacao
> Que "Lota��o" quer dizer?
>
> > that points to class RHEndereco.
> > This definition is the compilation's problem.
> >
> > It worked on version 3.2.1. What is the best way to solve it on 5.0.7?
> I don't know about 3.2.
>
> But what you say about pointing to a serial object doesn't sound right.
> I don't believe you can point to a serial object.
> Perhaps you chose a wrong English word.
> I would say that an instance of RHEndereco is embedded in
User.RHTabLotacao.
>
> I hope your problem is clear enough now that someone can help you.
>
> If you post the definitions for property Endereco and class RHEndereco,
that might help much.



Reply via email to