On Sun, Mar 1, 2009 at 7:36 AM, Ed Leafe <[email protected]> wrote:
> On Feb 28, 2009, at 4:22 PM, tim awa wrote:
>
> > I wonder how the getParams code would be if there are two or three
> > parameters.
>
>
> You return a 2-tuple or a 3-tuple of values.
I would guess that the order which these values are returned by getParams
match the order of the parameter declaration in the WHERE clause. Correct?
>
> > I presume that the self.Parent in the override code referred to the
> > controlling Bizobj. What will be the code if the third parameter is
> > taken
> > from another Bizobj or should I say dataset?
>
> self.Parent is set when you add a bizobj to a relationship as a
> child
> of another. I've never come across a case where the value of a bizobj
> depended upon an unrelated bizobj. Can you describe the situation you
> have in mind? Perhaps then I might be able to come up with some
> suggestions.
>
Hmmm ... how about this:
select * from tbldoc where position('%s' in docnote) > 0
In the above sql, I am trying to select records whose docnote field contains
the parameter string. Let us just suppose that this parameter is set by the
user from a bizobj lookup table. Can one get the parameter value off the
bizobj after the user has set the record pointer of the lookup dataset?
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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]