Ok still trying to get this to work.
Currently Have the input showing up and allowing me to add a new option, ie
the formlet appears. However when I click Ok in the formelet I get them
following JS errors
RJS error:
TypeError: Cannot call method 'getElementsByTagName' of null
var _update = typeof Hobo == 'undefined' ? Element.update :
Hobo.updateElement;
_update("select-one-material-1-location", " <select class=\"location
material-location input belongs_to material_location\"
name=\"material[location_id]\">\n <option value=\"3\"
selected=\"selected\">Floor</option>\n<option
value=\"4\">Ceiling</option>\n<option value=\"5\">Wall</option>\n<option
value=\"6\">Window</option>\n<option value=\"7\">Door</option>\n<option
value=\"8\">Above Ceiling</option>\n<option
value=\"9\">Test</option>\n<option value=\"10\">test</option>\n<option
value=\"11\">tet</option>\n </select>\n");
Here is the code for the form:
<extend tag="form" for ="Material">
<old-form merge>
<p><b>Name:</b><input:name/></p>
<p><b>Quantity</b><input:quantity/> <select-one:unit
blank-message="--"/></p>
<p><b>Location</b><select-one-or-new-dialog:location></select-one-or-new-dialog></p>
<div param="actions">
<submit label="Save" param/><or-cancel param="cancel"/>
</div>
</old-form>
</extend>
I'm obviously missing passing something, perhaps the callback id?, to the
select-one-or-new-dialog. Any ideas on how to get this to work?
Bob
--
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/-/V3FPZ0xqOTA4aTBK.
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.