main logo
Subject: Re: ???!!! vp_WhateverImLookingFor :)
Author: graeme thomson
Posted: 2001/10/03 03:46:13
 
View Entire Thread
New Search


glad I could help with the INCLUDE stuff. It drove me crazy for weeks when I first started.


If you haven't seen it yet look at Geof's document on 1-to-many. I like his approach which is new to me.
Put a property in your bizobj (I prefer the form but it depends on how many children and grandchildren there are).
cCustID in Geof's example.
When you return from the RetVal form place the value in this property.
The clever trick is to override GetViewParmValue method with:
RETURN THISFORM.cCustID

The requery() will then use your returned value. The beauty of this technique is if you are prepared to use the same property name it can be a permanent change in your i-layer.

GetViewParmValue is a protected property in cbizobj so you need to un-protect it to make a change higher up the hiearchy. goes against the principle of never changing the c-layer but in this case it may need to be permanent change in the c-layer if everyone likes this technique. Congratulations to Geof, it is a nice bit of work.




 
©2001 graeme thomson
<-- Prior Message New Search Next Message -->