sorry, is solved.
string:join(lists:map(fun(Module) -> io_lib:format("<option
value='~s'>~s</option>", [Module:id(),Module:name()]) end, boss_db:find(
list_to_atom(binary_to_list(proplists:get_value(model, Variables))),[])), ""
).
El viernes, 28 de febrero de 2014 13:24:09 UTC-4:30, till haxor escribió:
>
> i need generate a html select from tag_module and i dont know how to
> this....
>
> relatedSelect(Variables, Options) ->
> error_logger:error_report( ["Variables:", Variables, "Options:",
> Options] ),
> string:join(lists:map(fun(Module) -> io_lib:format("<option
> value='~p'>~p</option>", [Module,Module]) end, boss_db:find (
> list_to_atom(binary_to_list(proplists:get_value(model, Variables))),[])),
> "").
>
> where model is pased from template {% relatedSelect model="books" %}
>
> can any help me?
>
>
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/aaf22ff5-1457-41d7-9078-a855f49fc50d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.