Answering myself for others: current row is adequately available from
velocity ${row} :)
Row contains JSON entries related to current object in livetable (like
"${row.doc_url}" )

BR,
Jeremie


2013/9/9 Jeremie BOUSQUET <[email protected]>

> Hello,
>
> I'm looking after details on how "computed fields" work.
> I found the JIRA issue [1], had a look at linked documentation [2], but I
> couldn't find:
> - what kind of script should be used (velocity with or without the
> {{velocity}} tag ?) inside the "Script" field
> - how to access "current" object to retrieve other fields values, from
> inside this computed field script ?
>
> I have a relation-ship between 2 XObjects (ie, one field of A is a
> Database List using some field defined in B).
> I would like to show parent A into B livetables, using computed field (as
> I do not need to store relation-ship in both objects).
>
> Best Regards,
> Jeremie
>
> [1] http://jira.xwiki.org/browse/XWIKI-8095
> [2]
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise42M2#HComputedclassfields
>
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to