in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

place default criteria in XPObject

Last post 11/7/2008 2:30 AM by Dennis van Mil. 2 replies.
Page 1 of 1 (3 items)
Sort Posts:
Previous Next
  • 11/6/2008 2:30 AM

    place default criteria in XPObject

    I'm trying to write a XPObject that should always be bound to a criteria that is user dependent. I don't want to place this criteria  everytime I make an XPcollection.

    So I was hoping I could add it to the XPObject itself.  Is this possible ?

    Filed under:
  • 11/6/2008 11:16 PM In reply to

    Re: place default criteria in XPObject

    Might need a bit more information,

    Are you trying to implement a security type system whereby only a collection of objects are returned based on that user?

    If so you will probably be best just writing a small helper class.

    What criteria are you wanting to apply to the collection?

  • 11/7/2008 2:30 AM In reply to

    Re: place default criteria in XPObject

    I'm developing an application that should work for 3 countries. Netherland/Belgium/Luxemburg.

    The 3 counties should  have a few tables with shared data. And a few with data that only the specified country (specified in the user table) should see.

    I know I can just place a criteria on an XPCollection but I was wondering if I could place it in the XPObject itself.

     

Page 1 of 1 (3 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED