Hi Dirksen,

   Forgot to mention... you should probably choose some attribute other 
than 'id' as the attribute to check for your DataSkin. The 'id' attribute
is always there... 

-steve

>>>>> "Steve" == Steve Spicklemire <[EMAIL PROTECTED]> writes:

    Steve> Hi Dirksen,

    Steve>    Hmm... why not have the query that gets data qualify by
    Steve> gender:

    Steve> SQL Query: getMemberByGender

    Steve> parameters member_id, gender

    Steve> select * from members where <dtml-sqltest member_id
    Steve> type=string> and <dtml-sqltest gender type=string>

    Steve> Then in the SkinScript for maleMemberRack:

    Steve> WITH QUERY getMemberByGender(member_id=self.id,
    Steve> gender='male') COMPUTE blah, blah, blah....

    Steve> -steve

>>>>> "Dirksen" == Dirksen  <[EMAIL PROTECTED]> writes:

    Dirksen> I set up two racks in one specialist, one is
    Dirksen> maleMemberRack, the other femaleMemberRack.  Both are
    Dirksen> loaded by accessing attribute id, and have skinscripts to
    Dirksen> retrieve data from a db. Suppose the femaleMemberRack
    Dirksen> gets loaded first, it finds out from the db that the 'id'
    Dirksen> is a male, then how can it pass the process to the
    Dirksen> maleMemberRack?

    Dirksen> Dirksen

    Dirksen> __________________________________________________ Do You
    Dirksen> Yahoo!?  Yahoo! Shopping - Thousands of Stores. Millions
    Dirksen> of Products.  http://shopping.yahoo.com/

    Dirksen> _______________________________________________ Zope
    Dirksen> maillist - [EMAIL PROTECTED]
    Dirksen> http://lists.zope.org/mailman/listinfo/zope ** No cross
    Dirksen> posts or HTML encoding!  ** (Related lists -
    Dirksen> http://lists.zope.org/mailman/listinfo/zope-announce
    Dirksen> http://lists.zope.org/mailman/listinfo/zope-dev )


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to