On Oct 3, 2009, at 11:18 AM, Ricardo Aráoz wrote:
> In this particular case the dialog is not for user notification but to
> get a set of filters from the user, and it MUST be a dialog, the user
> has just expressed his will to filter some data (by clicking a filter
> button) and I want him to either give me the filter before doing
> anything else with the originating form or cancel the whole filter
> operation.
OK, fair enough.
> What drove me to the bizobj thing was that I needed the ds to be empty
> for starters, so that would be just an empty tuple and didn't feel
> right. Besides I would be more comfortable issuing bzob.save() and
> bzob.new().
???
Why do you need to save or create anything? Your original request said:
"Hi, I need just a temporary dataset. I don't have a table, nor business
rules. Just want a dataset which I can fill with three fields and show
in a grid. So, how do I create an empty dataset?"
Just create the data, populate the grid, show the dialog, and after
the user makes their selection, hide the dialog, grab their selection,
release the dialog, and then proceed with your app based on their
selection. No databases, no bizobjs, no saving, no connections - keep
it simple!
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]