General information
Category:
The Mere Mortals Framework
>I finally got the form to stop creating errors. It is stable until I press the REQUIRY - button and more errors occur. However, I will take on one set of errors at a time.
>
>When I press page-4 of the form, I am being prompted to enter the view's parameter.
>
>Do you have any ideas about what could be wrong?
>
>Thanks...
>Melvin...
1. Did you populate aViewParameters[] in PostInitHook of the business object on page 4?
2. The businss object is ON page 4
3. The business object on page 4 lAutoPrimaryBizObj property is set to true?
If the above... go into the bizobjs requery method and put the following code..
set step on
dodefault()
Then, run your program.. activate page 4 and your should get put into the degbugger... step through the code...
If you have nothing in PreRequeryHook after a few lines of code you will get to..
IF NOT (EMPTY(This.aViewParameters[1,1]) AND ;
EMPTY(This.aViewParameters[1,2]))
* ^^^ this should evaluate to true
FOR lnCount = 1 TO ALEN(This.aViewParameters,1)
luTemp = This.aViewParameters[lnCount,2]
STORE &luTemp TO (This.aViewParameters[lnCount,1])
* ^^^ check that the values are proper.
ENDFOR
ENDIF
*******
If the above if evaluates to false then the aViewParameter array paramater is not populated properly.
One thing to check that I do alot... Make sure that code says...
this.aviewparameters[1,1]
... if the this is not on it, you are just creating a private variable in the method that is gone after that method is done... but, with THIS you are setting up a property that will persist as long as the BizObj exists.
BOb
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only