Bobby Lawrence wrote:
Armin - that works fine, but if I have two "inverse-foreignkey" attributes with a custom attribute for each, the collection descriptor only stores the last one because they have the same name.
--B

why don't you specify a comma separated list as value argument and convert it to a String[] when reading the attribute?


Armin



Armin Waibel wrote:

Bobby Lawrence wrote:

Hello all -
I put some custom attributes in the "inverse-foreignkey" element of a collection descriptor.
How do I get at these values? For some reason, the API doesn't give me the ability to get at them....maybe I'm doing it wrong...



Lookup the CollectionDescriptor instance from the ClassDescriptor (e.g. by field name) and call
String value = cds.getAttribute("myAttribute");


regards,
Armin

--Bobby





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to