NetTalk Central

Author Topic: Form with multi browses not updating  (Read 2259 times)

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Form with multi browses not updating
« on: January 13, 2014, 06:08:58 PM »
I have a Parent Form that contains 3 browses. When I insert or delete a record in the middle of the three browses, the browse is not being refreshed.

I've tracked the browse's event calls after its update form is Saved and the browse is pushing the 'childupdated' event up to the Parent Form. However, this only calls the DO ValidateValue::Browsexxx in the Parent Form so the browse procedure itself never gets a nod to regenerate.

Thanks,

Mark

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11242
    • View Profile
Re: Form with multi browses not updating
« Reply #1 on: January 13, 2014, 09:57:03 PM »
could you post a small example for me please Mark, and I'll take a look.

cheers
Bruce

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Form with multi browses not updating
« Reply #2 on: January 14, 2014, 05:54:22 PM »
Bruce, after considerable time and effort, I was able to isolate the problem. It has to do with multiple browses on a parent form, where the top browse has a row expansion. If that's the case, the browse displayed below will not refresh after an insert or delete. What's more, on my app (not sure about the enclosed test app), after attempting to insert or delete a record, the browse that it is trying to refresh goes into a continual loop call to BrowseRow and will, sooner or later, crash the app.

Using the enclosed test app: Unzip, compile and run. When it loads, look for the Browse button at the top of the app. FYI, I cannot figure out why anything other than the menu button displays when the app is first opened. Regardless, click on the Browse button at the top, then select the Browse All menu item (the only one). Two browses are displayed, BrowseCustomers and BrowseProducts. Don't worry about the top browse for now. Try to insert a record to the bottom browse or try to delete an existing record from it. The browse will not refresh. If you re-access it by reloading the page (ie clicking on the top Browse button, then re-selecting Browse All), the browse is refreshed.

To correct this problem, go into the app to the BrowseCustomers procedure, go to the General Tab, open the LOC:ExpandRow field Properties and put FALSE in Column Condition to disable it. Do the same for the Procedure field. Recompile and run. Click on the Browse button at the top, then select the Browse All menu item. The bottom browse will now function normally.

Mark

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11242
    • View Profile
Re: Form with multi browses not updating
« Reply #3 on: January 20, 2014, 09:22:47 PM »
thanks for the example Mark - fixed in 7.33

cheers
Bruce