Using a derived value in Forms

I have a derived value that comes from a custom Java class. How do I reuse the value in the form? eg: I want to use the value that comes from calculatedfld in Field1 and Field2.

<Field name='calculatedfld'>

<Display class='Text'>

<Property name='title' value='calculatedfld'/>

<Property name='size' value='30'/>

</Display>

<Default>

<invoke name='NextID' class='gencode'/>

</Default>

</Field>

[526 byte] By [nnkcvsa] at [2007-11-26 17:08:48]
# 1
If the form doesn't have a base context then you should be able to refer to the value with <ref>calculatedId</ref>. Assuming the field is processed before you try to use it, ie is above the other fields.If you're using a base context, then you need to add that as
Dchasea at 2007-7-8 23:36:39 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Thanks for the reply. <defvar> solved my problem :). That was easy.
nnkcvsa at 2007-7-8 23:36:39 > top of Java-index,Web & Directory Servers,Directory Servers...