javascript - Alfresco custom UI controls - Associations -


i'm trying build custom ui control in alfresco display associations of object type have.

basically have 2 object types; code, key value pair, , codescheme contains multiple child associations codes, it's mirror of map structure have in different system.

the problem have codes automatically generated, uid names, whereas i'd present them 'key=value', 'key=value', etc (ideally i'd present table).

i've created custom control , added share-config-custom, , confirmed configuration working correctly. i'm not clear on is:

a) how attach javascript control can process association data. b) how hold of codes in javascript, , read properties.

i'm looking push in right direction. :)

one idea use form filter. form filter iterate on child references, fetch each child node, grab data want display , add 1 or more new properties data.

then, form control hooked fields form filter dynamically added form data. can read , display data needed.

without form filter think you'd have use javascript parse child association refs , use ajax calls fetch each child's node data, format needed. form filter idea less traffic browser.


Comments