Menu

How to get Proxy objects

2004-10-03
2013-03-07
  • Nobody/Anonymous

    I am getting a list of objects no problem.
    I cannot get a list of proxy objects though.

    I use the exact same code, just change the following:

    set my CRetrieveObject.ReturnFallObjects = false
    call Cursor.LoadProxy instead of LoadObject.

    I have one property for the class in my xml set to proxy=true

    I always get full objects though. Do I need to set proxy=false to all other properties?

     
    • Richard Banks

      Richard Banks - 2004-10-03

      Yes.

      Proxy = "true" is actually the default.  It's assumed that the most common use of a proxy object will be to get all fields, but not associations, etc.  If you want to exclude fields you must specifically set proxy = "false"

       
    • Nobody/Anonymous

      Thanks much.
      Just so I am clear then, in general:

      ReturnFullObjects = true   AND call  loadObject
      I will get an object, all its properties and its "retrieve automatic" associations,

      if I set   ReturnFullObjects = false AND
      call loadProxy,
      I get the object, the "proxy=true props",  but not the associations
      (even the "retrieve automatic" associations.

      Very cool <grin>

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.