On Monday, January 7, 2013 2:48:02 PM UTC-5, [email protected] wrote:
> However, the form for adding these relationships is a puzzle for me. The
> existing form for a GraphPane adds a DataSet directly:
>
> <select-many:data_sets
> options="&DataSet.activity_is(activity_for(@this))" />
>
> ...but what I need now appears to be a sort of sub-form for a
> DataSetGraphPane which has that same select menu of DataSets, but shows an
> items list of DataSetGraphPanes, with a checkbox to set the in_legend
> boolean for them, and that sort of tag appears to require some contortions
> in DryML.
>
Looks like this works:
<input-many:data_set_graph_panes>
<select-one:data_set
options="&DataSet.activity_is(activity_for(@this))" />
<field-list fields="in_legend" />
</input-many>
...if I have the right `attr_accessibles` set on the join model.
Now I have an "add DataSetGraphPane" link at the bottom of my collection
list on show pages... seems like the sort of thing I should be able to turn
off with a parameter somewhere?
pjm
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/hobousers/-/rqyaHwWuY4oJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.