Code:
<property name="Chemin" type="String" formula="(case when (NIVEAU_PARENT_FK IS null) then
ID
else
(case when ((select __NIVEAU.NIVEAU_PARENT_FK from NIVEAU as __NIVEAU where __NIVEAU.id=NIVEAU_PARENT_FK) is null)
then (ID + '-' + NIVEAU_PARENT_FK)
else (select (ID + '-' + NIVEAU_PARENT_FK + '-' + __NIVEAU.NIVEAU_PARENT_FK) from NIVEAU as __NIVEAU where __NIVEAU.id=NIVEAU_PARENT_FK) end)
end)" />
i've problem, beacause (ID + '-' + NIVEAU_PARENT_FK) result 3 and not "1-2". Why ? I try to convert but ....
I've tried Cast(ID as VARCHAR) but i've a error
Why ??
select cast(ID as ????