Form question

Hi,

I need to populate the accountId field, when values for 2 other fields in the form are entered. I am using this piece of code to do that:

<Field name='Account ID'>

<Display class='Text'>

<Property name='required'>

<Boolean>true</Boolean>

</Property>

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

</Display>

<Derivation>

<concat>

<s>s</s>

<ref>user.waveset.number</ref>

<substr>

<ref>user.waveset.Role</ref>

<s>0</s>

</substr>

</concat>

</Derivation>

</Field>

However, this doesnt seem to work. Am i missing something?

Thanks

[740 byte] By [sungirla] at [2007-11-27 11:51:47]
# 1

> <ref>user.waveset.number</ref>

> <substr>

> <ref>user.waveset.Role</ref>

1. account ID should be defined after the other two fields

2. other two fields should have action=true

3. if number Role etc are extended attributes, refer them with user.accounts[Lighthouse].number

nishasooryaa at 2007-7-29 18:40:26 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Hi

Thanks for the reply. I checked to make sure everything is right based on ur 3 points. However, the page is getting refreshed but the accountId field is not getting populated with the logic i have.

Any pointers would be appreciated.

Thanks

sungirla at 2007-7-29 18:40:26 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

what was your reasoning to use Derivation rather than Expansion ?

greenfan88a at 2007-7-29 18:40:26 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4

I got this working. There was a problem in the way i was referring the fields.

Thanks for ur help

sungirla at 2007-7-29 18:40:26 > top of Java-index,Web & Directory Servers,Directory Servers...