Hi Mike,
<I><FONT COLOR="#663300">I was hoping it was going to work straight off, but I am seeing that I anm going to have to do some coding to make these functions do what I want them to do.</I></font>
That shouldn't be the case. If you views are constructed properly and you have given the correct values to the key bizobj properties that I mentioned in Message # 6008 of this thread, then just calling Thisform.Next() should take care of all the necesary activites--moving the record pointer in the parent bizobj and requerying the view in the child bizobj.
<FONT COLOR="#663300"><I>Do I need to set up a relation class to keep them in sync, and should I have to input the VP?</FONT></I>
No, setting the properties properly on the parent and child bizobjs takes care of all that for you.
<FONT COLOR="#663300">I want them to manipulate the view parameter (VP) to navigate through the agreements.</FONT></I>
Calling Thisform.Next() and Previous() will do that for you.
<FONT COLOR="#663300"><i>Also, when I start the form, it asks for the vp_agreecid value (I have NoDataOnLoad = .F.)</FONT></I>
That is correct. If you set NoDataOnLoad to .T. then you can suppress the view parameter dialog. Since is it not expected to load any data, it doesn't need to have a parameter to filter on.
<FONT COLOR="#663300"><i>I just have to get into the code and try to find out how these functions are working.</FONT></I>
Been there. Done that. I couldn't agree more and the easiest way is to step through the code line by line. Have fun. (It is fun, you know.)
Pamela pamela .AT. eagle-crest DOT com ©2000 Pamela Thalacker |