custom 'Missing Fields'

Hi guys,

I am trying to code a custom 'Missing Fields' field in the Tabbed User Form, since the default one does not support multi-valued ldap attributes..

But for that, I need to find out if an attribute (accounts[rs].attr) has already been referenced in the form or not. Any idea how to do it? The <isnull> would check for the value of a field, not whether the reference of attribute is null.

Thanks,

Adi.

[447 byte] By [adimut] at [2007-11-26 6:22:30]
# 1

Hi,

What I understand from what you write here is you're trying to develop a "custom LDAP" form rather than a fields iterator. A good starting point to look at will be to check the /sample/ directory located in your idm instance. There are several sample forms namely "Dynamic Tabbed User Form" and "Dynamic Reosurce Form". The latter has a genereic field iterator logic (if the resource is not among the predefined resources it siply iterates schema fields. You can add your own logic in there. Also there are custom forms. There's one "LDAP User Form". All there forms are in XML format you shoud read them in using the lh config. then save in the repository.

I hope it helps.

Cheers,

Kerem ERSOY

ksoft1 at 2007-7-6 14:09:50 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Thanks for your reply Kerem,

Yes, I looked at the "Dynamic Tabbed User Form" and "Dynamic Resource Form", but that does not solve my requirement.

The default MissingFields FormRef creates fields for attributes not defined in the form. How does it know if a field in the form references an attribute? I want to find that out to be able to build a custom MissingFields.

For eg: If "accounts[resName].attr1" is referenced as a TextBox in the form, the default MissingFields does not show it in the 'Attributes' tab... The problem lies in finding out whether a field has been referenced. Know what I mean?

Thanks again for the reply.

Adi.

adimut at 2007-7-6 14:09:50 > top of Java-index,Web & Directory Servers,Directory Servers...