Thanks for the clarification.

In my case, I have two tables:


db.define_table('analyses',Field('info'),Field('status')
db.define_table('samples',db.analyses,Field('sample_info')


and I use:

grid=SQLFORM.smartgrid(db.analyses,linked_tables=['samples'])

I want when the status of an Analysis is 'Submitted', the user to
not be able to create new, edit, or delete the submitted samples of an
Analysis. So,I am using the callback functions for the SQLFORM.smartgrid 
options of

editable and deletable, to control these options, eg:

deletable=dict(analyses=is_open, samples=is_open),

Since create is not a callback,
how, could I control whether the 'Add' button at Samples should be 
available,
only if the parent Analysis has not yet been submitted?

-- 



Reply via email to