I'd say that if you want a full reload after deleting the record you should disable the default delete and code your own (with redirect) using the links argument or intercepting earlier a request.args containing 'delete' . As for the sqlform in the other component, try to decouple and see what the submit button is doing....
On Wednesday, March 13, 2013 7:18:25 PM UTC+1, Jim S wrote: > > Hi > > I have a LOADed component that has a SQLFORM.grid in it. The definition > looks like this: > > grid = SQLFORM.grid(updateQuery, fields=[db.tankSite.name], left=left, > create=False, editable=False, details=False, > maxtextlength=45, orderby=[db.tankSite.name], > csv=False, searchable=False, showbuttontext=False, > formname='tankSiteList') > > You can see I'm only showing a Delete button in addition to my fields. > When I click on the delete button the popup message displays and clicking > Ok deletes the record. This is all done via ajax with no page > transitions/reloads. What I want to have happen is to force the component > to reload after the record is deleted from the SQLFORM.grid. Is there any > way for me to force this to happen? > > I also have a SQLFORM.factory for in this same component and if I delete a > record, then next attempt to process my SQLFORM.factory form fails. > Subsequent attempts work, but the first attempt after a delete fails until > the component is reloaded. > > I'm happy to provide more information on the whats and whys if you want > more. > > Thanks for taking a look. > > -Jim > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.