I think I have come across this discussion before, but I can't remember if was in the docs on here on the UT. I have a business object with several data access elements, and I want to requery the ones other than the primary one. What is the best way to do that?
What I am currently doing is adding a method (ex. LoadAllCompanies) with code like this:
LOCAL lcCurrentAlias
lcCurrentAlias = THIS.GetAlias()
THIS.SetAlias( "v_Companies" )
THIS.Requery()
THIS.SetAlias( lcCurrentAlias )
RETURN RECCOUNT( "v_Companies" )
Chris McCandless
Red Sky Software