Yes I still don't have that down and find it very confusing.  I just end up 
trying to remove/add colons to make the error mixed parameter error go a 
way but don't really understand it.

I'll give it another go and perhaps some year I'll understand what it all 
means.

Thanks again

Bob

On Wednesday, March 7, 2012 10:10:27 PM UTC-5, Bryan Larsen wrote:
>
> On Wed, Mar 7, 2012 at 9:58 PM, Bob Sleys <[email protected]> wrote:
> > I'm sure I'm doing something dumb again, when isn't that the case.
>
> I wouldn't call it dumb, it's a common mistake.   I think we need to
> start a manual page:  "Frequent questions & misunderstandings".    Top
> of the list would be an explanation of the difference between no
> colon, colon at the end and colon in the middle.
>
> I also really wish we could make Hobo throw an error when people used
> an undefined parameter.  Unfortunately, that's not an easy fix to
> Hobo, and would break a significant part of Rapid.
>
> For that's what you've done here.
>
> <after-submit: go-back/> means "add the go-back attribute to the
> after-submit parameter".   But the form doesn't have an after-submit
> parameter, so the line is completely ignored.
>
> you want
>
> <after-submit go-back/> without the colon.   However, you can't stick
> it there because you can't mix parameter and non-parameter statements
> -- where would the non-parameter statements go?   The easiest solution
> is just to throw it inside your actions, but a "better" solution would
> be to explicitly place it:
>
> <append-field-list:>  <after-submit go-back/> </append-field-list:>
>
> Bryan
>
> >
> > Here is my form dryml but the hidden field for the after submit isn't 
> part
> > of the html and of course I always go back to the standard item page.
> >
> > <extend tag="form" for="LocationMaterial">
> > <old-form merge  >
> > <after-submit: go-back/>
> > <field-list: fields="material, abated, condition, potential, friable,
> > percent_damage, accessible, quantity, unit, notes, locmathists">
> > <material-view:>
> > <select-one-or-new-dialog>
> > <field-list: fields="name"/>
> > </select-one-or-new-dialog>
> > </material-view:>
> > <unit-view:>
> > <select-one-or-new-dialog/>
> > </unit-view:>
> > <locmathists-view:>
> > <input-many>
> > <field-list fields='project, date, field_tech'/>
> > </input-many>
> > </locmathists-view:>
> > </field-list:>
> > <actions:>
> > <submit label="#{ht 'location_material.actions.save', 
> :default=>['Save']}"
> > param/>
> > <or-cancel:location param="cancel"/>
> > </actions:>
> >
> > </old-form>
> > </extend>
> >
> > Bob
> >
> >
> >
> > On Sunday, March 4, 2012 10:30:24 AM UTC-5, Bryan Larsen wrote:
> >>
> >> http://cookbook-1.3.hobocentral.net/api_tag_defs/after-submit for the
> >> submit button.
> >>
> >> For the cancel button, it can be parameterized just like any other
> >> link.   As scorpio suggested, you could use the referrer as the href
> >> for it.
> >>
> >> Bryan
> >>
> >>
> >> On Sat, Mar 3, 2012 at 2:23 PM, Bob Sleys <[email protected]> wrote:
> >> > Is there a simple way to make a form return to the referring page on a
> >> > save
> >> > or cancel?  I have links to edit an item from 2 different locations in
> >> > my
> >> > app and I'd like the user returned to the page that they used to get 
> to
> >> > edit
> >> > the item instead of a fixed page.
> >> >
> >> > 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/-/tXLi-dYNrNgJ.
> >> > 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.
> >
> > --
> > 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/-/gepIH_v176gJ.
> >
> > 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.
>
>

-- 
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/-/DbrBm4ksQa8J.
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.

Reply via email to