"P. van Kemenade" <[EMAIL PROTECTED]> wrote:
> Hi
>
> can it be that cloud.getNodeByAlias returns old results ?
> I have an object with 1 (really 1) alias named "test", and if I
>
> String alias="test";
> int nr1 = cloud.getNodeByAlias(alias).getNumber();
> int nr2 = cloud.getNodeManager("oalias").getList("name='"+
> alias +"'","","").getNode(0).getNumber();
>
> I get two different numbers.
> does anyone know ?
Yes, it makes sense, because the second query will return the
nodenumber of the oalias node, while the first one will get the number
of the node with that alias.
change the second line to:
int nr2 = cloud.getNodeManager("oalias").getList("name='"+
> alias +"'","","").getNode(0).getIntValue("destination");
and you should see that nr1 and nr2 are the same.
Michiel
--
mihxil' Michiel Meeuwissen
Mediapark C101 Hilversum
+31 (0)35 6772979
[]()