[daisy] Re: Example .js snippet for accessing fields

Robert Cecil rob.cecil at gmail.com
Fri Dec 1 12:41:32 CST 2006


Just so I am on the right track, I was thinking of something like this:

Repository.getRepositorySchema().getFieldTypeByName(...)

Does that sound right?
Thanks!

On Dec 1, 2006, at 1:32 PM, Robert Cecil wrote:

> Hi,
>
> I need to access a selection list defined in a field in the  
> repository in an extension form, via flow_jxpath, e.g.
>
> <fd:selection-list type="flow-jxpath" list-path="myList"
>                    value-path="value" label-path="label" />
>
> My question is how do I query the repository (via the javascript  
> api) to find the list of name/value pairs that I created when I  
> defined a field? More specifically, if I created a field in the  
> backend, with a static selection list (manual enumeration) of  
> values and labels, how would I retrieve that via javascript to  
> populate a CForms front-end form?
>
> Thanks in advance!
>
> Rob Cecil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20061201/c6e7ed48/attachment.html


More information about the daisy mailing list