Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CBizObjMaintenanceForm AddNew strange behavior.
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00621909
Message ID:
00650912
Views:
25
Hello Kevin,
we came back to this problem again. I have discovered what causes this problem. On almost all our CBizObjMaintenance Forms we want to print a report, in most cases pretty simple one. This problem(the ADD mode) occurs ONLY when I preview or print the report. After I did that I click the ADD button and the second page activated(normal) but instead of New and Empty record there is a data for the record that is selected on the first page(just to refresh the problem we have). If I click Cancel button(go back to the first page) and then click Add again, everything works fine.
Now, here's what I've discovered. After report is closed, the view thar runs the report still selected, I can see it on the task bar. When I click Add button for the first time after report the CBizObjMaintenanceForm's BizObj InitialSelectedAlias is not selected(!!!). It is selected ONLY when I click the Add button the second time!!!
I've tried a few things. First, I set lAutoClosedTables to .T.(which is .F. by default. I think my boss, Gary Pike, and you have talk about that). Anyway, it didn't help.
Second, I set the report DataSession to Private. Didn't help either. After report is closed, the report DataSession is closed as well but Form's BizOBj InitialSelectedAlias still not getting selected. We probably can fixed that by issuing a comand to selecte InitialSelectedAlias after report is closed but I would like to know your opinion on that issue.
Some info:
MM 6.1.2(latest version)
VFP 7.0
all report's Data Environment have only one view as InitialSelectedAlias for the report. I've tried to specified the name of the alias in the
loCursorObject = THIS.oDataEnvironment.GetCursorObject("MyCursor") and then select it. Doesn't make any sense but I thought maybe it willreselect Form's InitialSelectedAlias. Didn't work.
Would you please, give me your thoughts about it?
Regards
Igor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform