<I><FONT COLOR="#663300">I am trying to move my app into a test environment. I have compiled it as an .app so that I can continue to debug while it is tested. I have suddenly developed new bugs that I am not sure how to track down.
Bug #1: When I instantiate a form that works perfectly in my development environment ny running main.prg, I get the error message that 'Alias BLOCKOUTVIEW is not found.' That makes sense because there is no alias BLOCKOUTVIEW. BLOCKOUTVIEW is the name of the cursor object that is defined in my aDataEnv.prg and the cursor alias is 'vBlockout' I have defined my bizobj.cAlias property as 'vBlockout' but when I suspend the .app at the error, I find that thisform.bizobj.cAlias = 'BlockoutView' How do I go about finding where this error is occurring?</FONT></I>
In addition, when I have the application suspended, the watch window says that my bizobj does not have an oDataEnvironment property. However, eBizObj.Init has already fired and the line of code:
this.oDataEnvironment = this.oDELoader.oDataEnvironment
did not produce an error. Where could the oDataEnvironment property gone? I feel as though I am looking right at something and cannot see it.
:-) Pamela
pamela@eagle-crest.com
<I><FONT COLOR="#663300"><I><FONT COLOR="#663300">I am trying to move my app into a test environment. I have compiled it as an .app so that I can continue to debug while it is tested. I have suddenly developed new bugs that I am not sure how to track down.
Bug #1: When I instantiate a form that works perfectly in my development environment ny running main.prg, I get the error message that 'Alias BLOCKOUTVIEW is not found.' That makes sense because there is no alias BLOCKOUTVIEW. BLOCKOUTVIEW is the name of the cursor object that is defined in my aDataEnv.prg and the cursor alias is 'vBlockout' I have defined my bizobj.cAlias property as 'vBlockout' but when I suspend the .app at the error, I find that thisform.bizobj.cAlias = 'BlockoutView' How do I go about finding where this error is occurring?</FONT></I>
In addition, when I have the application suspended, the watch window says that my bizobj does not have an oDataEnvironment property. However, eBizObj.Init has already fired and the line of code:
this.oDataEnvironment = this.oDELoader.oDataEnvironment
did not produce an error. Where could the oDataEnvironment property gone? I feel as though I am looking right at something and cannot see it.</FONT></I>
First, you will want to check the paths to your data in the dbpaths.dbf. Next, make sure your main data environment class has the cDefaultDatabaseName property set to the same name that appears in dbpaths.dbf. The cAlias property in the business object is determined by which alias in the objects DE's is the InitialSelectedAlias.
Dan Welter
MCSD