cancel
Showing results for 
Search instead for 
Did you mean: 

Hello World Example error

mikewaters
Champ in-the-making
Champ in-the-making
Hi, I had a problem with the Hello World web script example.

I installed it according to the instructions on the wiki, but when called it displays a Node ID instead of the username.
The example source is

Hello ${person.name}

which returns

Hello 3c1d2fa1-28da-11dd-a247-ab869c0a51f4.

It looks like the person api is broken, at least on my system?

Also is there an API document that provides details of the Template API described in  http://wiki.alfresco.com/wiki/Template_Guide ?

it just says

person    Node representing the current users Person object.

I distilled info from the main wiki page into a quick start page, which is exactly what I did to set up the script: http://wiki.alfresco.com/wiki/Web_Scripts_Hello_World_Quick_Start
3 REPLIES 3

briboe
Champ in-the-making
Champ in-the-making
Hello, ${person.properties.userName}!

mikewaters
Champ in-the-making
Champ in-the-making
Fantastic - thanks briboe!

By the way - how do you find out that kind of information?

briboe
Champ in-the-making
Champ in-the-making
A lot of trial and error (with the emphasis on error)   Smiley Happy