Access LIST constraint values from web script?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2009 08:34 PM
Any way to access a custom model's LIST constraint values from a web script? I have an FTL where I show a form and I would like to populate a drop-down input with the constraint values rather than repeating myself.
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2009 04:11 AM
Hm, i would using a backend Java Class (an WebScriptAction) that obtains the listconstraint (via DirectoryService) and passes it along the pipe to a webscript.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2009 05:40 AM
Hm, i would using a backend Java Class (an WebScriptAction) that obtains the listconstraint (via DirectoryService) and passes it along the pipe to a webscript.
I guess you meant DictionaryService, there is no such thing as DirectoryService 😉

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2009 03:30 AM
Oh im sorry, of course i had meant the DictionaryService! 
If you obtain you listConstraint via an actionclass(e.g. via extending DeclarativeWebScript) you can pass your listvalues into a propertymap being available in the FTL.

If you obtain you listConstraint via an actionclass(e.g. via extending DeclarativeWebScript) you can pass your listvalues into a propertymap being available in the FTL.
