NetTalk Central

Author Topic: Browse buttons do not work anymore - I'm lost  (Read 4491 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Browse buttons do not work anymore - I'm lost
« on: July 25, 2015, 02:23:45 AM »
Hi

In 2 browses out of 40 the change/delete buttons has no effect. They are very simple browses with popup-forms. Works fine without popup.
Unfortunately I can not recreate the error in a test.
Firebug displays the following error: "Error: cannot call methods on ntbrowse prior to initialization; attempted to call method 'unhideTable'" - see attached picture.

Regards Niels


[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse buttons do not work anymore - I'm lost
« Reply #1 on: July 27, 2015, 01:12:46 AM »
Hi Niels,

The problem is not that the buttons have no effect - the problem is that the browse itself is not initializing correctly.

The most likely reason for this is that you have the same procedure twice on the same page. A browse, or form or whatever is just a Div, and it's likely you have ended up with 2 divs on the page with the same name.

Perhaps come to the User Group webinar on Thursday and we'll take a look at your app and see if we can spot the root error.

cheers
Bruce


MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Re: Browse buttons do not work anymore - I'm lost
« Reply #2 on: July 27, 2015, 01:51:11 AM »
Ive got a similar problem.
very simple browses no longer work.
It seems to display the locator search bar on top and bottom of the browse rows
I cant see a difference in the ones that do with the ones that don't
Where and what must I look for


Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Browse buttons do not work anymore - I'm lost
« Reply #3 on: July 27, 2015, 06:46:13 AM »
Hi Bruce

Thanks - you gave me a hint.
I have now created a small test.app. As I see it, the problem occurs when I call a form (as popup) from the menu and that form uses another browse (as lookup) from the menu - duplicate ID.
Is there a way to provide a lookup browse with another ID?

Regards Niels
 

[attachment deleted by admin]

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Re: Browse buttons do not work anymore - I'm lost
« Reply #4 on: July 27, 2015, 11:37:59 PM »
This is what I have found.

If you create a netwebbrowse stand alone it works.
if you create a netwebform with a 2nd tab which contains the first netwebbrowse and add a filter on the netwebbrowse to be childofnetwebform
then the netwebform with the netwebbrowse works, but the original netwenbrowse from the menu give this error ?

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Re: Browse buttons do not work anymore - I'm lost
« Reply #5 on: July 28, 2015, 02:08:25 AM »
I made a copy of one of the netwebbrowse procs that dont work.
The copy works perfectly , the only difference is its not used anywhere else..
There must be a way to solve this
else we have to maintain to identical pieces of code ???????